Python advance 2-Modul topshirig`i
Ilova yaratish qadamlar ketma-ketligi orqali yaratilsin.
1.
Pipenv install Django
2. Pipenv install pillow
3.
Pipenv shell
4. Django-admin startproject
5. Python manage.py startapp
6. Loyiha nomi/settings.py faylga applicationni ro`yxatga olish
7. Python manage.py migrate
8. Application/models.py faylga obekt(class) hosil qilamiz
9. Loyihanomi/settings.py faylga medialar bilan ishlashni aytamiz
10. Media/imagesga hosil qilamiz
11. Loyihanomi/admin.py ga obektni registratsiya qilamiz
12. Python manage.py makemigrations
13. Python manage.py migrate
14. Python manage.py createsuperuser
15. Python manage.py runserver
16.
http://127.0.0.1:8000/admin
17. Post qo`shamiz
18. Loyihanomi/urls.py ga yozamiz
19. Application/urls.py ni hosil qilamiz
20. Application/views.py ni to`ldiramiz
21. Mkdir templates (templates folder hosil qilamiz)
22. Templates/home.html hosil qilamiz
23. Loyihanomi/settings.py ga templates borligini aytamiz
24. Natijani ko`ramiz.
Topshirig` quyidagi ketma-ketlikda bajarilsada
Fasllar menyusi
1. Bahor
2. Yoz
3. Kuz
4. Qish