0
votes

I am using django grapelli. It is in the static/admin/ directory, which is used by admin site.

I create a public directory, which separate from admin, and can be access from public.

Django grapelli come with jquery and some other css.

Should I create a static/public/ to store css and js for public site or should I use the admin static css and js?

I create a a directory name public in static directory - static/public/, but I seems not able to serve the static files.

1

1 Answers

0
votes

In order to make it as seamless as possible, django serves the admin media in the development server from within the django sources.

In order to make it take the grapelli media, you should do:

python manage.py runserver --adminmedia=./static/public

And it serves the admin media from that directory!