diff --git a/r.txt b/r.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/r.txt @@ -0,0 +1 @@ + diff --git a/requirements.txt b/requirements.txt index 977a956..3715dfd 100644 Binary files a/requirements.txt and b/requirements.txt differ diff --git a/savings/settings.py b/savings/settings.py index ac0b671..5383129 100644 --- a/savings/settings.py +++ b/savings/settings.py @@ -32,9 +32,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') STATIC_URL = '/static/' -STATICFILES_DIRS = ( - os.path.join(BASE_DIR, 'savingsapp/static'), -) +STATICFILES_DIRS = (os.path.join(BASE_DIR, 'savingsapp/static'),) DATE_INPUT_FORMATS = ['%Y-%-m-%d', ] REST_FRAMEWORK = { @@ -45,6 +43,7 @@ 'rest_framework.pagination.LimitOffsetPagination', 'PAGE_SIZE': 100 } + AUTH_USER_MODEL = "savingsapp.CustomUser" MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', @@ -85,8 +84,7 @@ 'PASSWORD':env("DB_PASSWORD"), 'HOST': env("DB_HOST"), 'PORT':env("DB_PORT"), - } -} + }} AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', @@ -107,7 +105,6 @@ USE_L10N = True USE_TZ = True - MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media') CRISPY_TEMPLATE_PACK = 'bootstrap4'