A
A
Andrey Titov2016-02-21 13:27:26
Django
Andrey Titov, 2016-02-21 13:27:26

How to restore admin template in Django?

6fb1b26ee26d4824a2e4233fc154ac27.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Kitaev, 2016-02-21
@deliro

collectstatic

A
Andrew, 2016-02-21
@AndME

Specify static paths and files in the Django settings - STATIC_ROOT, STATICFILES_DIRS and STATIC_URL.
You may also need to reconfigure your webserver. For example, I have the following in my virtual host:

Alias /static/ /home/test/django-venv/static/
  <Directory /home/test/django-venv/static>
  Require all granted
  </Directory>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question