MicroPyramidBlog

Explore a blog dedicated to a wide spectrum of topics including Django, Python, Machine Learning, Salesforce, Angular, React, Flutter, Svelte, LINUX, and Amazon Web Services.

Django - Database access optimization

Django - Database access optimization. Write the best query to reduce the time and improve the application performance. using select_related and prefetch_related will form sql query with joins. In some cases It will reduce extra queries to the database.

What's great about Django girls to inspire women into programming

Django girls is a non-profit organization, that helps women to learn Django programming language and to inspire them into programming.

Dynamically Adding Google Maps with Marker In Django

Dynamically Adding Google Maps with Marker In Django

How to monitor django application live events with sentry

Using Sentry you can easily track exceptions and events of a Django project. Know more about sentry configuration for a Django project

Django Template Language Intro

We can write the required logics based on programming[python] syntax in models and views but, when we want to write simple logics we should follow the django's template syntax, because programming[python] syntax is not allowed.

Integration Of GitHub API with Python Django

Using Github integration, we can get the user verified email id, general information, git hub URL, id, disk usage, public, private repo's, gists and followers, following in a less span of time.

These Following steps are needed for Github integration:
1. creating git hub app
2. Authenticating user and getting an access token.
3. Get user information, work history using access token.

Django Efficient Implementation of Amazon S3 and Cloudfront CDN or Faster Loading

Django by default to store the files in your local file system. To make your files load quickly and secure we need to go for any third party storage systems. AWS s3 is one of the storage service for the Internet. It is designed to make web-scale computing easier for developers. django has a package called django-storages which can be used to store the files in the amazon s3 and serve them from its cloudfront service.

How to Write Custom Migrations in Django

This blog post will help you to get deeper into Django Migrations - how Migrations works and how to create or add our custom migrations. Migrations are mainly for keeping the data model of you database up-to-date.

Django Unit Test Cases with Forms and Views

By writing unit test cases, you can evaluate each code component in the initial stage itself and it'll improve your app/code performance. Which is the best practice to test your code and you can easily determine if there are any errors.

Querying with Django Q Objects

Querying with Django Q objects: Q object encapsulates a SQL expression in a Python object that can be used in database-related operations. Using Q objects we can make complex queries with less and simple code.