admin css / static content wasn't loading
|Reported by:||leotreasure@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Following this https://docs.djangoproject.com/en/dev/intro/tutorial02/ lead me to an admin page with no css styling. I mucked around for about an hour before working it out.
I asked on the IRC channel and was recommended this page https://docs.djangoproject.com/en/1.3/howto/static-files/ where I found the solution.
My suggestion is to add these steps onto the tutorial02 website:
set the STATIC_ROOT = "/home/jacob/projects/mysite.com/sitestatic" to your mysite static folder in settings.py
Run the collectstatic management command:
Change History (4)
comment:1 Changed 3 years ago by anonymous
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset