Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rustamovakrom/flask-default-dj
https://github.com/rustamovakrom/flask-default-dj
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rustamovakrom/flask-default-dj
- Owner: RustamovAkrom
- License: mit
- Created: 2024-08-19T15:33:47.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-19T15:39:12.000Z (5 months ago)
- Last Synced: 2024-08-20T18:37:16.861Z (5 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flask-Default_DJ
*Quyidagi framework Flask modulini optimizatsiya qilish uchun ishlatilinadi django frameworkiga yaqinlashtirilgan holatda.*
### Ishni boshlash.
**Ishni boshlashdan oldin modulni ozini ornatib olamiz ornatib olamiz.**
```console
$ pip install flask_default_dj
```**Ornatib bolgandan song proektni ozini ishga tushirishimiz kerak boladi.**
```console
$ flask --app flask_default_dj startproject config
```
*Komandani ishga tushirganizdan keyin sizni direktoriyazda quyidagi papka va fayilar yaratiladi, config.py fayilida asosiy sozlamalar saqlanadi manage.py fayili orqali proektni ishga tushira olasiz.*```bash
project/
|__manage.py
|__config/
| |-- __init__.py
| |-- settings.py
| |-- urls.py
```**Proekt yaratib olganizdan song modelarar uchun migratsiya yaratib databasega migratsiyalarni yuborish kerak.**
```console
$ flask --app manage.py db init
```
```console
$ flask --app manage.py migrate -m "initial migrate"
```
```console
$ flask --app manage.py upgrade
```
**Nihoyat proektni ozini ishga tushirsangiz boladi.**
```
& python manage.py
```