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

萌新折腾一晚上整明白了,跟萌新们分享一下如何安装项目 #27

Open
lihaob opened this issue Nov 4, 2019 · 1 comment

Comments

@lihaob
Copy link

lihaob commented Nov 4, 2019

No description provided.

@lihaob
Copy link
Author

lihaob commented Nov 4, 2019

1.该项目是python2的,如果安装了python3的朋友建议安装anaconda。因为同时装python2和python3感觉好多坑,而anaconda是一个管理虚拟环境的工具,管理方便,而且pip和conda不排斥
2.在conda中进入自建的虚拟环境,conda install Pymysql, Django ,另外还有两个什么模块忘了,到时候runserver的时候自己看原因,缺啥下啥
3.安装mysql,然后创建一个叫mis的database
4.进入项目的install目录cmd,mysql -uroot -proot mis < Install/mis.sql,导入数据库
5.如果mysql设置了账号和密码的话,进入项目中的mis文件夹,修改setting.py中的配置,在database那里改一下用户和密码。原来是用的root登录,如果你的mysql设置改过可能无法登录
6.然后在manage.py所在目录下cmd,py manage.py changepassword adminpy manage.py runserver
看到有人问no such file 和No module named django.core.management的,建议先看看django的文档,很可能是没在manage.py的目录下cmd,或是python版本冲突什么的

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

1 participant