我按照本教程将我的 django 应用程序部署到 RHEL 8 服务器: https ://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on- centos-7
内部 django 网络服务器与
python manage.py runserver 0:8000
无论如何,枪手没有。500 调试错误中的内部服务器错误,否则会出现以下问题:
TweepError at /
Failed to send request: Only unicode objects are escapable. Got None of type <class 'NoneType'>.
Request Method: GET
Request URL: http://ip/
Django Version: 2.2.5
Exception Type: TweepError
Exception Value:
Failed to send request: Only unicode objects are escapable. Got None of type <class 'NoneType'>.
Exception Location: /home/ec2-user/django_sentiment/env/lib/python3.7/site-packages/oauthlib/oauth1/rfc5849/utils.py in escape, line 57
Python Executable: /home/ec2-user/django_sentiment/env/bin/python
Python Version: 3.7.4
Python Path:
['/home/ec2-user/django_sentiment',
'/home/ec2-user/django_sentiment/env/bin',
'/home/ec2-user/.pyenv/versions/3.7.4/lib/python37.zip',
'/home/ec2-user/.pyenv/versions/3.7.4/lib/python3.7',
'/home/ec2-user/.pyenv/versions/3.7.4/lib/python3.7/lib-dynload',
'/home/ec2-user/django_sentiment/env/lib/python3.7/site-packages']
Server time: Thu, 19 Sep 2019 23:30:33 +0000</i>
TRACEBACK
Environment:
Request Method: GET
Request URL: http://ip/
Django Version: 2.2.5
Python Version: 3.7.4
Installed Applications:
['twitter.apps.TwitterConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
慕的地8271018
慕虎7371278
慕尼黑的夜晚无繁华
相关分类