Django HTTPS and Free Letsencrypt SSL certificates
To set up SSL certificates on the Django application, certbot is used. Certbot gets free SSL (HTTPS) certificates from Let's Encrypt forever.
In this article, I am assuming that you already have a Django website up and running using the Nginx web ser...
Read: https://raturitechmedia.hashnode.dev/django-https-and-free-letsencrypt-ssl-certificates
To set up SSL certificates on the Django application, certbot is used. Certbot gets free SSL (HTTPS) certificates from Let's Encrypt forever.
In this article, I am assuming that you already have a Django website up and running using the Nginx web ser...
Read: https://raturitechmedia.hashnode.dev/django-https-and-free-letsencrypt-ssl-certificates
Мой сетап Visual Studio Code для Django
Настройка Visual Studio Code для работы над проектами Django немного отличается от типичного сетапа для pure Python проектов. Например, в Django мало пользы от mypy, так как он не поддерживает типы Django. Точно также дела обстоят с линтерами, которые, без предварительной настройки, работают с кодом Django неправильно.
Читать: https://habr.com/ru/post/701800/
Настройка Visual Studio Code для работы над проектами Django немного отличается от типичного сетапа для pure Python проектов. Например, в Django мало пользы от mypy, так как он не поддерживает типы Django. Точно также дела обстоят с линтерами, которые, без предварительной настройки, работают с кодом Django неправильно.
Читать: https://habr.com/ru/post/701800/
JSON Logging with uWSGI
Setting up JSON logging for a production Django app requires the following steps:
Configure JSON logging from the Django app
Configure JSON logging from the application server (for example, uWSGI)
In the last article I covered how to configure JSON...
Read: https://blog.rama.io/json-logging-with-uwsgi
Setting up JSON logging for a production Django app requires the following steps:
Configure JSON logging from the Django app
Configure JSON logging from the application server (for example, uWSGI)
In the last article I covered how to configure JSON...
Read: https://blog.rama.io/json-logging-with-uwsgi
Pixel Bootstrap 5 - Free Django PyPi Theme
Hello Coders!
This article presents Pixel Boostrap 5, an open-source and actively supported theme for Django. Using this library, available as a PyPi Package, any Django developer can code pixel-perfect websites in minutes. UI is super easy to exten...
Read: https://app-generator.hashnode.dev/pixel-bootstrap-5-free-django-pypi-theme
Hello Coders!
This article presents Pixel Boostrap 5, an open-source and actively supported theme for Django. Using this library, available as a PyPi Package, any Django developer can code pixel-perfect websites in minutes. UI is super easy to exten...
Read: https://app-generator.hashnode.dev/pixel-bootstrap-5-free-django-pypi-theme
How to Dockerize any Django Application: A Step-by-Step Tutorial
Overview
Key steps
At the end of this tutorial, you will have completed the following steps of Dockerization:
Write a Dockerfile
Build a Docker image
Test the image by creating and running a Docker container
Checklist
There are very few things you...
Read: https://blog.anthonyjsaab.com/how-to-dockerize-any-django-application-a-step-by-step-tutorial
Overview
Key steps
At the end of this tutorial, you will have completed the following steps of Dockerization:
Write a Dockerfile
Build a Docker image
Test the image by creating and running a Docker container
Checklist
There are very few things you...
Read: https://blog.anthonyjsaab.com/how-to-dockerize-any-django-application-a-step-by-step-tutorial
python-decouple: Manage Environment Variables in Django
To organize your settings to have different parameters in your different environments like development and production you need to work with environment variables.
What is python-decouple
python-decouple is a generic python library that helps to organ...
Read: https://raturitechmedia.hashnode.dev/python-decouple-manage-environment-variables-in-django
To organize your settings to have different parameters in your different environments like development and production you need to work with environment variables.
What is python-decouple
python-decouple is a generic python library that helps to organ...
Read: https://raturitechmedia.hashnode.dev/python-decouple-manage-environment-variables-in-django
Как мы создавали сервис для улучшения города в Ташкенте (Узбекистан)
Этот материал посвящен сервису Xalq Nazorati (Народный Контроль) — с ним люди могут пожаловаться на нерабочий лифт, яму на дороге, сломанный светофор или стертую дорожную разметку. В статье расскажем, с чего мы начинали проект, какие ошибки допускали, как их исправляли и где в итоге оказались.
Сегодня в сервис Народный Контроль уже поступило более 28 тыс. обращений от горожан — чаще всего люди жалуются на проблемы на дорогах, ЖКХ и экологические проблемы.
88% всех обращений были в итоге решены.
Чтобы контролировать работу сервиса и обеспечить реальное решение проблем, мы разработали рейтинг районов города, тем самым мотивируя чиновников не отмахиваться от проблем.
Чтобы лучше обозначать раскрытие темы, используем индикатор из хорошо знакомой многим игры. Так интереснее.
Резюме
Читать: https://habr.com/ru/post/701682/
Этот материал посвящен сервису Xalq Nazorati (Народный Контроль) — с ним люди могут пожаловаться на нерабочий лифт, яму на дороге, сломанный светофор или стертую дорожную разметку. В статье расскажем, с чего мы начинали проект, какие ошибки допускали, как их исправляли и где в итоге оказались.
Сегодня в сервис Народный Контроль уже поступило более 28 тыс. обращений от горожан — чаще всего люди жалуются на проблемы на дорогах, ЖКХ и экологические проблемы.
88% всех обращений были в итоге решены.
Чтобы контролировать работу сервиса и обеспечить реальное решение проблем, мы разработали рейтинг районов города, тем самым мотивируя чиновников не отмахиваться от проблем.
Чтобы лучше обозначать раскрытие темы, используем индикатор из хорошо знакомой многим игры. Так интереснее.
Резюме
Читать: https://habr.com/ru/post/701682/
👍2👏1
How do I reset the Django migration?
In this tutorial, you will learn about resetting Django applied migrations and creating fresh migrations.
Django's migration can be reset by cleaning all the migration files except __init__.py files under each project app directory, followed by dropp...
Read: https://raturitechmedia.hashnode.dev/how-do-i-reset-the-django-migration
In this tutorial, you will learn about resetting Django applied migrations and creating fresh migrations.
Django's migration can be reset by cleaning all the migration files except __init__.py files under each project app directory, followed by dropp...
Read: https://raturitechmedia.hashnode.dev/how-do-i-reset-the-django-migration
2023 DSF Board Election Results
The 2023 Board is transitional to our new staggered 2 year term board membership model.
Here are the results of this year's election as selected by ranked choice voting:
1. Chaim Kirby*
2. Jacob Kaplan-Moss
3. Katie McLaughlin*
4. Aaron Bassett
5. Kátia Yoshime Nakamura*
6. Peter Baumgartner
7. Cagil Ulusahin Sonmez*
* Elected to a two (2) year term
Congratulations to our winners and a huge thank you to our departing board members Anna Makarudze, Mfon Eti-mfon, William Vincent, and Žan Anderle. You all set the bar very high for the next board.
Also a special thank you to the 30 candidates we had this year. The DSF simply isn't possible without the help of all of our volunteers.
Read: https://www.djangoproject.com/weblog/2022/nov/29/2023-dsf-board-election-results/
The 2023 Board is transitional to our new staggered 2 year term board membership model.
Here are the results of this year's election as selected by ranked choice voting:
1. Chaim Kirby*
2. Jacob Kaplan-Moss
3. Katie McLaughlin*
4. Aaron Bassett
5. Kátia Yoshime Nakamura*
6. Peter Baumgartner
7. Cagil Ulusahin Sonmez*
* Elected to a two (2) year term
Congratulations to our winners and a huge thank you to our departing board members Anna Makarudze, Mfon Eti-mfon, William Vincent, and Žan Anderle. You all set the bar very high for the next board.
Also a special thank you to the 30 candidates we had this year. The DSF simply isn't possible without the help of all of our volunteers.
Read: https://www.djangoproject.com/weblog/2022/nov/29/2023-dsf-board-election-results/
Django Project
2023 DSF Board Election Results
Posted by Chaim Kirby on November 29, 2022
👍1
How to install and setup Django Jet theme?
Django JET is a great library to modernize your classic Django admin panel into something modern, styling and customizable admin panel.
For comparison, here is how the classic Django admin panel looks like:
After customization, it will look somethin...
Read: https://blog.devjunction.in/how-to-customize-django-admin-with-django-jet-theme
Django JET is a great library to modernize your classic Django admin panel into something modern, styling and customizable admin panel.
For comparison, here is how the classic Django admin panel looks like:
After customization, it will look somethin...
Read: https://blog.devjunction.in/how-to-customize-django-admin-with-django-jet-theme
Hack Django ORM for SQL queries | Cheatsheet
Introduction
Today I will be describing Django ORM via SQL queries.
Many of you may know SQL queries but converting SQL queries to Django ORM is a basic challenge everyone faces. Let's learn and understand it properly today for better coding practice...
Read: https://proton.hashnode.dev/hack-django-orm-for-sql-queries-cheatsheet
Introduction
Today I will be describing Django ORM via SQL queries.
Many of you may know SQL queries but converting SQL queries to Django ORM is a basic challenge everyone faces. Let's learn and understand it properly today for better coding practice...
Read: https://proton.hashnode.dev/hack-django-orm-for-sql-queries-cheatsheet
Mapping SQL queries with Django ORM | Cheatsheet
Introduction
Today I will be describing Django ORM via SQL queries.
Many of you may know SQL queries but converting SQL queries to Django ORM is a basic challenge everyone faces. Let's learn and understand it properly today for better coding practice...
Read: https://proton.hashnode.dev/mapping-sql-queries-with-django-orm-cheatsheet
Introduction
Today I will be describing Django ORM via SQL queries.
Many of you may know SQL queries but converting SQL queries to Django ORM is a basic challenge everyone faces. Let's learn and understand it properly today for better coding practice...
Read: https://proton.hashnode.dev/mapping-sql-queries-with-django-orm-cheatsheet
Django Compressor Tutorial
In this tutorial, you will learn how to compress and optimize your static files i.e., javascript (.js) and CSS (.css) files for production. You will work with django-compressor to compress CSS and JS and django-htmlmin to minify HTML files. You can ...
Read: https://raturitechmedia.hashnode.dev/django-compressor-tutorial
In this tutorial, you will learn how to compress and optimize your static files i.e., javascript (.js) and CSS (.css) files for production. You will work with django-compressor to compress CSS and JS and django-htmlmin to minify HTML files. You can ...
Read: https://raturitechmedia.hashnode.dev/django-compressor-tutorial
How Can I Combine Two or More QuerySets in a Django View?
Assume you got two querysets from one or more models, and you want the querysets to combine into one, for that Django ORM provides a union method to combine those querysets.
The querysets can be from the same or from different models, just one thing...
Read: https://blog.devjunction.in/how-can-i-combine-two-or-more-querysets-in-a-django-view
Assume you got two querysets from one or more models, and you want the querysets to combine into one, for that Django ORM provides a union method to combine those querysets.
The querysets can be from the same or from different models, just one thing...
Read: https://blog.devjunction.in/how-can-i-combine-two-or-more-querysets-in-a-django-view
Learn Django ORM Queries
Hi Guys!
Today I will be describing Django ORM. We will learn ORM of some common SQL queries.
Django ORM — Object Relation Mapper is a powerful and elegant way to interact with the database. The Django ORM is an abstraction layer that allows us to pl...
Read: https://proton.hashnode.dev/learn-django-orm-queries
Hi Guys!
Today I will be describing Django ORM. We will learn ORM of some common SQL queries.
Django ORM — Object Relation Mapper is a powerful and elegant way to interact with the database. The Django ORM is an abstraction layer that allows us to pl...
Read: https://proton.hashnode.dev/learn-django-orm-queries
Django Custom User Model: AbstractUser
Django ships with a built-in User model for authentication, however, the official Django documentation highly recommends using a custom user model for new projects.
There are two modern ways to create a custom user model in Django: AbstractUser and A...
Read: https://raturitechmedia.hashnode.dev/django-custom-user-model-abstractuser
Django ships with a built-in User model for authentication, however, the official Django documentation highly recommends using a custom user model for new projects.
There are two modern ways to create a custom user model in Django: AbstractUser and A...
Read: https://raturitechmedia.hashnode.dev/django-custom-user-model-abstractuser
Django Mixin: Custom Class-Based Mixins, Examples, and Types
How Mixin works in Django
Let me take an example, to help you understand the working of a mixin.
Suppose you want only logged-in users to have access to an URL. For this, you can use Django's built-in LoginRequiredMixin in your view, just like the co...
Read: https://raturitechmedia.hashnode.dev/django-mixin-custom-class-based-mixins-examples-and-types
How Mixin works in Django
Let me take an example, to help you understand the working of a mixin.
Suppose you want only logged-in users to have access to an URL. For this, you can use Django's built-in LoginRequiredMixin in your view, just like the co...
Read: https://raturitechmedia.hashnode.dev/django-mixin-custom-class-based-mixins-examples-and-types
Getting started with Django.
Django is a free open-source python backend framework that helps in building dynamic websites the easy way and is especially helpful for database-driven websites.
Django comes with easy and ready-to-use features so that one can focus more on building...
Read: https://saurabhdev.hashnode.dev/getting-started-with-django
Django is a free open-source python backend framework that helps in building dynamic websites the easy way and is especially helpful for database-driven websites.
Django comes with easy and ready-to-use features so that one can focus more on building...
Read: https://saurabhdev.hashnode.dev/getting-started-with-django
How to use UUID as primary key in a Django Model?
If you are creating a model in Django, Django automatically defines a primary key field called id in the database for that model. But in some cases, you might want to specify your own id field as primary key. It is easy peasy to do in Django, let’s h...
Read: https://blog.devjunction.in/how-to-use-uuid-as-primary-key-in-a-django-model
If you are creating a model in Django, Django automatically defines a primary key field called id in the database for that model. But in some cases, you might want to specify your own id field as primary key. It is easy peasy to do in Django, let’s h...
Read: https://blog.devjunction.in/how-to-use-uuid-as-primary-key-in-a-django-model
Structure of Django Application
Introduction to Django
Django is one of the most popular backend frameworks out there in the market. It is written in python. It is known for its development speed. A project in Django can be up and running in a minimal amount of time. It has a very ...
Read: https://rishabhdev.hashnode.dev/structure-of-django-application
Introduction to Django
Django is one of the most popular backend frameworks out there in the market. It is written in python. It is known for its development speed. A project in Django can be up and running in a minimal amount of time. It has a very ...
Read: https://rishabhdev.hashnode.dev/structure-of-django-application
👍1
Structure of Django Application
Introduction to Django
Django is one of the most popular backend frameworks out there in the market. It is written in python. It is known for its development speed. A project in Django can be up and running in a minimal amount of time. It has a very ...
Read: https://fuzzydevs.hashnode.dev/structure-of-django-application
Introduction to Django
Django is one of the most popular backend frameworks out there in the market. It is written in python. It is known for its development speed. A project in Django can be up and running in a minimal amount of time. It has a very ...
Read: https://fuzzydevs.hashnode.dev/structure-of-django-application