- Write down secret keys in
./settings/secrets.json
{
"DJANGO_SECRET_KEY" : "put secret key"
"FIREBASE_API_KEY" : "put firebase api key"
}
- Write down database information in
./settings/database.json
{
"MARIADB_DBNAME" : "put db name",
"MARIADB_USERNAME" : "put user name",
"MARIADB_PW" : "put password",
"MARIADB_HOST" : "put host",
"MARIADB_PORT" : "put port"
}
- Create virtual environment on
./env
ex) on Windows cmd
py -m venv env
- Get into virtual environment
ex) on Windows cmd
cd ./env/Scripts
activate
cd ../..
In virutal environment, install required packages from ./requirements.txt
ex) on Windows cmd
py -m pip install -r requirements.txt
In virutal environment, migrate django
ex) on Windows cmd
py manage.py makemigrations
py manage.py migrate
In virutal environment, run server
ex) on Windows cmd
py manage.py runserver