Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯9π1
Django REST framework'dan foydalanganda bitta
#django #drf #serializer
@murodalidevβ
view'da turli action'larda turlicha serializer'lardan foydalanish#django #drf #serializer
@murodalidev
Please open Telegram to view this post
VIEW IN TELEGRAM
π9
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
π8π₯2
python manage.py inspectdb
Bazi kutbxonalarni o'rnatganimzida migrate qilishimizga to'gri keladi chunki u kutbxonalar tayyor Model'lari bilan birga keladi. Yuqoridagi komanda orqali biz o'sha Model'larni (barcha modellarni) ko'rish imkoniyatiga ega bolamiz.#python #django
@murodalidev
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯2π1π€―1
This media is not supported in your browser
VIEW IN TELEGRAM
Django admin'ni atigi bir qator kod bilan shunday ishlatishni xohlaysizmi, unda komentaridaya kodini ko'rib olishingiz mumkin,
@murodalidevβ
"classes": ("collapse", )
#django #admin@murodalidev
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯3π1
Easy integration celery with django
β’ Django Celery
β’ Django Celery Tasks
β’ Django Celery Send Email Message With Backgroud Tasks
β’ Django Celery Beat
β’ Django Celery Results
β’ Django Celery Periodic Tasks
β’ Django Celery Schedule Tasks
β’ Redis
β’ Integrations SMTP For Sending Mail
#django #celery #redis #tasks
@murodalidev
https://github.com/murodalidev/django_with_celery
β’ Django Celery
β’ Django Celery Tasks
β’ Django Celery Send Email Message With Backgroud Tasks
β’ Django Celery Beat
β’ Django Celery Results
β’ Django Celery Periodic Tasks
β’ Django Celery Schedule Tasks
β’ Redis
β’ Integrations SMTP For Sending Mail
#django #celery #redis #tasks
@murodalidev
https://github.com/murodalidev/django_with_celery
GitHub
GitHub - murodalidev/django_with_celery: Background tasks with django
Background tasks with django. Contribute to murodalidev/django_with_celery development by creating an account on GitHub.
π8β‘2π₯1
murodalidev />
venv VS virtualenv Python3 versiyasida venv modulini qo'shdi. virtualenv paketi Python virtual muhitini yaratishning asl usuli edi. Batafsil ma'lmotlarni kiritilgan linklar orqali oqib olsangiz bo'ladi, buyerda esa sizga virtualenv ning venv dan yaxshiroqβ¦
This media is not supported in your browser
VIEW IN TELEGRAM
π3β‘2π1
API bilan ishlaganimizda biz yaratgan
Quyidani ketma-ketliklar orqali siz
β
API'larga ikkinchi tomondan(mobile app yoki web saytning front end qismi nazarda tutilyapti yoki boshqa bir interface) bizning serverimizga request jo'nata olishi uchun biz qaysi host'dan kelgan request'larga backend'imiz javob berishini kontrol qilsak boladi, yani bu degani siz API chiqarib qoydiz degani hamma unga request jo'nata oladi degani emas, sizni back-end serveringizga request jo'natuvchiliar ro'yhatini ham qoshib qoyishingiz kerak boladi, bu albatta xavfsizlik tomondan oylangan.Quyidani ketma-ketliklar orqali siz
back-end'ingizga request jo'natishga ruhsat bersasiz:pip install django-cors-headers
setting.pyINSTALLED_APPS = [
...
'corsheaders',
...
]
MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
...
]
CORS_ALLOWED_ORIGINS = [
"https://127.0.0.1:3000",
"https://localhost:3000",
]
CORS_ALLOW_METHODS = [
'*'
]
CORS_ALLOW_HEADERS = [
'*'
]
CORS_ALLOW_CREDENTIALS = True
@murodalidev Please open Telegram to view this post
VIEW IN TELEGRAM
π₯7β‘2π1π1
π Clean code in python
Keling clean code yozamiz, bu uchun sizga qaysi kitob kanalda tekinga ulashay ))
#python #book
@murodalidevβ
Keling clean code yozamiz, bu uchun sizga qaysi kitob kanalda tekinga ulashay ))
#python #book
@murodalidev
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
β€4π€‘4π₯2π1
Clean_Code_in_Python_Develop_maintainable_and_efficient_code,_2nd.pdf
3 MB
π Clean Code in Python Develop maintainable and efficient code, 2nd Edition by Mariano Anaya
#python #book
@murodalidevβ
#python #book
@murodalidev
Please open Telegram to view this post
VIEW IN TELEGRAM
π8π³2β‘1π1
Sizningcha dasturlashdan yomon maqsadlarda foydalanish yaxshimi?
Qoshimcha fikrlaringiz boβlsa izohda qoldirishingiz mumkin!
Qoshimcha fikrlaringiz boβlsa izohda qoldirishingiz mumkin!
Anonymous Poll
45%
Ha, yaxshi
55%
Yoq, yomon
π€‘6