Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Python, Django, and React Development on Apple Silicon
Last year, Apple announced that they would transition their entire Mac line from Intel processors to their ARM64 Apple Silicon chip called the M1. Several weeks ago, I started testing development on MacBook Air with the Apple M1 chip (pictured above). -
Django News - Get PyCharm, Support Django, Django 3.2 release is soon - Apr 2nd 2021
News Get PyCharm, Support Django Until April 29, you can purchase PyCharm at 30% off and the full purchase price will be donated to the Django Software Foundation. jetbrains.com Django 3.2 release and security releases for 3.1.8, 3.0.14, and 2.2.20 On April 6th, Django 3.2 is scheduled to be released along with new security releases for 3.1.8, 3.0.14, and 2.2.20. djangoproject.com PyCon US Schedule Posted! Head over to the PyCon website to see the lineup for Tutorials, Talks, Charlas, Summits and Sponsor Workshops. blogspot.com Events DjangoCongress JP 2021 運営ミーティング5月 - connpass connpass.com Sponsored Link Django Full-text Search with Postgres and Elasticsearch Learn how to leverage the native search capabilities offered by Postgres to add full text-search to Django. Use React, Docker, and Cypress to create a full-stack application with Test-driven Development. Swap out Postgres with Elasticsearch to provide comparable functionality. testdriven.io Articles The Python Handbook From FreeCodeCamp, a very detailed introduction to Python and its functions intended for newcomers. freecodecamp.org In Pursuit of PostgreSQL Performance by Ken Whitesell Or: How someone who doesn’t really know what they’re doing manages to improve the performance of lengthy queries. dev.to Shooting yourself in a foot with Django and recovering from it A great … -
Django User Profile - Learn to code in Django - Themesberg Blog
This article explains how to code a Django User Profile available for authenticated users outside of the admin module. The content might help beginners to learn new things about Django and code a real project with commercial value. For newcomers, Dja... -
Django modify_settings and receivers
Sometimes, tests expose weird behaviour. In this instance, I have a `Makefile` command that calls a `cookiecutter` command to create a new integration with a payroll system. We'd noticed that over time, this infrequntly used code had become slightly less than perfect. So, I wrote a test that runs this code. Not directly using the `make new-payroll-system` command, but rather using a test case from within Django. This worked great in development. I was able to have code that was generated, some tests on that code were run (including generating migrations for the new app), and then the code was removed. {% highlight python %} def test_cookie_cutter(self): from cookiecutter.main import cookiecutter try: cookiecutter( 'integrations/__template__', extra_context={'system_name': 'new_thing'}, output_dir='integrations/systems', no_input=True, ) with modify_settings(INSTALLED_APPS={'append': 'integrations.systems.new_thing'}): call_command('makemigrations', 'new_thing', no_input=True, verbosity=0) finally: shutil.rmtree('integrations/systems/new_thing') {% endhighlight %} But this failed in CI. Turns out that our Codeship-based testing infrastructure doesn't allow for writing the files in the expected location. Never mind, we can use `tempfile.TemporaryDirectory()` instead. That will handle the cleanup for us, which is better than removing files ourselves: {% highlight python %} def test_cookie_cutter(self): from cookiecutter.main import cookiecutter with tempfile.TemporaryDirectory() as dirname: # Put our new temporary directory on the PYTHONPATH. sys.path.insert(0, dirname) cookiecutter( … -
Django modify_settings and receivers
Sometimes, tests expose weird behaviour. In this instance, I have a `Makefile` command that calls a `cookiecutter` command to create a new integration with a payroll system. We'd noticed that over time, this infrequntly used code had become slightly less than perfect. So, I wrote a test that runs this code. Not directly using the `make new-payroll-system` command, but rather using a test case from within Django. This worked great in development. I was able to have code that was generated, some tests on that code were run (including generating migrations for the new app), and then the code was removed. {% highlight python %} def test_cookie_cutter(self): from cookiecutter.main import cookiecutter try: cookiecutter( 'integrations/__template__', extra_context={'system_name': 'new_thing'}, output_dir='integrations/systems', no_input=True, ) with modify_settings(INSTALLED_APPS={'append': 'integrations.systems.new_thing'}): call_command('makemigrations', 'new_thing', no_input=True, verbosity=0) finally: shutil.rmtree('integrations/systems/new_thing') {% endhighlight %} But this failed in CI. Turns out that our Codeship-based testing infrastructure doesn't allow for writing the files in the expected location. Never mind, we can use `tempfile.TemporaryDirectory()` instead. That will handle the cleanup for us, which is better than removing files ourselves: {% highlight python %} def test_cookie_cutter(self): from cookiecutter.main import cookiecutter with tempfile.TemporaryDirectory() as dirname: # Put our new temporary directory on the PYTHONPATH. sys.path.insert(0, dirname) cookiecutter( … -
PyCharm - Paul Everett & Aleksei Kniazev
PyCharmPyCharm Issue TrackerDjangoProject.comSupport the ShowThis podcast is a labor of love and does not have any ads or sponsors. To support the show, please consider recommending a book from LearnDjango.com, signing up for the free weekly Django News newsletter, or learning more about Button, a simpler deployment story for Django. -
Why use Django for complex WebApps?
Django - A great framework ? Django is a high-level Python web framework that enables the rapid development of secure and maintainable websites. Built by experienced developers, Django takes care of much of the hassle of web development, so you can f... -
Rapid Prototyping with Django, htmx, and Tailwind CSS
This tutorial looks at how to add htmx and Tailwind CSS to Django to reduce the amount of time it takes to create and style an interactive front-end. -
How to upload images in Django without 504 Gateway Timeout
Have you ever tried uploading images in Django and encountered 504 Gateway Timeout? Then this blog is for you. What we will implement in this tutorial is an image uploader in Django with crop option. The upload is done asynchronously using AJAX funct... -
Adapting Interview Questions for Junior Candidates
Sébastien asks: “Would you say that your questions are equally applicable to junior and senior positions?” -
Setup PyCharm to use a Django project in docker
To be sure every developer work with the same controlled development environment, more and more teams use docker. That way every developer will work on the same environment, regardless of their operating system. Using docker as a development environm... -
Weeknotes (2021 week 12)
Weeknotes (2021 week 12) Not much open source work this week. The final thesis and presentation for the CAS in Interaction Design was due. I learned a lot but for now I’m just glad that it’s over. I’m looking forward to relearning how to do “nothing” on weekends. FeinCMS 1.20 Some FeinCMS 1.x ItemEditor element attributes clashed with new IDs introduced in Django 3.1. The new version of FeinCMS fixes this. feincms3 Fixed a few problems in the new inline CKEditor widget for the Django admin. An oversight made it impossible to add CKEditor instances with different configurations. Luckily enough this only affected beta/preview releases :-) -
“Fair” Doesn't Mean “Equal”
Some conversations about my previous piece brought me back to one of the earliest lessons I learned in my management career. It’s a realization that’s embarrassingly obvious in hindsight: treating people fairly doesn’t mean treating everyone the same. -
Cloudinary with django
Cloudinary provides a cloud-based image and video management services. It enables users to upload, store, manage, manipulate, and deliver images and video for websites and apps. the reason why i'm using cloudinary is because, i onced deployed my dja... -
How to download Pandas Dataframe as Excel or CSV in Django?
Implementation of downloading a file using Django and Pandas with information about HTTP Response. -
Phoenix vs Django - The battle of brave and wise
This is something I thought of on the toilet and decided to write about :D I'll also compare the two languages with JavaScript, but I won't compare the framework because, in my opinion, there's no Node framework that compares to their frameworks' fe... -
Django News - DRF 3.12.3, PyPI API tokens, articles, and more! - Mar 26th 2021
News Django REST framework 3.12.3 DRF 3.12.3 is out which includes a bunch of bugfixes. django-rest-framework.org The Python Package Index is now a GitHub secret scanning integrator GitHub and the Python Package Index (PyPI) are collaborating to help protect you from leaked PyPI API tokens. github.blog Sponsored Link Migrating from Django 1.7 to 3.1 is no small task. Learn how to successfully leapfrog a massive Django/Python upgrade. sixfeetup.com Articles Understand Django: Deploy a Site Live The 13th in a series of articles by Matt Laymn, the latest explains how and why to properly deploy a Django site. mattlayman.com Effectively Using Django REST Framework Serializers A look at how to use Django REST Framework (DRF) serializers more efficiently and effectively by example. Along the way, we'll dive into some advanced concepts like using the source keyword, passing context, validating data, and much more. testdriven.io How I built API for iOS Feeds in 10 minutes How to quickly add an API to an existing project. nemecek.be How managers should respond to defensiveness after feedback From Jacob Kaplan-Moss, some sage advice on managing developers. jacobian.org Carlton Gibson - Releasing Django 3.2rc1 Django Fellow Carlton Gibson's notes on the release process for Django 3.2 … -
Thoughts on Setting Up a Blog
This post was first sent to my newsletter on March 19th, 2021. You really ought to subscribe :) I blame Mahe for this post. Hey, Jason! Can you please write an article on how to build a website like yours, where I can post my blogs? Check out her blogs, here and here. Read more… (6 min remaining to read) -
The Complete Django Authentication System
This is the final step in making a basic Authentication system or App in Django. There are many other concepts that we will cover in our further tutorials. So in our previous section, we have successfully added models to admin and access them via the... -
Building Admin Dashboard Using Django Admin
In this section, we will learn what is Admin in Django and how to create a superuser account for your website and access the admin interface from the browser. So in our previous section, we have successfully created our URLs. Let's create a Post mode... -
What Are Django URLs?
In this section, we will learn what are URLs in Django and how to create them and link them with the view functions that we have created in views.py file. So in our previous section, we have successfully created our Templates. Let's create URLs for e... -
Understanding Templates In Django
In this section, we will learn what are Templates in Django and where to store templates or HTML pages in Django. Along with Templates, we will also see how to handle and store Static files in Django. Static files include Javascript, CSS, Images. So ... -
Python Web Conf 2021
The Python Web Conf is the most in-depth Python conference for web developers -
Effectively Using Django REST Framework Serializers
This article looks at how to use Django REST Framework (DRF) serializers more efficiently and effectively. -
What are Django Views?
In this section, we will learn what are Views in Django and how to use views.py to display webpage onto the browser on a web request. So in our previous section, we have successfully created our UserCreateForm form. Let's see what are Views in Django...