Pagoda deploy django pit

1, the configuration file is not written:

= /Www/wwwroot/websit/websit/wsgi.py wsgi-file # cause Internal Server Error

2, admin lost style

#settings.py添加
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'),
)
#运行 python manage.py collectstatic

 

Guess you like

Origin www.cnblogs.com/jssoft/p/11460393.html
Recommended