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
Django React Integration
In this tutorial, you will learn to create a hybrid web application using Django, react, and webpack. A hybrid web app means:
It's up to us to decide which page is a single-page application or a Django-powered jinja frontend or both.
URLs or routes ...
Read: https://raturitechmedia.hashnode.dev/django-react-integration
In this tutorial, you will learn to create a hybrid web application using Django, react, and webpack. A hybrid web app means:
It's up to us to decide which page is a single-page application or a Django-powered jinja frontend or both.
URLs or routes ...
Read: https://raturitechmedia.hashnode.dev/django-react-integration
How To Show Image From Imagefield In Django Admin Page?
As shown in the above image, we can clearly see that we can add image as a column in the Django admin and show it there.
Let’s check out how can we achieve that.
Here is our model which contains the ImageField along with other fields,
# models.py
cl...
Read: https://blog.devjunction.in/how-to-show-image-from-imagefield-in-django-admin-page
As shown in the above image, we can clearly see that we can add image as a column in the Django admin and show it there.
Let’s check out how can we achieve that.
Here is our model which contains the ImageField along with other fields,
# models.py
cl...
Read: https://blog.devjunction.in/how-to-show-image-from-imagefield-in-django-admin-page
👍4
Tinymce Django: WYSIWYG editor
There are a lot of WYSIWYG editors available on the internet, some are paid and some are free. After exploring and experimenting with various editors I found tinymce, one of the best WYSIWYG editors. So in this tutorial, I will show how you can insta...
Read: https://raturitechmedia.hashnode.dev/tinymce-django-wysiwyg-editor
There are a lot of WYSIWYG editors available on the internet, some are paid and some are free. After exploring and experimenting with various editors I found tinymce, one of the best WYSIWYG editors. So in this tutorial, I will show how you can insta...
Read: https://raturitechmedia.hashnode.dev/tinymce-django-wysiwyg-editor
Reasons why you should give a try to Django once in your lifetime
Django, a great framework for Professionals with deadlines.
Let me reintroduce to you the most loved Python framework of all time, Django. 👇
Django is designed to build web applications from concept to completion as quickly as possible.
Unlike ...
Read: https://blog.devjunction.in/reasons-why-you-should-give-a-try-to-django-once-in-your-lifetime
Django, a great framework for Professionals with deadlines.
Let me reintroduce to you the most loved Python framework of all time, Django. 👇
Django is designed to build web applications from concept to completion as quickly as possible.
Unlike ...
Read: https://blog.devjunction.in/reasons-why-you-should-give-a-try-to-django-once-in-your-lifetime
Dev.Junction
Reasons why you should give a try to Django once in your lifetime
Why you must use Django for your next project?
Асинхронность в питоне — это хайп, не стоит отказываться от блокирующего кода
Здравствуйте, читатели хабра! Читайте в этой статье - развенчание мифов об асинхронном программировании в Python! Действительно ли асинхронная модель - более производительная? И как обстоят дела с драйверами баз данных?
На картинке - скриншот бенчмарков от авторов драйвера asyncpg. Как Вы можете догадаться, автор этой статьи с ними не согласен.
Некоторые читатели знают из моих предыдущих статей о моих (вполне успешных!) попытках сделать асинхронную версию django. Я решил прекратить работу над ней - столько труда напрасно! Читайте - и не делайте так.
Стандарту WSGI 19 лет (c хвостиком). Выясняем, есть ли ещё куда развиваться приложениям с блокирующим вводом-выводом в 2022.
Читать
Читать: https://habr.com/ru/post/703422/
Здравствуйте, читатели хабра! Читайте в этой статье - развенчание мифов об асинхронном программировании в Python! Действительно ли асинхронная модель - более производительная? И как обстоят дела с драйверами баз данных?
На картинке - скриншот бенчмарков от авторов драйвера asyncpg. Как Вы можете догадаться, автор этой статьи с ними не согласен.
Некоторые читатели знают из моих предыдущих статей о моих (вполне успешных!) попытках сделать асинхронную версию django. Я решил прекратить работу над ней - столько труда напрасно! Читайте - и не делайте так.
Стандарту WSGI 19 лет (c хвостиком). Выясняем, есть ли ещё куда развиваться приложениям с блокирующим вводом-выводом в 2022.
Читать
Читать: https://habr.com/ru/post/703422/
Django bugfix release: 4.1.4
Today we've issued the 4.1.4 bugfix release.
The release package and checksums are available from our downloads page, as well as from the Python Package Index. The PGP key ID used for this release is Carlton Gibson: E17DF5C82B4F9D00.
Read: https://www.djangoproject.com/weblog/2022/dec/06/bugfix-release/
Today we've issued the 4.1.4 bugfix release.
The release package and checksums are available from our downloads page, as well as from the Python Package Index. The PGP key ID used for this release is Carlton Gibson: E17DF5C82B4F9D00.
Read: https://www.djangoproject.com/weblog/2022/dec/06/bugfix-release/
DjangoCon US and Europe 2022 Talks Available Online
The organizers of DjangoCon US and DjangoCon Europe spend a tremendous amount of energy both hosting the conferences and putting all the talks online after. The complete playlists of talks from each conference are now available on YouTube:
* DjangoCon Europe 2022
* DjangoCon US 2022
Read: https://www.djangoproject.com/weblog/2022/dec/06/djangocon-us-and-europe-2022-talks-available-onlin/
The organizers of DjangoCon US and DjangoCon Europe spend a tremendous amount of energy both hosting the conferences and putting all the talks online after. The complete playlists of talks from each conference are now available on YouTube:
* DjangoCon Europe 2022
* DjangoCon US 2022
Read: https://www.djangoproject.com/weblog/2022/dec/06/djangocon-us-and-europe-2022-talks-available-onlin/
👍1
How to add WYSIWYG (What You See Is What You Get) editor to Django Project?
WYSIWYG aka What You See Is What You Get is a very useful for the content rich websites, and by default Django Admin comes with a simple HTML text field. In this blog, we’ll add a Rich Text Editor (WYSIWYG) to our Django project.
We’ll use one of the...
Read: https://blog.devjunction.in/how-to-add-wysiwyg-what-you-see-is-what-you-get-editor-to-django-project
WYSIWYG aka What You See Is What You Get is a very useful for the content rich websites, and by default Django Admin comes with a simple HTML text field. In this blog, we’ll add a Rich Text Editor (WYSIWYG) to our Django project.
We’ll use one of the...
Read: https://blog.devjunction.in/how-to-add-wysiwyg-what-you-see-is-what-you-get-editor-to-django-project
👍1
Know about Models in Django
Introduction to Django models
In the process of learning Django, you surely will come across Django models. It is an important component of any Django application. Having good knowledge is essential to create an efficient web application using Django...
Read: https://rishabhdev.hashnode.dev/know-about-models-in-django
Introduction to Django models
In the process of learning Django, you surely will come across Django models. It is an important component of any Django application. Having good knowledge is essential to create an efficient web application using Django...
Read: https://rishabhdev.hashnode.dev/know-about-models-in-django
Know about Models in Django
Introduction to Django models
In the process of learning Django, you surely will come across Django models. It is an important component of any Django application. Having good knowledge is essential to create an efficient web application using Django...
Read: https://fuzzydevs.hashnode.dev/know-about-models-in-django
Introduction to Django models
In the process of learning Django, you surely will come across Django models. It is an important component of any Django application. Having good knowledge is essential to create an efficient web application using Django...
Read: https://fuzzydevs.hashnode.dev/know-about-models-in-django
All you need to about Django Caching-redis-cache
Application performance tuning and decreasing the load time of a web application is very important for successful products. Redis, a versatile tool, is an open-source, in-memory data structure store, used as a database, cache, and message broker. In ...
Read: https://giasuddin90.hashnode.dev/all-you-need-to-about-django-caching-redis-cache
Application performance tuning and decreasing the load time of a web application is very important for successful products. Redis, a versatile tool, is an open-source, in-memory data structure store, used as a database, cache, and message broker. In ...
Read: https://giasuddin90.hashnode.dev/all-you-need-to-about-django-caching-redis-cache