Django share CSS and Javascript for admin and public -


i using django grapelli. in static/admin/ directory, used admin site.

i create public directory, separate admin, , can access public.

django grapelli come jquery , other css.

should create static/public/ store css , js public site or should use admin static css , js?

i create a directory name public in static directory - static/public/, seems not able serve static files.

in order make seamless possible, django serves admin media in development server within django sources.

in order make take grapelli media, should do:

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

and serves admin media directory!


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -