diff --git a/apps/wallet/migrations/0017_transaction_reference_alter_transaction_state_and_more.py b/apps/wallet/migrations/0017_transaction_reference_alter_transaction_state_and_more.py index 5d3abd5..946d0e0 100644 --- a/apps/wallet/migrations/0017_transaction_reference_alter_transaction_state_and_more.py +++ b/apps/wallet/migrations/0017_transaction_reference_alter_transaction_state_and_more.py @@ -25,6 +25,6 @@ class Migration(migrations.Migration): ), migrations.AddIndex( model_name='transaction', - index=django.contrib.postgres.indexes.GinIndex(fields=['details'], name='wallet_transaction_details_a7ff79aa'), + index=django.contrib.postgres.indexes.GinIndex(fields=['details'], name='wallet_transaction_de_a7ff79aa'), ), ] diff --git a/apps/wallet/models.py b/apps/wallet/models.py index 145fdab..b004945 100755 --- a/apps/wallet/models.py +++ b/apps/wallet/models.py @@ -125,7 +125,7 @@ class Transaction(BaseModel): GinIndex( fields=['details'], # hashlib.md5("wallet_transaction_details_GinIndex".encode()).hexdigest()[:8] used for hash - name='wallet_transaction_details_a7ff79aa' + name='wallet_transaction_de_a7ff79aa' ), ] diff --git a/wallet/settings.py b/wallet/settings.py index f136a49..5837519 100644 --- a/wallet/settings.py +++ b/wallet/settings.py @@ -16,7 +16,6 @@ from decouple import config # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent - # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/ @@ -38,6 +37,7 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + 'django.contrib.postgres', # pip installed apps 'drf_spectacular', @@ -70,7 +70,6 @@ MIDDLEWARE = [ 'utils.exceptions.ErrorMiddleware', ] - OAUTH2_PROVIDER_APPLICATION_MODEL = "gooyal_oauth2.Application" OAUTH2_PROVIDER_ACCESS_TOKEN_MODEL = "gooyal_oauth2.AccessToken" OAUTH2_PROVIDER_ID_TOKEN_MODEL = "gooyal_oauth2.IDToken" @@ -126,7 +125,6 @@ SPECTACULAR_SETTINGS = { # https://spec.openapis.org/oas/v3.0.3#oauth-flows-object } - ROOT_URLCONF = 'wallet.urls' TEMPLATES = [ @@ -191,7 +189,6 @@ AUTH_PASSWORD_VALIDATORS = [ }, ] - # Internationalization # https://docs.djangoproject.com/en/5.0/topics/i18n/ @@ -209,7 +206,6 @@ LOCALE_PATHS = [ BASE_DIR / 'locale', ] - # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/5.0/howto/static-files/ @@ -224,17 +220,13 @@ if DEBUG == True: BASE_DIR / 'static', ) else: - STATIC_ROOT = BASE_DIR / 'static' - - + STATIC_ROOT = BASE_DIR / 'static' # Default primary key field type # https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' - - LOGIN_URL = '/users/login/request/' LOGIN_REDIRECT_URL = '/' @@ -264,7 +256,6 @@ CACHES = { LOKI_BASE_PUBLIC_URL = config('LOKI_BASE_PUBLIC_URL', default=None, cast=str) - LOGGING = { 'version': 1, 'disable_existing_loggers': False, @@ -300,4 +291,4 @@ LOGGING = { }, } -ALLOWED_NEGATIVE_BALANCE_APPLICATIONS = config('ALLOWED_NEGATIVE_BALANCE_APPLICATIONS', cast=lambda v: [s.strip() for s in v.split(',')]) \ No newline at end of file +ALLOWED_NEGATIVE_BALANCE_APPLICATIONS = config('ALLOWED_NEGATIVE_BALANCE_APPLICATIONS', cast=lambda v: [s.strip() for s in v.split(',')])