add product

This commit is contained in:
javad committed 2026-10-08 16:37:45 +03:30
1 parent 423d4cf40e
commit c8d45dd07c
58 files changed
+8309 -674

No files matched your search

+1 -1
View File
@@ -102,7 +102,7 @@ ROOT_URLCONF = 'config.urls'
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework_simplejwt.authentication.JWTAuthentication',
'apps.jwt_auth.authentication.SessionJWTAuthentication',
),
}
+7
View File
@@ -0,0 +1,7 @@
"""Isolated regression settings; production data and SMS are never used."""
from .base import *
DATABASES = {'default': {'ENGINE': 'config.test_sqlite', 'NAME': ':memory:'}}
SILENCED_SYSTEM_CHECKS = ['fields.E120'] # Existing PostgreSQL unbounded varchar.
MIDDLEWARE = [item for item in MIDDLEWARE if not item.startswith('whitenoise.')]
PASSWORD_HASHERS = ['django.contrib.auth.hashers.MD5PasswordHasher']
View File
Whitespace-only changes.
+6
View File
@@ -0,0 +1,6 @@
"""Mirror PostgreSQL's existing unbounded varchar fields in SQLite tests."""
from django.db.backends.sqlite3.base import DatabaseWrapper as SQLiteDatabaseWrapper
class DatabaseWrapper(SQLiteDatabaseWrapper):
data_types = {**SQLiteDatabaseWrapper.data_types, 'CharField': 'varchar'}