movieweb_python icon indicating copy to clipboard operation
movieweb_python copied to clipboard

安装方法

Open yangchuansheng opened this issue 6 years ago • 10 comments

请问这个是怎么安装使用的,有没有文档,视频使用的是外链吗

yangchuansheng avatar Dec 18 '17 07:12 yangchuansheng

@yangchuansheng 我已经更新了 Readme.md,项目相关依赖都写上了, 视频源是使用的外链, 若还遇问题,随时提。

hanyucd avatar Dec 18 '17 09:12 hanyucd

为什么不用 requirements.txt 来维护依赖?

pkuphy avatar Dec 18 '17 13:12 pkuphy

@pkuphy 原来你说的这个就类似于 Node 的 package.json 呀,我还不知道 Python 原来也有这样文件。

hanyucd avatar Dec 18 '17 14:12 hanyucd

image 我在Linux上不可以正常运行啊,这个错误我搜了一下,按照给的答案改,结果显示报错。请问您是怎么运行的。

lurenZJF avatar Dec 21 '17 03:12 lurenZJF

@lurenjiayibingdingwuxurengui 你尝试下重新安装项目依赖库,相关依赖写在 Readme.md 中。 我是用不规范的方式跑在 Linux 上;是用 linux 的 nohup 命令(安装项目依赖后):

nohup python manage.py runserver ip:端口 &

你是想用什么方式跑? 跑成功了,吱一声。

hanyucd avatar Dec 21 '17 05:12 hanyucd

image 我用浏览器访问http://127.0.0.1:10001/ 这个链接依然报刚才的错误,而且readme里面的依赖我都安装了。

lurenZJF avatar Dec 21 '17 06:12 lurenZJF

@lurenjiayibingdingwuxurengui 你在本地机上能否跑成功?

  1. 试试加上 ip 跑下:

python manage.py runserver ip:端口

  1. 或者试试在 movieweb_python/movieweb/movieweb/settings.py 中添加域名(再运行):

image

跑成功了,吱一声。

hanyucd avatar Dec 21 '17 07:12 hanyucd

其实我一直都是在本地的系统上运行的,刚才按照你的方法改了还是显示不行。错误依旧如下: `ImportError at /

No module named urls

Request Method: GET Request URL: http://192.168.248.131:7788/ Django Version: 1.8.13 Exception Type: ImportError Exception Value:

No module named urls

Exception Location: /usr/local/lib/python2.7/dist-packages/rest_framework/compat.py in , line 26 Python Executable: /usr/bin/python`

lurenZJF avatar Dec 21 '17 08:12 lurenZJF

我也是遇到了这个问题

Request Method: GET
Request URL: http://127.0.0.1:8080/
Django Version: 1.8.13
Exception Type: AttributeError
Exception Value: type object 'Tags' has no attribute 'urls'
Exception Location: /home/cai/.local/lib/python2.7/site-packages/django/core/checks/urls.py in , line 11
Python Executable: /usr/bin/python
Python Version: 2.7.13

jiashengcai avatar May 25 '18 09:05 jiashengcai

@cacacai 下载这个项目,跑看看,这个应该可以跑出来。 https://github.com/hanyucd/service_linux/tree/master/movieweb

hanyucd avatar May 25 '18 10:05 hanyucd