django

作者: e8a37405cb53 | 来源:发表于2017-06-27 17:28 被阅读0次

    /etc/apache2/apache2.conf

    WSGIScriptAlias /django /data4/nong/practice/python/django_test/django_test/wsgi.py
    WSGIPythonHome /data4/nong/practice/python/djangowebs/ENV
    WSGIPythonPath /data4/nong/practice/python/django_test
    
    <Directory /data4/nong/practice/python/django_test>
    <Files wsgi.py>
    Require all granted
    </Files>
    </Directory>
    
    Alias /media/ /data4/nong/practice/python/django_test/media/
    Alias /static/ /data4/nong/practice/python/django_test/static/
    
    <Directory /data4/nong/practice/python/django_test/static>
    Require all granted
    </Directory>
    
    <Directory /data4/nong/practice/python/django_test/media>
    Require all granted
    </Directory>
    
    
    WSGIScriptAlias /django /home/nong/project/python/django_test/django_test/wsgi.py
    WSGIPythonHome /home/nong/project/python/djangowebs/ENV
    WSGIPythonPath /home/nong/project/python/django_test
    
    <Directory /home/nong/project/python/django_test>
    <Files wsgi.py>
    Require all granted
    </Files>
    </Directory>
    
    Alias /media/ /home/nong/project/python/django_test/media/
    Alias /static/ /home/nong/project/python/django_test/zfea/static/
    
    <Directory  /home/nong/project/python/django_test/media>
    Require all granted
    </Directory>
    
    <Directory /home/nong/project/python/django_test/zfea/static >
    Require all granted
    </Directory>
    
    

    相关文章

      网友评论

          本文标题:django

          本文链接:https://www.haomeiwen.com/subject/wcbecxtx.html