Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
A Year in the Life of a DSF Board Member
What Django Software Foundation Board Member's actually do. -
Episode 9 - Application Examination
On this episode, we will study the structure of a Django application. Applications are the core components that make up a Django project. Listen at djangoriffs.com. Last Episode On the last episode, we focused on the built-in Django administrator’s site. We’ll saw what it is, how you can configure it, and how you can customize it to serve your needs. What Is An Application? In Django parlance, a “web application” is a Django project. -
On using Markdown with Sphinx - onward to Evennia 0.9.5
Last post I wrote about the upcoming v1.0 of Evennia, the Python MU* creation engine. We are not getting to that 1.0 version quite yet though: The next release will be 0.9.5, hopefully out relatively soon (TM). Evennia 0.9.5 is, as you may guess, an intermediary release. Apart from the 1.0 roadmap just not being done yet, there is one other big reason for this - we are introducing documentation versioning and for that a proper release is needed as a base to start from. Version 0.9.5 contains everything already in master branch, so if you have kept up-to-date you won't notice too much difference. Here are some highlights compared to version 0.9: EvMore will paginate and properly handle both EvTables and database query output. For huge data sets, pagination can give a 100-fold speed-increase. This is noticeable e.g. in the scripts and spawn/list commands, once you have a lot of items.EvMenu templating language, to make it easier to create simpler menus. Webclient improvements: Cleanup of interface and the ability for players to save/load their pane layouts from the client. The developer can still provide a default for them to start out with. MUD/Evennia Intro wizard to the tutorial world to … -
7 reasons Django Web Framework is Perfect for Startups
If your startup is obsessed with its technology stack, then you are not alone. Every emerging CTO wants the most value-oriented programming language, scalable web framework, and expert developers. This article will leave behind the programming language and talented developers and talk about one of the best things in the technology stack for startups – […] The post 7 reasons Django Web Framework is Perfect for Startups appeared first on BoTree Technologies. -
Django News - DjangoCon EU Videos Available - Oct 16th 2020
News DjangoCon Europe 2020 - Videos now live All 30 videos are now available on YouTube from this year's conference. youtube.com Events PyTexas 2020 PyTexas is Oct 24th & 25th and online this year will be streamed for free or a donation. Don't miss the t-shirts which are very nice looking. pytexas.org Articles How to Mock Environment Variables in PyTest Three things most Django projects need--mocks, environment variables and PyTest--covered by Adam Johnson. adamj.eu Django's transaction.atomic() It's not always as atomic as you might think! charemza.name Weeknotes 2020 WK 41 - OMG Timezones Django Fellow Carlton Gibson's weekly notes on all things Python/Django, with a focus on timezone support. noumenal.es We need to talk about GitHub On the current state of GitHub and mono/poly cultures. thea.codes Upgrading Python Homebrew packages using pip A quick tip from Simon Willison on updating Python via Homebrew. simonwillison.net Prevent Unintended Data Modification With django-read-only - Adam Johnson Tips to using the new django-read-only package, which provides a read-only mode for Django’s database layer. adamj.eu Django log management with Elastic and Kibana A hands-on guide to creating log management with Elasticsearch, Filebeat, and Kibana in a Django project. koky.ir Sponsored Link Mystery Science Theatre 3000 … -
Running Django on DigitalOcean's App Platform
This article looks at how to deploy a Django application to DigitalOcean's App Platform. -
Capped Social Network - Building SaaS #76
In this episode, I started a new project to build a different kind of social network. This social network will contain a max number of connections to encourage thoughtful choice when growing your personal network. We talked MVP features and put in the basics of a Django app. I had a wild thought to build a social network with a capped number of connection in the hope that users would choice their connections based on people that they really care about. -
A Django REST API in a Single File
I previously covered writing a Django application in a single file, for both synchronous and asynchronous use cases. This post covers the angle of creating a REST API using Django in a single file. Undeniably, REST API’s are a very common use case for Django these days. Nearly 80% of this year’s Django community survey respondents said they use Django REST Framework (DRF). DRF is great for building API’s and provides many of the tools you’d want in a production-ready application. But for building a very small API, we can get by solely with tools built into Django itself. Without further ado, our example application is below. You can save it as app.py, and run it with python app.py runserver (tested with Django 3.1). An explanation follows after the code: import os import sys from dataclasses import dataclass from django.conf import settings from django.core.wsgi import get_wsgi_application from django.http import HttpResponseRedirect, JsonResponse from django.urls import path from django.utils.crypto import get_random_string settings.configure( DEBUG=(os.environ.get("DEBUG", "") == "1"), ALLOWED_HOSTS=["*"], # Disable host header validation ROOT_URLCONF=__name__, # Make this module the urlconf SECRET_KEY=get_random_string( 50 ), # We aren't using any security features but Django requires this setting MIDDLEWARE=["django.middleware.common.CommonMiddleware"], ) @dataclass class Character: name: str age: … -
Ethical Ads - David Fischer
David Fischer personal siteEthicalAds.ioAdvertising on Read the Docs Community Sitesethical-ad-server on GithubSupport the ShowOur podcast does not have a sponsor and is a labor of love. To support the show, please consider purchasing one of the books on LearnDjango.com or suggest one to a friend. -
Django London Meetup 2020
The Django London Meetup group is a social meetup, that hold a gathering the 2nd Tuesday of each month. -
Prevent Unintended Data Modification With django-read-only
Last week I released a new Django package, django-read-only. It provides a read-only mode for Django’s database layer. This can be useful to reduce the risk of giving developers access to your production instances. Access to manage.py shell on production allows you to iterate faster when creating new features, migrations, and backfills. But with great power comes great accident potential. It’s all too easy to mix up terminal sessions and run the wrong thing on production. Even if the individual chance of making such a mistake is small, multiplying it by team size and time, the chance of a mistake can become almost certain, and the potential cost can be huge. Rather than locking your team members out of production, you can protect against these mistakes with django-read-only. The package uses some always-installed database instrumentation to block database access when its read-only mode is active. You can then enable read-only mode for interactive production sessions via an environment variable or setting, so when developers access production writes are disabled by default. Read-only mode can be disabled, so the occasional manual data fix is still possible. For example, if the environment variable was set, we couldn’t log into the shell and … -
Python 3.9: What's New
This article looks at the new features in Python 3.9 and how they can be implemented. -
Django News - Django Technical Board Results and Python 3.9 released - Oct 9th 2020
News Django Technical Board Election Results 2020 The winners of the first Django Technical Board Election after the adoption of DEP-10 are: Andrew Godwin Adam Johnson Markus Holtermann Tom Forbes James Bennett djangoproject.com Python Release Python 3.9.0 Python 3.9.0 is the newest major release of the Python programming language, and it contains many new features and optimizations. python.org Wagtail Telepath - the next evolution of StreamField Adding the missing link to provide richer client-side behaviour in StreamField and beyond. wagtail.io Events PyTennessee 2021 CFP closes on October 13 PyTennessee is a yearly regional Python conference in Nashville, TN. The conference was started in 2014 by Jason Myers and Will Golden, and has been a staple of the conference calendar every year since. PyTennessee 2021 will be our 8th year, and our first year doing a purely virtual conference! papercall.io Articles Django Stripe Subscriptions Use Stripe Checkout to add subscriptions to a Django project. testdriven.io Django Slug + ID URLs: Copying Dev.to's URL pattern to Copying the dev.to URL design of a username, slug, and hashed value in Django. dev.to A Django project blueprint to help you learn by doing A description of a Django project for beginners, which you can … -
Use Django in Jupyter
Below is a simple method to us... -
Make A Landing Page - Building SaaS #75
In this episode, I added a landing page design to the app that I’m building. By using a Tailwind CSS landing page template, I could fit the design in with my existing CSS tools. I showed some available templates that I discovered while researching for Tailwind-based landing pages. Once I found a decent template, I copied the source of sample landing page into my index page template. Since I copy and pasted from the landing page, the initial look was terrible. -
Testing Flask Applications with Pytest
This articles serves as a guide to testing Flask applications with pytest. -
Django Bootcamp - October 2020
Learn Django little by little ... -
Teaching the last Two Scoops of Django Live Class
We're offering our last live, online class of Two Scoops of Django Live. This is a fully interactive class conducted via Zoom conferencing software. Daniel Feldroy is going to dive deep into Django and Python. He's going to turn on the firehose of knowledge, so come prepared to learn. As this is a live class, attendees are encouraged to ask questions. Material covered includes everything from code architecture to model design to API development to bottleneck analysis to user accessibility and much more. This is not a beginner tutorial, it is meant for developers who have begun to create real projects with Django. Details: The course starts at 9 AM PST (4 PM UTC) and ends seven (7) hours later There will be an hour long break for lunch and short breaks every hour. This event is live and won't be recorded. We won't teach a public version of this class again. Class prerequisites: Knowledge of the Python programming language. Django experience beyond basic tutorials. A device capable of running the Zoom meeting software. Internet fast enough to join online meetings. Use code "THREESCOOPS" during checkout to get $100 off. This code expires at Midnight, October 7th, Pacific Time. SIGN … -
Hijack To Help Customers
You have an upset customer with a really thorny problem on your Django-powered website. Your customer used your help ticket system and reported their woe. You’ve done your due diligence and have already checked: The logs from your site show nothing interesting related to the customer’s actions The error tracking system reveals no exceptions from what the customer did The customer’s description doesn’t contain enough info to diagnose the problem fully The experiments in your dev environment have not worked to replicate the problem What can you do? -
Django Stripe Subscriptions
This tutorial looks at how to handle subscription payments with Django and Stripe. -
Migrate Away from cmsplugin-filer in a Few Easy Steps
Companion code for this post: https://github.com/ImaginaryLandscape/deprecate_cmsplugin_filer If you've been building projects using django CMS for any length of time, chances are you're familiar with Divio's cmsplugin-filer application which provided image, link, file, folder and video plugins for interacting with django-filer. And if you're here, chances are you're aware that cmsplugin-filer has now been deprecated in favor of their standalone djangocms-[picture/file/link/video] plugins. Unfortunately, for a production project that already has hundreds of these cmsplugin-filer objects, simply switching to the newer packages is no simple task. You really only have a couple options — switching over to a fork with the hopes that it will continue to be supported as future Django versions are released, or setting about to migrate all of your existing plugins. Here we'll walk you through the latter. Let's start with a word of caution. This remains experimental code. Taking these steps will make irreversible changes to your database objects. It's highly recommended you run this on a development version of your project before modifying production data to identify any issues that may arise. At the least, make a backup of your database to allow restoring if needed. In searching for an existing solution to this problem, you may have … -
A Django project blueprint to help you learn by doing
There's an awkward point when you're learning Django where you've done the official tutorial and maybe built a simple project, like a to-do list, and now you want to try something a little more advanced. People say that you should "learn by building things", which is good advice, but it … -
Django Crash Course Live!
This is your last chance to sign up for our class on October 2-4, 2020! Sign up at: Django Crash Course Live This is your chance to learn and interact live with Daniel and Fabio, two experienced Django developers! -
Deploying Django > 3.1 (async) with Uvicorn and Nginx
Django async Django 3.1 shipped with async views. This means we can start using async/await in Django views: async def index(request): res = await do_stuff_async() # return your view To reap all the benefits of this feature, you have to run Django under an ASGI server like Daphne, Uvicorn, or Hypercorn. In this guide I use Uvicorn. The setup The stack uses battle-tested components: PostgreSQL Nginx Uvicorn with Gunicorn Django async The setup Install and configure Postgres Install and configure Git, install Python Install Nginx Configure Nginx Install Certbot and configure SSL Preparing the environment for deploy Split settings Testing Django with Uvicorn Making Uvicorn persistent Static files, settings, and migrations Infinite redirects and SECURE_SSL_REDIRECT Automate all the things! Resources Install and configure Postgres First off, head over PostgreSQL Downloads and configure the appropriate repo for your operating system. Next up, install Postgres, start the service, and enable it at boot. Also, create a role and a database. Install and configure Git, install Python On the target production server install Git and Python > 3.6. Git is needed later for cloning and pulling the Python code. Install Nginx Head over the Nginx documentation and configure the appropriate repo for your … -
Django News - PyGotham TV, Django T-Shirts, and Many New Releases - Oct 1st 2020
News New DjangoCon t-shirts Beautiful new t-shirt designs representing DjangoCon US, Europe, Australia, and Africa have been added to the store! threadless.com Django 3.1.2 bugfix release A new bugfix package is available. djangoproject.com Django REST Framework 3.12 release The 3.12 release brings a handful of refinements to the OpenAPI schema generation, plus support for Django's new database-agnostic JSONField, and some improvements to the SearchFilter class. django-rest-framework.org Wagtail 2.10.2 release New updates to the popular Django CMS. github.com pytest 6.1.0 released A new version of the very popular Python testing package is out. pytest.org django-filter 2.4.0 released A security update to 2.4.0. Upgrading highly recommended. pypi.org Celery v5.0.0 Released Version 5.0.0 of Celery, a very popular distributed task queue. github.com Events PyGotham TV PyGotham TV is this Friday, Oct. 2 & Saturday, Oct. 3, and tickets are FREE. pygotham.tv Python Web Conf 2021 CFP Python Web Conference is a fully virtual, 3 day, 3 track conference you can join from the comfort of your home office. Their CFP just opened up. papercall.io Articles Understanding Django - Anatomy of an Application The 8th in a series from Matt Layman, this one focusing on understanding Django apps. mattlayman.com Deep dive: Django Q and …