视频网站部署django

基于django的视频点播网站开发-step15-项目部署

https://mypython.me/2019/01/24/vod-step-15/

演示地址 https://v.mypython.me/

源码 https://github.com/geeeeeeeek/videoproject/

为啥我跟着教程部署,却一直部署不上去了? root@ubuntu:/etc/nginx/conf.d/videoproject# python3 manage.py migrate auth ===============install pymysql============== Traceback (most recent call last): File "manage.py", line 21, in <module> main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File "/usr/local/lib/python3.5/dist-packages/django/core/management/init.py", line 401, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.5/dist-packages/django/core/management/init.py", line 377, in execute django.setup() File "/usr/local/lib/python3.5/dist-packages/django/init.py", line 16, in setup from django.urls import set_script_prefix File "/usr/local/lib/python3.5/dist-packages/django/urls/init.py", line 1, in <module> from .base import ( File "/usr/local/lib/python3.5/dist-packages/django/urls/base.py", line 9, in <module> from .exceptions import NoReverseMatch, Resolver404 File "/usr/local/lib/python3.5/dist-packages/django/urls/exceptions.py", line 1, in <module> from django.http import Http404 File "/usr/local/lib/python3.5/dist-packages/django/http/init.py", line 2, in <module> from django.http.request import ( File "/usr/local/lib/python3.5/dist-packages/django/http/request.py", line 10, in <module> from django.core import signing File "/usr/local/lib/python3.5/dist-packages/django/core/signing.py", line 45, in <module> from django.utils.crypto import constant_time_compare, salted_hmac File "/usr/local/lib/python3.5/dist-packages/django/utils/crypto.py", line 6, in <module> import secrets ImportError: No module named 'secrets'

评论 0