Skip to content

Capwell/ProninTeamBack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

[email protected]: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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •