On 20/10/2013 11:07pm, Diogene Laerce wrote:
Hi,

Could someone tell me if it is normal to have the css not working once one
starts the real server (nginx) instead of the dev server on the admin
interface ?

The dev server "just knows" where the static files are. The real server needs to be configured.

Run manage.py collectstatic to pick up all the static files from wherever they are in your project (if the dev server can find them so will collectstatic) and put them into STATIC_ROOT

Configure nginx to serve them from there ...

https://docs.djangoproject.com/en/1.5/howto/static-files/deployment/

Thanks a lot, it worked well !

--
“One original thought is worth a thousand mindless quotings.”
“Le vrai n'est pas plus sûr que le probable.”

                                              Diogene Laerce

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5264CC13.20205%40yahoo.fr.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to