DEV Community

loading...
Django News

Django Day Copenhagen 2020, Python 3.8.6, Django security best practices, and more.

jefftriplett profile image Jeff Triplett (he/him) Originally published at django-news.com on ・3 min read

News

Python 3.8.6 is now available

Python 3.8.6 is a maintenance release. Check out the What's New In Python 3.8 document for more information about features.


Django CMS 3.8.0 RC1 released

The first Django CMS release under a newly founded Django CMS Association. This release focuses on Django 3.1 support.


Events

Django Day Copenhagen 2020

Djangonauts from in and around Denmark are meeting up for the second edition of Django Day, to be held on September 25th 2020. It will be a full day of talks, either to be experienced online -or- at our venue with safe social distancing.


Articles

Django Best Practices: Security

Django security best practices starting with the most important and working down the list.


Docker Github Actions V2

Docker released V2 of their Docker Github Actions which adds some much better build and caching options.


Django and its default values

A dive into how Django's migration system handles default values on model fields.


What is the Value of Browser Diversity?

A thoughtful take on what's lost if one/two browsers dominate.


feincms may still be relevant

Thoughts on the Django CMS landscape from the creator of feincms.


Using sorl-thumbnail with Redis on Heroku

How to add sorl-thumbnail to a Django project with Redis and deploy on Heroku


Comprehending Class-Based Views in Django - The View Base Class

A look at the base View class from which all other Class-Based Views are built.


Videos

Python Web Conf 2020 Talks

The Python Web Conf 2020 Talks were released to YouTube!


Django Boston August 2020 Virtual Event with Benjamin "Zags" Zagorsky

Benjamin "Zags" Zagorsky presents "Rapid Prototyping in Django", a distilled set of lessons and recommendations from the projects we've done for how to build a functional Django website in 2 days and not regret it later.


"At The Root : Wagtail + Gatsby + GitPod" - Dawn Wages (PyConline AU 2020)

How to combine headless Wagtail with a Gatsby frontend and Gitpod.


Can you keep a secret?

Techniques to properly store, share, and manage your secrets, as easily as possible, and most importantly without disrupting your workflow.


Podcasts

Running in Production - Collecting and Processing Genomic Data to Help Cure Rare Diseases

Using Django to build an internal tool that helps make sense of ~5 Petabytes of Genomic data that is then made available to clinicians. It’s running across many different AWS resources using ECS Fargate.


Projects

GitHub logo raphaelm / django-scopes

Safely separete multiple tenants in a Django database

django-scopes

Build Status codecov PyPI Python versions PyPI - Django Version

Motivation

Many of us use Django to build multi-tenant applications where every user only ever gets access to a small, separated fraction of the data in our application, while at the same time having some global functionality that makes separate databases per client infeasible. While Django does a great job protecting us from building SQL injection vulnerabilities and similar errors, Django can't protect us from logic errors and one of the most dangerous types of security issues for multi-tenant applications is that we leak data across tenants.

It's so easy to forget that one .filter call and it's hard to catch these errors in both manual and automated testing, since you usually do not have a lot of clients in your development setup. Leaving radical, database-dependent ideas aside, there aren't many approaches available in the ecosystem to prevent these mistakes from happening aside from rigorous code review.

We'd like…

Safely separete multiple tenants in a Django database


GitHub logo matthiask / feincms3

feincms3 provides additional building blocks on top of django-content-editor and django-tree-queries which make building a page CMS (and also other types of CMS) simpler.

feincms3

https://travis-ci.org/matthiask/feincms3.svg?branch=main Documentation Status

feincms3 offers tools and building blocks which make building a CMS that is versatile, powerful and tailor-made at the same time for each project a reachable reality.

An introduction to feincms3, guides and reference docs are available in the official feincms3 documentation. There is also an example project which shows some its capabilities.




feincms3 offers tools and building blocks which make building a CMS that is versatile, powerful and tailor-made at the same time for each project a reachable reality.


GitHub logo SmileyChris / django-countries

A Django application that provides country choices for use with forms, flag icons static files, and a country field for models.

Django Countries

PyPI version Build status Coverage status

A Django application that provides country choices for use with forms, flag icons static files, and a country field for models.

Installation

  1. pip install django-countries
  2. Add django_countries to INSTALLED_APPS

For more accurate sorting of translated country names, install the optional pyuca package.

CountryField

A country field for Django models that provides all ISO 3166-1 countries as choices.

CountryField is based on Django's CharField, providing choices corresponding to the official ISO 3166-1 list of countries (with a default max_length of 2).

Consider the following model using a CountryField:

from django.db import models
from

A Django application that provides country choices for use with forms, flag icons static files, and a country field for models.


GitHub logo lnxpy / DBMQ

Docker-based Message Queuing Using @django as The Web Server


Docker-based Message Queuing
Docker SDK - Read the Docs here ➤
Create your Dockerized Django project and start using MBs


Introduction

Docker-based Message Queuing (DBMQ) is an efficient way to run the pre-built configurations on the building process of Dockerfiles. Once you have finished configuring, you will be able to create your images based on your configurations. DBMQ is very flexible with Django projects and you might stay away from troubles with creating a Dockerized Django project. After the building process, your image will be ready to get started. Use a text editor to step through your container and make changes. (pre-installed editor is Vim)

Why DBMQ is Needed

This system locates between the user and the Docker service. You config your requirements and let this automated system to provide them to you. You don't need to be a genius in Docker, just keep configuring. There is a…




A Docker-based Message Queu using Django as the web server.

Discussion (0)

pic
Editor guide