[Answer]-Django admin interface not working in Apache2

1πŸ‘

βœ…

I don’t think Alias /admin /usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/admin is appropriate in the apache conf.

Your urls.py should be appropriately handling it like
url(r'^admin/', include(admin.site.urls)),

If you want to handle static files for admin site, they should reside in your static directory, either symlinked or copied.

If you are symlinking admin media, then you should add
Options +FollowSymLinks in Directory element.
e.g.

<Directory "/home/user1/website1/static">
        Order allow,deny
        Options Indexes +FollowSymLinks
        Allow from all
        IndexOptions FancyIndexing
</Directory>
πŸ‘€Rohan

Leave a comment