• django apache httpd windows


    python manage.py migrate
    vi settings.py
    STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
    python manage.py collectstatic
    
    
    ServerRoot "C:/xampp/apache"
    
    Listen 10.65.169.155:8080
    
    LoadModule wsgi_module modules/mod_wsgi.so
    
    WSGIScriptAlias / D:/PycharmProjects/file_upload/file_upload/wsgi.py
    WSGIPythonHome D:/Python
    WSGIPythonPath D:/PycharmProjects/file_upload
    
    <Directory D:/PycharmProjects/file_upload/file_upload>
    <Files wsgi.py>
    Require all granted
    </Files>
    </Directory>
    
    Alias /static/ D:/PycharmProjects/file_upload/static/
    <Directory D:/PycharmProjects/file_upload/static>
     Require all granted
    </Directory>
    
    Alias /media/ D:/PycharmProjects/file_upload/media/
    <Directory D:/PycharmProjects/file_upload/media>
    Require all granted
    </Directory>
    
    MaxRequestsPerChild 1
    
  • 相关阅读:
    花匠
    积木
    Hello world
    老鼠走迷宫全部路径
    今天下午选做题目
    整数高精度运算——加法
    博客启航
    解线性不定方程
    关于完全背包问题
    关于最小代价子母树
  • 原文地址:https://www.cnblogs.com/otfsenter/p/7773825.html
Copyright © 2020-2023  润新知