我尝试在网络服务器上安装djangocms。问题是我的gunicorn服务在部署cms时出错了。
~/django-cms
| --- cms-env/
| --- cms
| --- site/
| ---__init__.py
| ---__pycache__
| ---settings.py
| ---static
| ---templates
| ---urls.py
| ---wsgi.py
| --- manage.py
| --- media/
| --- project.db
| --- requirements.txt
| --- static/
整个结构如下所示:
uberspace-setup-service gunicorn gunicorn --error-logfile - --reload --chdir /home/hg3n/django-cms/cms --bind 127.0.0.1:65164 cms.wsgi:application
我使用以下命令启动gunicorn服务
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteBase /
RewriteRule ^(.*)$ http://127.0.0.1:65164/\$1 [P]
RequestHeader set X-Forwarded-Proto https env=HTTPS
问题是什么,我熟悉python,但对django web开发很新。
htaccess的:
{{1}}