https://github.com/devvsima/aiogram-djnago-template
aiogram django template | aiogram3, aiogram2
https://github.com/devvsima/aiogram-djnago-template
aiogram aiogram-bot aiogram-bot-template aiogram-django aiogram-template aiogram2 aiogram3 djnago i18n postresql redis sqlite tele telegram-bot
Last synced: about 1 month ago
JSON representation
aiogram django template | aiogram3, aiogram2
- Host: GitHub
- URL: https://github.com/devvsima/aiogram-djnago-template
- Owner: devvsima
- License: mit
- Created: 2025-02-08T17:44:51.000Z (3 months ago)
- Default Branch: aiogram3
- Last Pushed: 2025-02-08T18:07:07.000Z (3 months ago)
- Last Synced: 2025-02-16T02:29:02.074Z (3 months ago)
- Topics: aiogram, aiogram-bot, aiogram-bot-template, aiogram-django, aiogram-template, aiogram2, aiogram3, djnago, i18n, postresql, redis, sqlite, tele, telegram-bot
- Language: Python
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Django & Aiogram template
- `Django`
- `Aiogram 3`
- `i18n`
- ORM: `DjangoORM`
- Database: `PostgreSQL \ Sqlite, Redis`## 📥 How to Install?
### 1. Clone the Repository
First, clone the repository and navigate to its directory:```bash
git clone https://github.com/devvsima/aiogram-django-template.git
cd django_and_aiogram
```### 2. Setting up a virtual environment ".venv"
#### Linux
Install dependencies and activate the virtual environment:```bash
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
```#### Windows
Similar steps for Windows:```bash
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
```> 💡 Note: The name `.venv` can be changed to anything else you wish.
### 3. Setting environment variable
First, copy the `.env.dist` file and rename it to `.env`:
```bash
cp .env.dist .env
```Then edit the environment variables file:
```bash
vim .env
# or
nano .env
```### 4. Django commands
#### ~Migrations
```bash
$ python manage.py makemigrations
$ python manage.py migrate
```#### ~Create admin
```bash
$ python manage.py createsuperuser
```#### ~Launch 🚀
```bash
$ python manage.py runserver
# or
$ python manage.py runserver 0.0.0.0:8000
```