Monday, July 1, 2013

Re: no style in admin pages; learning from djangobook.com

Are you using the development server with `python manage.py runserver`? If you are, the static files for the admin should just work. If they don't, you may have messed up something in your settings.py. 

Otherwise, if you're serving your project from a webserver like Apache or nginx, run `python manage.py collectstatic` to consolidate the admin static files into your STATIC_ROOT directory. You'll probably have to fiddle with your web server configuration to serve files from STATIC_URL from STATIC_ROOT before you get it to work.

On Monday, July 1, 2013 9:05:31 AM UTC-4, Jared Nielsen wrote:
Hi all,
Just getting started with Django.
I'm following the projects on djangobook.com.
After activating the admin interface I don't have .css styling.
I also have no idea how to enable it.
Any help is greatly appreciated.
Thanks!

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment