Skip to content

cat-of-time/timecat-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timecat-backend

timecat-backend

本地部署

安装virtualenv

clone仓库,用virtualenv创建虚拟环境venv35,并激活venv35

virtualenv venv35 --python=python3.5
source venv35/bin/activate

安装依赖

pip install -r requirements.txt

初始化数据库,并创建超级用户

python manage.py makemigrations tasks
python manage.py migrate
python manage.py createsuperuser

启动服务器

python manage.py runserver

用浏览器打开http://localhost:8000/

安装提示

在Windows下安装依赖时可能会报错(出错的包是markupsafe), 如果报错,先用

pip uninstall makrupsafe

卸载markupsafe。 然后参考makrupsafe-issues-67 @alorence

Releases

No releases published

Packages

No packages published

Languages