|
@@ -10,15 +10,11 @@ For the full list of settings and their values, see
|
|
https://docs.djangoproject.com/en/3.2/ref/settings/
|
|
https://docs.djangoproject.com/en/3.2/ref/settings/
|
|
"""
|
|
"""
|
|
import os
|
|
import os
|
|
-from backend.UnTube.secrets import SECRETS
|
|
|
|
from backend.UnTube.settings import BASE_DIR
|
|
from backend.UnTube.settings import BASE_DIR
|
|
|
|
|
|
DEBUG = False
|
|
DEBUG = False
|
|
SECRET_KEY = NotImplemented
|
|
SECRET_KEY = NotImplemented
|
|
|
|
|
|
-YOUTUBE_V3_API_KEY = SECRETS['YOUTUBE_V3_API_KEY']
|
|
|
|
-
|
|
|
|
-
|
|
|
|
ALLOWED_HOSTS = ['127.0.0.1']
|
|
ALLOWED_HOSTS = ['127.0.0.1']
|
|
|
|
|
|
# Application definition
|
|
# Application definition
|
|
@@ -46,8 +42,6 @@ INSTALLED_APPS = [
|
|
'backend.search',
|
|
'backend.search',
|
|
]
|
|
]
|
|
|
|
|
|
-CRISPY_TEMPLATE_PACK = 'bootstrap4'
|
|
|
|
-
|
|
|
|
MIDDLEWARE = [
|
|
MIDDLEWARE = [
|
|
'django.middleware.security.SecurityMiddleware',
|
|
'django.middleware.security.SecurityMiddleware',
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
@@ -82,22 +76,6 @@ AUTHENTICATION_BACKENDS = [
|
|
'allauth.account.auth_backends.AuthenticationBackend'
|
|
'allauth.account.auth_backends.AuthenticationBackend'
|
|
]
|
|
]
|
|
|
|
|
|
-SOCIALACCOUNT_PROVIDERS = {
|
|
|
|
- 'google': {
|
|
|
|
- 'SCOPE': [
|
|
|
|
- 'profile',
|
|
|
|
- 'email',
|
|
|
|
- 'https://www.googleapis.com/auth/youtube',
|
|
|
|
- ],
|
|
|
|
- 'AUTH_PARAMS': {
|
|
|
|
- # To refresh authentication in the background, set AUTH_PARAMS['access_type'] to offline.
|
|
|
|
- 'access_type': 'offline',
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-SITE_ID = 10
|
|
|
|
-
|
|
|
|
LOGIN_URL = '/'
|
|
LOGIN_URL = '/'
|
|
|
|
|
|
LOGIN_REDIRECT_URL = '/home/'
|
|
LOGIN_REDIRECT_URL = '/home/'
|
|
@@ -114,12 +92,6 @@ DATABASES = {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-# DATABASES = {}
|
|
|
|
-# DATABASES['default'] = dj_database_url.config(conn_max_age=600)
|
|
|
|
-
|
|
|
|
-# DATABASE_URL = os.environ['DATABASE_URL']
|
|
|
|
-# conn = psycopg2.connect(DATABASE_URL, sslmode='require')
|
|
|
|
-
|
|
|
|
# Password validation
|
|
# Password validation
|
|
# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators
|
|
# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators
|
|
AUTH_PASSWORD_VALIDATORS = [
|
|
AUTH_PASSWORD_VALIDATORS = [
|