git clone https://github.com/MaximZayats/aiogram-django-template
pip install -r requirements.txt
- Go to the
application/config/
- Rename
.env.dist
to.env
- Insert your values
- Go to the
application/
- Run
python manage.py makemigrations
- Run
python manage.py migrate
python manage.py runbot
- Collect static:
python manage.py collectstatic
- Run server:
python manage.py runserver
python manage.py runapp
orpython app.py
python manage.py startapp APP_NAME
- Apps are created using a template:
application/config/app_template
- You can use your template:
python manage.py startapp APP_NAME --template TEMPLATE_PATH
- Apps are created using a template:
- Import and Add app to
INSTALLED_APPS
inconfig/apps.py
- Register (include) app urls in
config/web/urls.py
- Run bot
- Type
/apps
:- You should get a list of all your apps
- Type
/APP_NAME
:- You should get a message from your app