Forwarded from Kompyuter Dasturlari (vaqt)
max_digits bilan decimal_places vazifasi nima? misol uchun:
max_digits = 3
decimal_places = 2
9.99 nuqtadan keyin 2 ta raqam chegarasi decimal_places orqali beriladi, umumiy raqamlar chegarasi max_digits bn beriladi
max_digits = 3
decimal_places = 2
9.99 nuqtadan keyin 2 ta raqam chegarasi decimal_places orqali beriladi, umumiy raqamlar chegarasi max_digits bn beriladi
Static fayllar configuratsiyasi settings.py da
STATIC_URL = '/static/'
MEDIA_URL = '/images/'
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static')
]
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
MEDIA_ROOT = os.path.join(BASE_DIR, 'static/images')
STATIC_URL = '/static/'
MEDIA_URL = '/images/'
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static')
]
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
MEDIA_ROOT = os.path.join(BASE_DIR, 'static/images')
Forwarded from Programming Books📔
Programming Books📔
django-rest-framework-json-api-readthedocs-io-en-stable.pdf
1 - sini shu hafta tugatishim kerak.
Forwarded from All About Django
Medium
Login and Register User — Django Rest Framework
Build a Product Review Backend with DRF — Part 8
Forwarded from All About Django
Medium
Change Password and Update Profile — Django Rest Framework
Build a Product Review Backend with DRF — Part 9