1👍
If you’re running Grappelli, you can set the admin media when using runserver
by specifying the command line argument --adminmedia
. Here is an example:
python manage.py runserver --adminmedia=/path/to/grappelli/media
Where /path/to/grappelli/media
is the complete path to your Grappelli installation’s media
directory.
0👍
You don’t need to specifically serve the admin media while using the development server – this should happen automatically.
- [Django]-How to do related questions autopopulate
- [Django]-Django: Using 2 different AdminSite instances with different models registered
- [Django]-Best way to incorporate external django app into a project and safely make local changes
- [Django]-Django ORM – Grouped aggregates with different select clauses
- [Django]-Why does the Django Atom1Feed use atom:updated instead of atom:published?
0👍
-
I think it is simpler to just symlink in your local system to the django admin media, the same directory that you use in production, than to subject to a lot of if PRODUCTION within settings.
-
As Daniel rightly pointed out, django serves admin media by default. Anymore configuration is not required. So the problem is perhaps something different. Try
chmod 777
on the templates directory, It may fix the problems.