This project automates the process of Dvmn project teams creation.
You can install and run it on your local machine or use preconfigured Heroku app
- Clone project
git clone https://github.com/gennadis/dvmn_teams.git
cd dvmn_teams
- Create virtual environment
python3 -m venv venv
source venv/bin/activate
- Install requirements
pip install -r requirements.txt
-
Rename
.env.example
to.env
and fill your secrets in it.
Important! Place.env
indvmn_teams
folder. -
Migrate
python manage.py migrate
- Create Django superuser
python manage.py createsuperuser
- Create and import fake fixtures if needed
50 students and 2 PM will be generated and added to a database.
python manage.py makefakes
python manage.py loaddata students.json pms.json timeslots.json
- Make empty teams for PMs and students
Generated teams will contain:
- PM
- Timeslot
- Group level
- No students
python manage.py maketeams
- Run gunicorn web server
gunicorn dvmn_teams.wsgi
- Run telegram bot
python manage.py telebot
-
Open admin panel
Open app in browser http://127.0.0.1:8000/admin/ -
Add yourself as a Student to test the bot
Make sure to enter your real Telegram@username
, otherwise bot won't recognize you as a student. -
Start using bot by typing
/start
command