Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装方法 #3

Open
yangchuansheng opened this issue Dec 18, 2017 · 10 comments
Open

安装方法 #3

yangchuansheng opened this issue Dec 18, 2017 · 10 comments

Comments

@yangchuansheng
Copy link

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

@hanyucd
Copy link
Owner

hanyucd commented Dec 18, 2017

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

@pkuphy
Copy link

pkuphy commented Dec 18, 2017

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

@hanyucd
Copy link
Owner

hanyucd commented Dec 18, 2017

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

@lurenZJF
Copy link

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

@hanyucd
Copy link
Owner

hanyucd commented Dec 21, 2017

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

nohup python manage.py runserver ip:端口 &

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

@lurenZJF
Copy link

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

@hanyucd
Copy link
Owner

hanyucd commented Dec 21, 2017

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

  1. 试试加上 ip 跑下:

python manage.py runserver ip:端口

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

image

跑成功了,吱一声。

@lurenZJF
Copy link

其实我一直都是在本地的系统上运行的,刚才按照你的方法改了还是显示不行。错误依旧如下:
`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`

@jiashengcai
Copy link

jiashengcai commented May 25, 2018

我也是遇到了这个问题

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

@hanyucd
Copy link
Owner

hanyucd commented May 25, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@pkuphy @hanyucd @yangchuansheng @jiashengcai @lurenZJF and others