this is the project for api.peterlits.com
-
download
python3
,pip3
andvirtualenv
. -
Firstly, you need to setup the virtualenv at
./venv
. (Or other paths, but then you need to change theVENV
). We setVENV
to be./venv
.
$ virtualenv venv
-
then you need to run
source ${VENV}/bin/activate
to set the environment vairable, and then runmake install
to install all python-lib/module for this project. -
write
./backend/backend/private.py
like:
SECRET_KEY = '<the secret key of yourself>'
DEBUG = False # because the private.py is not hold by git, so you can set it as
# True if you like and needn't wrroy it will break the file online.