Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
How to run uWSGI
Given the cornucopia of options uWSGI offers it's really hard to figure out what options and settings are good for your typical web app. Normally you'd just balk and run something simpler with less knobs and dials, like mod-wsgi with Apache but alas, uWSGI is so flexible and has so many features that mod-wsgi lacks. If only it weren't so tricky to configure... First off, hands down, this is the most important setting - you should always start your configuration in strict mode. This will save you lots of pain and suffering if you ever fiddle with options. [uwsgi] # Error on unknown options (prevents typos) strict = true In general the most reliable concurrency model is processes, with no threads: # Formula: cores * 2 + 2 processes = %(%k * 2 + 2) You could enable threads (the threads option) and use less processes but that can be problematic for code that is CPU-bound or not thread-safe. I wouldn't enable the gevent plugin - you're just asking for trouble with all that monkey-patching. Essentially you're using more memory to avoid certain problems. Most of the useful uWSGI features rely on the master process, it's a pretty mandatory option … -
Django News - Understand Django Security - Mar 11th 2022
News This newsletter has passed 2,500 subscribers! A quick thank you to our readers as this newsletter just crossed 2,500 weekly subscribers. Our engagement is unusually high for a newsletter and we enjoy sharing news/articles/projects with the Django community each week. 🙏🏼 django-news.com Events Wagtail Space US schedule is live! The full schedule for the event, March 24-26 in Cleveland, Ohio is now live. wagtail.space Sponsored Ad Django Styleguide - A styleguide for Django projects, big and small. github.com Articles Understand Django #18: Security A detailed look at web security in general and how to implement best practices in Django. mattlayman.com Scaling Django with Postgres Read Replicas While this is not a new post, if you ever wondered how to scale Django with Postgres Read Replicas, this is worth reading. andrewbrookins.com Python Development Environment on macOS Monterey and Big Sur An opinionated tutorial on configuring a stock Mac system into a solid Python development environment. hackercodex.com Pretty and XSS-safe JSON rendering in the Django admin A concise way to pretty-format a read-only JSON field in the Django admin. niccolomineo.com Sponsored Link Error monitoring for Django Developers. Track and debug exceptions in record time so you can get back to doing … -
Security And Django
In the last Understand Django article, we learned about where apps slow down. We explored techniques that help sites handle the load and provide a fast experience for users. With this article, we will look at security. How does a Django site stay safe on the big, bad internet? Let’s find out. From Browser To DjangoURLs Lead The WayViews On ViewsTemplates For User InterfacesUser Interaction With FormsStore Data With ModelsAdminister All The ThingsAnatomy Of An ApplicationUser AuthenticationMiddleware Do You Go? -
Django News - Django bugfix release: 4.0.3 - Mar 4th 2022
News Django bugfix release: 4.0.3 Django 4.0.3 fixes several bugs in 4.0.2. Also, all Python code in Django is reformatted with black. djangoproject.com PyCon US 2022 Schedule Launch The schedule for PyCon US 2022 has been published! Registration will open on March 1, 2022, for Tutorials, Sponsor Workshops, Summits, Mentored Sprints for Diverse Beginners, and the PyLadies Auction blogspot.com Sponsored Link Error monitoring for Django Developers. Track and debug exceptions in record time so you can get back to doing what you love. honeybadger.io Articles `django-htmx` Now on Read the Docs As part of the django-htmx release there is now a built-in documentation site but with Sphinx and hosted on Read the Docs. adamj.eu Modal forms with Django+HTMX An article covering one pattern for implementing modal forms and HTMX. benoitblanchon.fr Python Project Setup – Virtual Environments and Package Management An overview of available ways to manage virtual environments and packages in Python. bas.codes Modern Python Environments - dependency and workspace management A 2nd(!) and very comprehensive overview of available tools for dependency and workspace management with Python. testdriven.io Deploying a Django Application to Elastic Beanstalk Walking through the steps for deploying a production-ready Django app to AWS Elastic Beanstalk. testdriven.io … -
PDF Debugging - Building SaaS with Python and Django #129
In this episode, I debugged the static file handling that my homeschool application is using when it generates PDF reports. Note: There was some stream trouble. This segment of the stream had no webcam video and was disconnected. Part 2 shows the successful completion of the PDF integration which you can see at https://www.youtube.com/watch?v=F5CBNNZMdxs. -
PDF Debugging - Building SaaS #129
In this episode, I debugged the static file handling that my homeschool application is using when it generates PDF reports. Note: There was some stream trouble. This segment of the stream had no webcam video and was disconnected. Part 2 shows the successful completion of the PDF integration which you can see at https://www.youtube.com/watch?v=F5CBNNZMdxs. -
Django Community - Anna Makarudze
Anna’s personal siteDjangoCon US 2018 Keynote @amakarudze on TwitterDjango Events Foundation of North America (DEFNA)Site Reliability Engineering: How Google Runs Production SystemsSupport the ShowThis podcast does not have any ads or sponsors. To support the show, please consider purchasing a book, signing up for Button, or reading the Django News newsletter. -
django-htmx Now on Read the Docs
I’ve just released django-htmx 1.9.0. As part of this release, it now has a documentation site built with Sphinx, hosted on Read the Docs at django-htmx.readthedocs.io. The documentation looks a lot nicer than what can be fit in the GitHub README, especially thanks to the Furo theme. It’s also more digestible on several pages. I’ve also added a few sections, covering some useful tips for using htmx with Django: How to add htmx to your Django project. django-htmx does not include htmx, so you can upgrade the two separately. I covered how to download htmx into your project’s static files. This goes with my open PR to htmx to de-emphasize using unpkg.com directly. How to make htmx pass Django’s CSRF token. This is a commonly required pattern. It was previously covered only in the included “example project”, but that was not so easy to discover. How to do partial rendering. This is a neat trick for cutting down server side render times a bit. This techinque is also covered in the example project. The “tips” page may expand in the future with further techniques. Thanks to: Ben Beecher for doing initial Sphinx and Read the Docs setup in PR #194. … -
Rotterdam (NL) 2022 python meetup summaries
(Some summaries of a talk at the February 2022 Rotterdam python meetup). Technical note about running the live+online meetup The meetup was partly live, partly online. The technical setup worked surprisingly well: They had a microsoft Teams channel for the online folks. A laptop was connected to that same channel and showed it on a big screen via a beamer in the room for the "live" folks. The speakers had to connect to the Teams channel to show their slides both online and automatically also in the room. A big microphone gave pretty good sound, even though it was some four meters away from the speaker. Worked fine! Strange having a meeting without having to wrestle with hdmi adapters :-) Pandas and excel tables done properly - Thijs Damsma He showed https://github.com/VanOord/pandas-xlsx-tables When using a jupyter notebook and pandas, you can easily load csv files and do stuff with it. Make nice graphs, for instance. But... colleagues want xsl sheets.... So you can use a pandas xls exporter. But the output is a raw xls sheet. It works much better if you format the data in xls as a "table": "format as table". It sounds like it only formats it … -
Deploying a Django Application to Elastic Beanstalk
This tutorial shows how to deploy a Django Application to AWS Elastic Beanstalk. -
Modern Python Environments - dependency and workspace management
This article looks at the available tools for dependency and workspace management in Python. -
Django News - The Baked Data Architectural Pattern - Feb 25th 2022
News htmx 1.7.0 has been released! Multiple new features and improved documentation in the latest htmx release. htmx.org Django for APIs 4.0 Update is now available This is a major update to the book Django for APIs with new chapters on testing, deployment, Windows support, and loads more content. This post covers the full scope of changes. wsvincent.com Sponsored Ad Django Styleguide - A styleguide for Django projects, big and small. github.com Events Wagtail Space US 2022 CFP (last call) Wagtail Space US's deadline to submit is February 25, 2022 Talks will have the option of being pre-recorded, given live via Zoom, or given in-person at the venue (and broadcast over Zoom by our technician). For pre-recorded talks, we would ask the presenter to still be online during the talk broadcast to answer questions and audience feedback. google.com Articles The Baked Data Architectural Pattern An architectural pattern for publishing websites that provides many of the advantages of static site generators while ignoring most of their limitations. simonwillison.net Working with Static and Media Files in Django This article looks at how to work with static and media files in a Django project, locally and in production. testdriven.io How and why I … -
Django for APIs 4.0 Update
Changelog for the Django 4.0 and Django REST Framework 3.13 update -
Form Features and CSS - Building SaaS with Python and Django #128
In this episode, we worked on a user requested feature that improves a workflow for task management in the homeschool app. After completing the feature, I returned to the PDF bundle project to add CSS styling to the PDF report. -
Form Features and CSS - Building SaaS #128
In this episode, we worked on a user requested feature that improves a workflow for task management in the homeschool app. After completing the feature, I returned to the PDF bundle project to add CSS styling to the PDF report. -
Managing a Django Project with Poetry
Poetry is relatively new packaging and dependency manager. It makes it very easy to upload libraries to PyPI, manage dependencies visually, and has a couple of handy features. Today, I'm not going to do a deep dive into how Poetry works and all its features. Today I just want to focus on how to configure it for a Django project. -
Django News - All About Deployment - Feb 18th 2022
News Python Software Foundation: We are hiring contract developers to build new features in PyPI The Python Software Foundation has funding available for designing, developing and deploying organization accounts in PyPI. blogspot.com Trends and Insights Trends and Insights for February 18th 🏈 If you are curious about what Super Bowl LVI traffic looks like, Cloudflare gave us all the details. 📈 Python Package Index (PyPI) was trending this week and announced that they served 126,545,477,066 downloads in 2021. 🔒 If you upload packages to the PyPI, do you have Two Fator Auth (2FA) enabled? 📅 DjangoCon US is back in San Diego, CA, October 16-21. 💬 Mike Driscoll started a discussion about your favorite feature in #Django and add-on package? Django Newsletter Sponsored Ad Django Styleguide - A styleguide for Django projects, big and small. github.com Events San Diego Python Users Group - Virtual Meetup (2/24/22) Three talks on creating a REST API with Django Rest Framework, Django REST with Machine Learning, and designing as a developer. meetup.com PyTexas 2022 Schedule is live! The PyTexas 2022 Schedule is live and features several friendly Django developers. pytexas.org Articles Instructions to Deploy Django, Django Channels to AWS A helpful step-by-step guide to … -
Asynchronous Tasks with Flask and Celery
This tutorial looks at how to configure Celery to handle long-running tasks in a Flask app. -
Upgrade to Tailwind CSS v3 - Building SaaS with Python and Django #127
In this episode, I upgraded my app to switch from Tailwind CSS v2 to v3. We worked through the migration guide to make all the needed changes to work with v3. Then I upgraded my development tools to make Tailwind updates as I develop my templates. -
Upgrade to Tailwind CSS v3 - Building SaaS #127
In this episode, I upgraded my app to switch from Tailwind CSS v2 to v3. We worked through the migration guide to make all the needed changes to work with v3. Then I upgraded my development tools to make Tailwind updates as I develop my templates. -
Django Deployments - Eric Matthes
django-simple-deployPython Crash Course recommended readingsPython Crash Course book Python on Azure 4-Part Series with CarltonLocust.io: Open source load testing toolSupport the ShowThis podcast does not have any ads or sponsors. To support the show, please consider purchasing a book, signing up for Button, or reading the Django News newsletter. -
How to Work Through Django Books
Practical tips for reading and coding examples in Django books. -
That Wild Ask A Manager Story
Ask A Manager had a wild story a week ago. A company interviewed someone, hired him, but when he showed up for work … it was a totally different person. A friend asked, “if this was your hire, and you manager asked you to change your hiring practices to prevent this, what would you do?” Nothing. I would do nothing. Here’s why. -
I was on The Changelog
I was on The Changelog, talking about work sample tests and hiring in general. Listen wherever you get your podcasts, or right here. -
Django News - Wagtail 2.16 Released - Feb 11th 2022
News Wagtail 2.16 Wagtail 2.16 adds support for Django 4.0 and dozens of features and improvements. github.com DEFNA Board Member Recruitment Django Events Foundation North America (DEFNA) is looking for another board member who is interested in growing the DjangoCon US community. djangoproject.com Wagtail’s domain migration The Wagtail team decided to migrate their wagtail.io domain to a wagtail.org domain. wagtail.org Trends and Insights Trends and Insights for February 11th 🍏 Jen Simmons, from Apple, asked the web community for meaningful feedback to help address issues with their Safari browser. 🖤 The Django codebase is now formatted with Black. ⚡ Django Snippets is now using htmx on their front page and they are looking for new contributors. This continues the trend of more and more projects starting to adopt htmx. 🌍 Do you remember your first DjangoCon Europe? The team wants to know. ✏️ Writing a "Hello Wordle" app might be the new writing "Hello world" in your favorite framework. 🐍 Python Core Devs are discussing "Removing dead batteries" from Python 3.13. 🐘 After you upgrade to Postgres 14, you need to reindex all of your indexes because glibc changed how data is internally sorted. 📘 Kalob Taulien announced that he …