DEV Community

loading...
Django News

Issue 37 - GSOD kicks off, new Python 3.7.9 and 3.6.12, Tailwind CSS v1.7.x, and much more!

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

News

GSOD 2020 Project - Django Internals / Mentorship

With Google Season of Docs (GSOD) kicking off, Gabby Precious wants to know if you have any specific challenges with Django's contribution documentation?


Python Insider: Python 3.7.9 and 3.6.12 security updates now available

The lastest security fix rollups for Python 3.7 and Python 3.6 are now available.


Tailwind CSS v1.7.0 (1.7.1, 1.7.2, and 1.7.3)

The Tailwind CSS v1.7.x release adds a bunch of new features ranging from gradients, background-clip, gap, contents display, font-size letter-spacing, and more interesting new features.


Events

DjangoCon Australia 2020: Schedule live and tickets on sale 🎟️

Tickets are on sale and the schedule has been released for the 8th DjangoCon AU.


Articles

Running Django Tests in Github Actions

A nice, concise introduction to how to use GitHub Actions as a CI platform for testing your Django code.


A deep dive into the official Docker image for Python Itamar Turner-Trauring

Itamar does an excellent job of deconstructing the official Python image for Docker and gives some sound advice and tips along the way.


Why Internationalization and Localization matters by Nicolle Cysneiros

A practical and concise guide to Internationalization and Localization using Python and Django.

Also check out Nicolle's DjangoCon US 2019 talk, Eita! Why Internationalization and Localization matter


Django Security Tips

Concise overview of security best practices to keep in mind in Django.


Stop Using datetime.now! by Haki Benita

A deep-dive into the challenges of managing time.


RFNM - Request For New Maintainer by Matt Layman

The lifecycle of creating/maintaining an open source package.


S3 keys are not file paths by Alex Chan

Alex Chan explains why we should treat S3 buckets like an object store instead of a filesystem.


I Love MDN, or the cult of the free in action

Presented without comment.


Tutorials

Async Views in Django 3.1 by Jace Medlin

Django 3.1 adds support for async views, middleware, and tests. If you have been asking yourself, "What does this look like?" then this tutorial is for you.


Sponsored Link

Learn beginner to advanced Django

Learn beginner to advanced Django from Daniel "pydanny" Feldroy, co-author of Two Scoops of Django in live, online, interactive classes where students are encouraged to ask questions. Use discount code "django-news" to get 10% off all courses.


Podcasts

Running in Production Podcast 44 - An Internal Employee Management App Focused on Schools

In this episode of Running in Production, Chris Goodwin talks about building a platform with Django to manage 15k+ students and 2.5k+ staff members across 29 locations.


Jobs

Django Developer - Contract - Part Time, Python Software Foundation

The PSF is looking for a part-time Django Developer for the next nine months to support python.org and us.pycon.org.


Principal Front End Engineer job at Hangar

Hangar Alpha is hiring a Principal Front End Engineer.


Projects

GitHub logo farridav / django-jazzmin

Jazzy theme for Django

Django jazzmin (Jazzy Admin)

Docs PyPI download month PyPI version Python versions Django Versions Coverage Status

Drop-in theme for django admin, that utilises AdminLTE 3 & Bootstrap 4 to make yo' admin look jazzy

Installation

pip install django-jazzmin

Documentation

See Documentation or Test App

Demo

Live demo https://django-jazzmin.herokuapp.com/admin

Username: test@test.com

Password: test

Note: Data resets nightly

Features

  • Drop-in admin skin, all configuration optional
  • Customisable side menu
  • Customisable top menu
  • Customisable user menu
  • 4 different Change form templates (horizontal tabs, vertical tabs, carousel, collapsible)
  • Search bar for any given model admin
  • Customisable UI (via Live UI changes, or custom CSS/JS)
  • Responsive
  • Select2 drop-downs
  • Bootstrap 4 & AdminLTE UI components
  • Using the latest adminlte + bootstrap

Screenshots

Dashboard

dashboard

List view

table list

Change form templates

Collapsed side menu

form page

Expanded side menu

Single

Horizontal tabs

Horizontal tabs

Vertical tabs

Vertical tabs

Collapsible

Collapsible

Carousel

Carousel

History page

form page

Login view

login

UI Customiser

ui_customiser

Mobile layout

mobile

Tablet layout

tablet

Admin Docs (if installed)

admin_docs

Thanks

This was initially a Fork of https://github.com/wuyue92tree/django-adminlte-ui that we refactored so much…


GitHub logo maykinmedia / django-admin-index

Change the Django admin index page without too much hassle or visual changes.

Admin Index for Django

Version: 1.4.0
Download: https://pypi.python.org/pypi/django_admin_index
Source: https://github.com/maykinmedia/django-admin-index
Keywords: django, admin, dashboard

Build status coverage BSD License Supported Python versions Supported Django versions

About

This extension enables you to group, order and customize the Django admin index page without too much hassle or visual changes.

There are 2 concepts: Application groups and Application links. You can create an application group and add any model to it in the Django admin, under Admin index. Whether the models are shown to the user, depends on the regular Django permissions and whether it's registered in the admin.

An application link is simply a URL with a name that you can add to an application group. It shows as a regular Django model.

One final change in the Django admin is the removal of the App lists, that link to a list of models within an App. This concept became obsolete.

Ordered dashboard with dropdown menu. Manage Application groups. Configure application groups and add Application links.

Installation

You can install django_admin_index either via the Python Package Index…


GitHub logo jimfunk / django-postgresql-netfields

Proper INET and CIDR fields for Django running on PostgreSQL

Django PostgreSQL Netfields

https://secure.travis-ci.org/jimfunk/django-postgresql-netfields.png

This project is an attempt at making proper PostgreSQL net related fields for Django. In Django pre 1.4 the built in IPAddressField does not support IPv6 and uses an inefficient HOST() cast in all lookups. As of 1.4 you can use GenericIPAddressField for IPv6, but the casting problem remains.

In addition to the basic IPAddressField replacement a CIDR and a MACADDR field have been added. This library also provides a manager that allows for advanced IP based lookup directly in the ORM.

In Python, the values of the IP address fields are represented as types from the ipaddress module. In Python 2.x, a backport is used. The MAC address field is represented as an EUI type from the netaddr module.

Dependencies

Current version of code is targeting Django >= 1.8 support, as this relies heavily on ORM internals and supporting multiple versions is especially tricky.

Installation

$

GitHub logo fabiocaccamo / django-admin-interface

the default admin interface made customizable by the admin itself. popup windows replaced by modals. 🧙 ⚡

django-admin-interface

django-admin-interface is a modern responsive flat admin interface customizable by the admin itself.

django-admin-interface-preview

Features

  • Beautiful default django-theme
  • Themes management and customization (you can customize admin title, logo and colors)
  • Responsive
  • List filter dropdown (optional)
  • NEW Related modal (instead of the old popup window, optional)
  • NEW Environment name/marker
  • NEW Language chooser
  • Compatibility / Style optimizations for
    • django-ckeditor
    • django-dynamic-raw-id
    • django-modeltranslation
    • django-tabbed-admin
    • sorl-thumbnail

Installation

  • Run pip install django-admin-interface
  • Add admin_interface, flat_responsive, flat and colorfield to settings.INSTALLED_APPS before django.contrib.admin
INSTALLED_APPS = (
    #...
    'admin_interface'
    'flat_responsive', # only if django version < 2.0
    'flat', # only if django version < 1.9
    'colorfield'
    #...
    'django.contrib.admin',
    #...
)

X_FRAME_OPTIONS='SAMEORIGIN' # only if django version >= 3.0
  • Run python manage.py migrate
  • Run python manage.py collectstatic
  • Restart your application server

Upgrade

  • Run pip install django-admin-interface --upgrade
  • Run python manage.py migrate (add --fake-initial if you are upgrading from

Shameless Plugs

LearnDjango.com

All three books in the series--Django for Beginners, Django for APIs, and Django for Professionals--have been updated to Django 3.1.

learndjango.com

Discussion (0)

pic
Editor guide