【文件属性】:
文件名称:摩尔后端
文件大小:31KB
文件格式:ZIP
更新时间:2021-02-25 04:58:18
Python
增强桌游
后端设定
对于python / virtualenv设置,请参阅。 我们至少需要python 3.6。
要安装Django和socketio,请激活您的virtualenv并执行pip install -r requirements.txt位于augmented-boardgame/mole_backend 。
数据库设置
下载并安装PostgreSQL: :
停用Stackbuilder
设置密码
端口:5432(默认)
安装“ psycopg2”软件包,以便Django可以使用PostgreSQL数据库: pip install psycopg2
python manage.py migrate
python manage.py createsuperuser
开始后端
python3 manage.py runserver
设置Heroku
安装Herok
【文件预览】:
TheMole-Backend-master
----mole_backend()
--------settings.py(3KB)
--------urls.py(417B)
--------__init__.py(0B)
--------wsgi.py(530B)
----runtime.txt(13B)
----manage.py(668B)
----run.sh(70B)
----requirements.txt(83B)
----debug.log(124B)
----mole()
--------pantomime.py(3KB)
--------tests.py(594B)
--------db_init.py(10KB)
--------migrations()
--------admin.py(265B)
--------__init__.py(0B)
--------clues.py(2KB)
--------game_manager.py(8KB)
--------models.py(2KB)
--------game_character.py(1KB)
--------game.py(48KB)
--------views.py(5KB)
--------templates()
--------static()
----Procfile(96B)
----README.md(2KB)
----Procfile.windows(45B)
----app.json(609B)
----.gitignore(67B)