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.
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!
精彩评论