Skip to content

Repository, where I've put some useful django hacks that are not quite obvious and easy to google

Notifications You must be signed in to change notification settings

depozzyx/django-hacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django3 hacks

This is my repository with all django hacks that I found useful and not very obvious

Custom admin page / Fake admin page

This is an easy(probably the easiest) and native-like method to create statistics pages, specific managment forms or anything you would like directly in your django administration without need for additional models

How to implement

Fake admin page demo

One-button foreign key change

Sometimes there is no need for complex widget for changing foreign key in django admin(that with dropdown, plus sign and change button), so here is my solution:

How to implement

One buutton foreign key

Admin change form avatar / image

A cool template to display basically any image in model's change form

How to implement

Avatar demo

Auto image optimiser

Stats view?

Useful links and tutorials

Django statistics dashboard tutorial

About

Repository, where I've put some useful django hacks that are not quite obvious and easy to google

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published