Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taralas209/flower-shop-telegram-bot-dvmn
https://github.com/taralas209/flower-shop-telegram-bot-dvmn
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/taralas209/flower-shop-telegram-bot-dvmn
- Owner: Taralas209
- License: mit
- Created: 2023-08-22T13:07:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-30T13:26:33.000Z (over 1 year ago)
- Last Synced: 2023-08-30T22:18:08.017Z (over 1 year ago)
- Language: Python
- Size: 2.24 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bot-FloweShop
## Setup
### 1. Install requirements
```bash
pip install -r requirements.txt
```
### 2. Run the migration to configure the SQLite database:```bash
python3 manage.py migrate
```### 3. Load Flowers-Data into your database
```bash
python manage.py loaddata flowers.json
```### 4. Create a superuser to gain access to the admin panel:
```bash
python3 manage.py createsuperuser
```### 5. Starts the admin panel:
```bash
python3 manage.py runserver
```
The address of the admin panel: http://127.0.0.1:8000/admin/### 6. Create .env and add token:
TELEGRAM_TOKEN=...### 7. Start Bot
```bash
python3 bot.py
```