View Code? Open in Web Editor
NEW
Just simple framework for development Telegram bots and django Admin. Based on Django, Iogram, Docker
Dockerfile 0.67%
Makefile 2.38%
Python 96.96%
pyfast's Introduction
- Custom and configurable
app
template
- Fully typed
Django
- Async ORM (
Django 4.1+
)
- aiogram3 as Telegram Bot API
- pre-commit hooks for code formatting and linting
-
git clone https://github.com/MaximZayats/aiogram-django-template
-
pip install -r requirements.txt
pip install -r requirements-dev.txt
-
Change the configuration:
- Copy
.env.dist
- Rename it to
.env
- Insert your values
-
make makemigrations
or python manage.py makemigrations
make migrate
or python manage.py migrate
-
make run-bot
or python -m app.delivery.bot
-
- Collect static:
python manage.py collectstatic
- Run server (local):
make run-local-server
or python -m uvicorn app.delivery.web.asgi:application
- Run server (prod):
make run-prod-server
-
make -j3 run-bot run-local-server
-
python manage.py startapp APP_NAME
- Apps are created using a template:
app/config/__app_template__
- You can use your template:
python manage.py startapp APP_NAME --template TEMPLATE_PATH
- Or without template:
python manage.py startapp APP_NAME --no-template
-
-
- Run bot
- Type
/apps
:
- You should get a list of all your apps
- Type
/APP_NAME
:
- You should get a message from your app
pyfast's People
Contributors
Watchers