Apache not serving django admin static files

前端 未结 4 1173
情歌与酒
情歌与酒 2020-12-02 09:18

Let me thanks you guys at the Stack Overflow community for helping me with various Django and Apache (with mod_wsgi) errors. I\'ve asked about 5 related questions so far and

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 09:36

    The following did the trick for me. (Django 1.11 with Python 3.6)

    Alias /static/admin /usr/local/lib/python3.6/site-packages/django/contrib/admin/static/admin
    
        Require all granted
        Order allow,deny
        Allow from all
       # AllowOverride All
    
    
    Alias /static /var/www/app/static
    

    Hope it helps.

提交回复
热议问题