#django

[ follow ]
#python-development

Because we are not monsters

Django CLI improvements enhance developer efficiency, enabling commands like 'django' instead of 'django-admin'.
Django-Unicorn allows for modern interactivity without needing JavaScript or APIs.
Testing string characteristics and learning about Python's features can streamline the coding process.

[October 2024] Python Monthly Newsletter | Zero To Mastery

Python 3.13 introduces new features, urging developers to consider careful upgrade paths.

Paolo Melchiorre - Pybites Podcast #155

Exploration of Django, open source, and PyCon conferences
Personal insights on developer journey and community collaboration

Because we are not monsters

Django CLI improvements enhance developer efficiency, enabling commands like 'django' instead of 'django-admin'.
Django-Unicorn allows for modern interactivity without needing JavaScript or APIs.
Testing string characteristics and learning about Python's features can streamline the coding process.

[October 2024] Python Monthly Newsletter | Zero To Mastery

Python 3.13 introduces new features, urging developers to consider careful upgrade paths.

Paolo Melchiorre - Pybites Podcast #155

Exploration of Django, open source, and PyCon conferences
Personal insights on developer journey and community collaboration
morepython-development
#open-source

Django-sites-ext

Django Sites Ext introduces ChangeSiteMixin for improved multi-site content management.

What's on Django TV tonight?

Open Source maintainers should be compensated properly, with a recommended minimum of $2k/year/dev for company participation.

Django-simpleadmindoc updated

Django-simpleadmindoc now simplifies documentation creation for Django sites through enhanced usability features.

Django site permissions

Site permissions enhances Django's content management by allowing restricted access based on a user's site affiliation.

Django app name translation in admin

The application aims to resolve confusion from mixing English and localized content in Django admin.

Django Project Ideas | The PyCharm Blog

Django is an ideal framework for building web applications, providing robust tools for both beginners and advanced developers.

Django-sites-ext

Django Sites Ext introduces ChangeSiteMixin for improved multi-site content management.

What's on Django TV tonight?

Open Source maintainers should be compensated properly, with a recommended minimum of $2k/year/dev for company participation.

Django-simpleadmindoc updated

Django-simpleadmindoc now simplifies documentation creation for Django sites through enhanced usability features.

Django site permissions

Site permissions enhances Django's content management by allowing restricted access based on a user's site affiliation.

Django app name translation in admin

The application aims to resolve confusion from mixing English and localized content in Django admin.

Django Project Ideas | The PyCharm Blog

Django is an ideal framework for building web applications, providing robust tools for both beginners and advanced developers.
moreopen-source
#community

Django 6.x Steering Council Candidates

Django community governance is transitioning with a new election for the 6.x Steering Council.

2024 Malcolm Tredinnick Memorial Prize awarded to Rachell Calhoun

Rachell Calhoun is recognized for her impactful contributions to the Django community and commitment to diversity and inclusion.

Django 6.x Steering Council Candidates

Django community governance is transitioning with a new election for the 6.x Steering Council.

2024 Malcolm Tredinnick Memorial Prize awarded to Rachell Calhoun

Rachell Calhoun is recognized for her impactful contributions to the Django community and commitment to diversity and inclusion.
morecommunity
#python

Enforcing conventions in Django projects with introspection

Introspection in Python involves tools like isinstance(), type(), hasattr(), and more advanced techniques like the inspect module and metaprogramming dunder methods.
Django allows for introspection using standard Python techniques along with formally documented functions and methods for inspecting Django apps and models.

Episode #225: Python Getting Faster and Leaner & Ideas for Django Projects - The Real Python Podcast

Python's recent performance improvements include a specialized adaptive interpreter and an experimental JIT compiler, paving the way for future speed enhancements.

Djangonauts, Ready for Blast-Off

Djangonauts mentorship program supports Django enthusiasts
Djangonauts program benefits the Django community and potentially other open source communities

Highlights from the Django Developer Survey 2024

Django remains popular but developers are exploring other frameworks for specific features and project demands.

Python in Visual Studio Code - September 2024 Release - Python

Django unit test support has been added to Visual Studio Code's Python extension for easier test management.

What's New in PyCharm 2024.2.2! | The PyCharm Blog

PyCharm 2024.2.2 enhances Django features, Python support, and introduces improvements in the Data View tool for better user experience.

Enforcing conventions in Django projects with introspection

Introspection in Python involves tools like isinstance(), type(), hasattr(), and more advanced techniques like the inspect module and metaprogramming dunder methods.
Django allows for introspection using standard Python techniques along with formally documented functions and methods for inspecting Django apps and models.

Episode #225: Python Getting Faster and Leaner & Ideas for Django Projects - The Real Python Podcast

Python's recent performance improvements include a specialized adaptive interpreter and an experimental JIT compiler, paving the way for future speed enhancements.

Djangonauts, Ready for Blast-Off

Djangonauts mentorship program supports Django enthusiasts
Djangonauts program benefits the Django community and potentially other open source communities

Highlights from the Django Developer Survey 2024

Django remains popular but developers are exploring other frameworks for specific features and project demands.

Python in Visual Studio Code - September 2024 Release - Python

Django unit test support has been added to Visual Studio Code's Python extension for easier test management.

What's New in PyCharm 2024.2.2! | The PyCharm Blog

PyCharm 2024.2.2 enhances Django features, Python support, and introduces improvements in the Data View tool for better user experience.
morepython

Introducing DjangoVer

DjangoVer simplifies version compatibility for Django-related packages by aligning their versions with the supported Django version.

Do not use appname as templatetags module

Name your templatetag files differently from the app to avoid import conflicts.
#web-development

Avoid Counting in Django Pagination

Django's default pagination can slow down performance; consider alternatives that skip the COUNT query for faster response times.

Extending different base template for ajax requests in Django

The yesno template filter is a simple and effective way to decide AJAX responses based on whether the request is an AJAX call.

How I do Django APIs in PyCharm | The PyCharm Blog

PyCharm enhances the API developer experience for Django, FastAPI, and Flask by integrating features like endpoint listings and an HTTP client.

Python Django CRUD Example Tutorial

The article is a tutorial on CRUD operations in Django with MySQL and Bootstrap.

The State of Django 2024 | The PyCharm Blog

Django remains popular among developers, with many also using Flask or FastAPI for different purposes.

Django Collapsed Stacked Inlines

The jQuery script improves usability of stacked inlines in Django admin.

Avoid Counting in Django Pagination

Django's default pagination can slow down performance; consider alternatives that skip the COUNT query for faster response times.

Extending different base template for ajax requests in Django

The yesno template filter is a simple and effective way to decide AJAX responses based on whether the request is an AJAX call.

How I do Django APIs in PyCharm | The PyCharm Blog

PyCharm enhances the API developer experience for Django, FastAPI, and Flask by integrating features like endpoint listings and an HTTP client.

Python Django CRUD Example Tutorial

The article is a tutorial on CRUD operations in Django with MySQL and Bootstrap.

The State of Django 2024 | The PyCharm Blog

Django remains popular among developers, with many also using Flask or FastAPI for different purposes.

Django Collapsed Stacked Inlines

The jQuery script improves usability of stacked inlines in Django admin.
moreweb-development

Some Personal History with Python

The development of IronPython in Action was significantly impacted by the continuous changes in IronPython, especially while it was still in alpha.
#python-313

PyCoder's Weekly | Issue #649

Python 3.13 introduces exciting new features while facing potential release delays.
Pdb is a critical tool for effective Python debugging.
Django provides a wealth of project ideas for developers to enhance their skills.

PyCoder's Weekly | Issue #650

Python 3.13 introduces enhanced threading capabilities and better support for async operations, improving application performance.

PyCharm 2024.2.1: What's New! | The PyCharm Blog

PyCharm 2024.2.1 features support for Python 3.13, improved Data View tools, and enhanced Django code assistance.

Django and the Python 3.13 REPL

Django's management shell does not yet support Python 3.13's new REPL directly.
A custom shell command can be implemented to utilize the new REPL and fallback on errors.

PyCoder's Weekly | Issue #649

Python 3.13 introduces exciting new features while facing potential release delays.
Pdb is a critical tool for effective Python debugging.
Django provides a wealth of project ideas for developers to enhance their skills.

PyCoder's Weekly | Issue #650

Python 3.13 introduces enhanced threading capabilities and better support for async operations, improving application performance.

PyCharm 2024.2.1: What's New! | The PyCharm Blog

PyCharm 2024.2.1 features support for Python 3.13, improved Data View tools, and enhanced Django code assistance.

Django and the Python 3.13 REPL

Django's management shell does not yet support Python 3.13's new REPL directly.
A custom shell command can be implemented to utilize the new REPL and fallback on errors.
morepython-313
#deployment

How To Deploy Django to Production | HackerNoon

To successfully deploy a Django application, it's important to configure settings and server correctly using tools like nginx and gunicorn.

Python Test | 219: Building Django Apps & SaaS Pegasus - Cory Zue

Various decisions involved in starting a SaaS project with Django were discussed with experienced professional Cory Zue.

How To Deploy Django to Production | HackerNoon

To successfully deploy a Django application, it's important to configure settings and server correctly using tools like nginx and gunicorn.

Python Test | 219: Building Django Apps & SaaS Pegasus - Cory Zue

Various decisions involved in starting a SaaS project with Django were discussed with experienced professional Cory Zue.
moredeployment
#serialization

Image compression before saving the new model / work with JPG, PNG

Correctly reference model fields in Django to ensure proper functionality.

Serializer factory with Django Rest Framework

Dynamic creation of model serializers simplifies data import processes from spreadsheets.
Avoid using '__all__' in serializers to prevent exposing sensitive data.

Image compression before saving the new model / work with JPG, PNG

Correctly reference model fields in Django to ensure proper functionality.

Serializer factory with Django Rest Framework

Dynamic creation of model serializers simplifies data import processes from spreadsheets.
Avoid using '__all__' in serializers to prevent exposing sensitive data.
moreserialization

Add custom fields to the built-in Group model

Extend Django's Group model with a UUIDField using a OneToOneField for added functionality.
Automate Role record creation and deletion using Django signals for better data consistency.

Month / Year SelectDateWidget based on django SelectDateWidget

The MonthYearWidget effectively simplifies date input by focusing solely on months and years while minimizing code complexity.
#pydantic

PyCoder's Weekly | Issue #625

Discover the power of Pydantic for data validation in Python.

PyCoder's Weekly | Issue #646

Kraken Technologies manages many deployments with effective tooling, focusing on error prioritization and code quality.

PyCoder's Weekly | Issue #625

Discover the power of Pydantic for data validation in Python.

PyCoder's Weekly | Issue #646

Kraken Technologies manages many deployments with effective tooling, focusing on error prioritization and code quality.
morepydantic
#testing

Easy HTTP status codes in Python

The most useful test for a web application is a test that verifies a response with an HTTP status code of 200 OK.
HTTP status codes can be confusing and it's important to understand their meanings and distinctions.

DRF Serializer: Handling OrderedDict and Converting It to a Dictionary or JSON

Django Rest Framework uses OrderedDict for serializer.data to preserve field order, which is crucial for API response consistency.

Easy HTTP status codes in Python

The most useful test for a web application is a test that verifies a response with an HTTP status code of 200 OK.
HTTP status codes can be confusing and it's important to understand their meanings and distinctions.

DRF Serializer: Handling OrderedDict and Converting It to a Dictionary or JSON

Django Rest Framework uses OrderedDict for serializer.data to preserve field order, which is crucial for API response consistency.
moretesting

How to Perform NOT Queries in Django ORM

The NOT operator enables exclusion of specific records in Django ORM queries.

How to Use @action Decorator in Django Rest Framework

Django Rest Framework's @action decorator allows for the creation of custom API endpoints within ViewSets, enhancing functionality beyond basic CRUD operations.
#database-optimization

Approximate Counting in Django and Postgres

Django's paginator relies on slow SELECT COUNT(*) query. Approaches include approximating row count and custom paginator for faster loading.

Understanding the 'F' Expression in Django: When and Why to Use It

The 'F' expression in Django QuerySets enhances performance by allowing direct database operations without fetching data into Python.

Approximate Counting in Django and Postgres

Django's paginator relies on slow SELECT COUNT(*) query. Approaches include approximating row count and custom paginator for faster loading.

Understanding the 'F' Expression in Django: When and Why to Use It

The 'F' expression in Django QuerySets enhances performance by allowing direct database operations without fetching data into Python.
moredatabase-optimization
#flask

PyCoder's Weekly | Issue #641

Setuptools removed its deprecation after 7 years of allowing the ability to call Let Judoscale solve your scaling issues.

On FastAPI

FastAPI succeeds by building on Django and Flask strengths while feeling modern and opinionated.

PyCoder's Weekly | Issue #641

Setuptools removed its deprecation after 7 years of allowing the ability to call Let Judoscale solve your scaling issues.

On FastAPI

FastAPI succeeds by building on Django and Flask strengths while feeling modern and opinionated.
moreflask

Episode #215: Fetching Graph Data in Django With Strawberry & Prototype Purgatory - The Real Python Podcast

Integrating GraphQL into Python web development with Strawberry in Django.

Seeing code flows and generating tests with Kolo

Kolo is an extension for VS Code to analyze Django requests and overlaps during development.
#django-viewcomponent

Reusable Components in Django with Stimulus and Tailwind CSS - Part 2

Using django-viewcomponent in Django allows for the creation of reusable server-side components efficiently.

Building Reusable Components in Django

Using django-viewcomponent in Django helps create reusable server-side UI components for a cleaner and maintainable codebase.

Reusable Components in Django with Stimulus and Tailwind CSS - Part 2

Using django-viewcomponent in Django allows for the creation of reusable server-side components efficiently.

Building Reusable Components in Django

Using django-viewcomponent in Django helps create reusable server-side UI components for a cleaner and maintainable codebase.
moredjango-viewcomponent
#integration

Integrating Django templates with React for dynamic webpages - LogRocket Blog

Django and React can be integrated to create dynamic websites by leveraging Django's server-side capabilities and React's interactive user interface.

Creating Asynchronous Tasks With Celery and Django - Real Python

Celery helps offload time-intensive tasks from your Django app to ensure a smoother user experience.
The video course covers effective use cases, differences between Celery beat and workers, integration with Redis, setting up asynchronous tasks, and refactoring Django code.

Integrating Django templates with React for dynamic webpages - LogRocket Blog

Django and React can be integrated to create dynamic websites by leveraging Django's server-side capabilities and React's interactive user interface.

Creating Asynchronous Tasks With Celery and Django - Real Python

Celery helps offload time-intensive tasks from your Django app to ensure a smoother user experience.
The video course covers effective use cases, differences between Celery beat and workers, integration with Redis, setting up asynchronous tasks, and refactoring Django code.
moreintegration

Django admin template structure

Django admin template inheritance is essential for customizing the admin interface.
Understanding core HTML templates like base.html is key to modifying Django admin templates effectively.

Django, Axios and CSRF token

Building a hybrid web app involves using Vue.js for the front end and Django for the back end.
Making AJAX calls using axios in Vue components can help in preventing page refresh and Vue app re-initialization.

PyCoder's Weekly | Issue #620

Learn about setting up a CI/CD pipeline with Github Actions for Python projects
Understand how to integrate Celery and Django using Redis as a message broker

How to avoid a count query in Django if you can - Peterbe.com

Avoid using .count() on a potentially slow Django QuerySet query
Optimize pagination by minimizing unnecessary database queries

PyCoder's Weekly | Issue #616

Developing and maintaining a Python monorepo with Sentry
Interview with Lukasz Langa about Python formatters and more

The Release Candidate for PyCharm 2023.3.4 Is Out! | The PyCharm Blog

PyCharm 2023.3.4 Release Candidate is available
New features include an AI Assistant and improvements to Django and Jupyter Notebook

Django accessibility in 2023 and beyond

The Django accessibility team has been working for three years and is looking for new members.
There have been significant improvements to Django core features, such as forms and the administrative interface, to enhance accessibility.

Paolo Melchiorre - My Django roadmap ideas

New DSF board member Thibaud Colas has proposed a Django roadmap workshop.
The proposed ideas for improving Django include organizing active developer sprints, simplifying the English used in the documentation, and adding a quick start section.

Database views in Django

Databases support creating and working with views, which are like virtual tables.
Django's migration system can create views using the RunSQL operation.

Django's three types of model inheritance

Django supports model class inheritance
The best case for inheritance in Django models is abstract models

Use unittest's subtest helper

The Python unittest module is often criticized for not being "Pythonic", but it was designed to be consistent with the xUnit style and to be familiar to anyone who has used an xUnit-style testing framework.
Many people prefer the pytest testing framework over unittest, but if you're using Django, its default testing tools are built on top of unittest.

Reusable Components in Django with Stimulus and Tailwind CSS - Part 1

Building UI components in full-stack Django apps aids code reusability and maintainability.
[ Load more ]