Capwell / ProninTeamBack

Бэкенд сайта ProninTeam

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ProninTeamBackend. Old version

Python Django PostgreSQL Nginx gunicorn docker

This is the backend code for ProninTeam project. For more information about the project, please see site.

Repositories

Local deployment scenario

Clone repository:

git@github.com:Capwell/ProninTeamBack.git

Create .env file at .environment/ directory:

SECRET_KEY=<secret_key>
DB_ENGINE=<django.db.backends.postgresql>
DB_NAME=<db_name>
POSTGRES_USER=<pg_username>
POSTGRES_PASSWORD=<pg_password>
DB_HOST=<localhost>
DB_PORT=<5432>
EMAIL_LOGIN=<email_login>
EMAIL_PASSWORD=<email_password>
TELEGRAM_TOKEN=<tg_token>
TELEGRAM_CHAT_ID=<tg_chatid>
EMAIL_TO=<email_to>
EMAIL_FROM=<email_from>
CAPTCHA_SECRET_KEY=<capthca_secret_key>

Run docker-compose:

docker-compose up -d

Migrate schemes, collect static and create superuser:

sudo docker-compose exec -it backend bash

python manage.py collectstatic --noinput
    
python manage.py migrate --noinput

python manage.py createsuperuser

About

Бэкенд сайта ProninTeam

License:Apache License 2.0


Languages

Language:Python 99.1%Language:Dockerfile 0.9%