Mirage
Mirage

Reputation: 31548

Where is the django admin media folder situated?

My admin css is not working.

I tried to find it in folder: /usr/local/lib/python2.7/site-packages/django/contrib/admin

There is no media folder there.

I am using Django 1.5a.

Upvotes: 0

Views: 1848

Answers (1)

Daniil Ryzhkov
Daniil Ryzhkov

Reputation: 7596

  1. Make sure you have STATIC_ROOT defined in your settings.
  2. Define STATIC_URL.
  3. Use python manage.py collectstatic command to collect every static file from every app (including contrib.admin) in your STATIC_ROOT folder.

Upvotes: 2

Related Questions