add: add product and category models

This commit is contained in:
behruz-dev
2025-08-28 16:43:33 +05:00
parent 53042ed25e
commit 8e4f79d856
32 changed files with 418 additions and 7 deletions

View File

@@ -4,6 +4,6 @@ REST_FRAMEWORK = {
'rest_framework.authentication.BasicAuthentication',
'rest_framework_simplejwt.authentication.JWTAuthentication',
],
# 'DEFAULT_PAGINATION_CLASS': 'core.apps.shared.paginations.custom.CustomPageNumberPagination',
# 'PAGE_SIZE': 10
'DEFAULT_PAGINATION_CLASS': 'core.apps.shared.paginations.custom.CustomPageNumberPagination',
'PAGE_SIZE': 10
}

View File

@@ -12,6 +12,7 @@ ALLOWED_HOSTS = env.list('ALLOWED_HOSTS')
INSTALLED_APPS = [
'modeltranslation',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
@@ -110,4 +111,14 @@ MEDIA_ROOT = BASE_DIR / 'resources/media'
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
from config.conf import *
AUTH_USER_MODEL = 'accounts.User'
from config.conf import *
LANGUAGES = (
('uz', 'Uzbek'),
('ru', 'Russian'),
)
MODELTRANSLATION_LANGUAGES = ('uz', 'ru')
MODELTRANSLATION_DEFAULT_LANGUAGE = 'uz'