DE
devvsima/django-aiogram-template
django & aiogram template
Django & Aiogram template
DjangoAiogram 3i18n- ORM:
DjangoORM - Database:
PostgreSQL \ Sqlite, Redis
๐ฅ How to Install?
1. Clone the Repository
First, clone the repository and navigate to its directory:
git clone https://github.com/devvsima/aiogram-django-template.git
cd django_and_aiogram2. Setting up a virtual environment ".venv"
Linux
Install dependencies and activate the virtual environment:
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txtWindows
Similar 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.
3. Setting environment variable
First, copy the .env.dist file and rename it to .env:
cp .env.dist .envThen edit the environment variables file:
vim .env
# or
nano .env4. Django commands
~Migrations
$ python manage.py makemigrations
$ python manage.py migrate~Create admin
$ python manage.py createsuperuser~Launch ๐
$ python manage.py runserver
# or
$ python manage.py runserver 0.0.0.0:8000