add: add product and category models
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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'
|
||||
Reference in New Issue
Block a user