add product
This commit is contained in:
1 parent
423d4cf40e
commit
c8d45dd07c
58 files changed
+8309
-674
No files matched your search
@@ -102,7 +102,7 @@ ROOT_URLCONF = 'config.urls'
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': (
|
||||
'rest_framework_simplejwt.authentication.JWTAuthentication',
|
||||
'apps.jwt_auth.authentication.SessionJWTAuthentication',
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
@@ -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']
|
||||
Whitespace-only changes.
@@ -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'}
|
||||
Reference in new issue
Block a user