Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a custom admin theme for Django [closed]

I'm playing around with Django, and wondering if there is a link to documentation where one can get details on creating your own Django admin theme?

like image 638
josef.van.niekerk Avatar asked Mar 16 '12 21:03

josef.van.niekerk


2 Answers

The Django Admin Site docs has a section on overriding admin templates.

Grapelli is the most common Django theme that I'm aware of. I recommend you have a look at the source and see how they've done it.

like image 57
Alasdair Avatar answered Oct 21 '22 23:10

Alasdair


In addition to Grapelli, would like to add some others possible options I personally like:

  • Django Suit
  • Django Dashboard NowUI - with a PRO version

If you decide going with Django Suit, one of my previous QAs explains the needed steps.

If you go with Django Dashboard NowUI, you have to clone the source code (available in GitHub). That project has associated with it a requirements.txt which you have to install (i suggest in a Python venv)

pip install -r requirements.txt

Before being able to runserver, you'll need to makemigrations and migrate to generate some needed tables and that's it - that simple.

like image 25
Tiago Martins Peres Avatar answered Oct 22 '22 00:10

Tiago Martins Peres