DjangoAiogram 3i18n- ORM:
DjangoORM - Database:
PostgreSQL \ Sqlite, Redis
First, clone the repository and navigate to its directory:
git clone https://github.com/devvsima/aiogram-django-template.git
cd django_and_aiogramInstall dependencies and activate the virtual environment:
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txtSimilar steps for Windows:
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt💡 Note: The name
.venvcan be changed to anything else you wish.
First, copy the .env.dist file and rename it to .env:
cp .env.dist .envThen edit the environment variables file:
vim .env
# or
nano .env$ python manage.py makemigrations
$ python manage.py migrate$ python manage.py createsuperuser$ python manage.py runserver
# or
$ python manage.py runserver 0.0.0.0:8000