Tuesday, July 2, 2013

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

It was the 'django.contrib.staticfiles' in INSTALLED_APPS.
Looks as it should now.
Thanks for the help.

On Monday, July 1, 2013 9:58:52 AM UTC-7, Vineet Naik wrote:
Adding to Jacky Tian's reply, if you are running the django dev
server, check if DEBUG is set to True and `django.contrib.staticfiles`
is added to INSTALLED_APPS in settings.py

See docs about these settings here -
https://docs.djangoproject.com/en/dev/howto/static-files/#configuring-static-files

On Mon, Jul 1, 2013 at 10:22 PM, Jacky Tian <xjti...@gmail.com> wrote:
> 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...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Vineet Naik

--
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.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate