Skip to content

Commit 014f4e2

Browse files
committed
Files added
0 parents  commit 014f4e2

File tree

81 files changed

+2274
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+2274
-0
lines changed

blind_coding/blind_coding/__init__.py

Whitespace-only changes.
155 Bytes
Binary file not shown.
182 Bytes
Binary file not shown.
2.94 KB
Binary file not shown.
2.77 KB
Binary file not shown.
1.27 KB
Binary file not shown.
1.24 KB
Binary file not shown.
586 Bytes
Binary file not shown.
595 Bytes
Binary file not shown.
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
"""
2+
Django settings for blind_coding project.
3+
4+
Generated by 'django-admin startproject' using Django 2.1.7.
5+
6+
For more information on this file, see
7+
https://docs.djangoproject.com/en/2.1/topics/settings/
8+
9+
For the full list of settings and their values, see
10+
https://docs.djangoproject.com/en/2.1/ref/settings/
11+
"""
12+
13+
import os
14+
15+
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
16+
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
17+
18+
19+
# Quick-start development settings - unsuitable for production
20+
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
21+
22+
# SECURITY WARNING: keep the secret key used in production secret!
23+
SECRET_KEY = 'q5*3y+mhfkjao*(*m=s!7y3#7=q%k6p^%z-f(4s^n56$8*3f0u'
24+
25+
# SECURITY WARNING: don't run with debug turned on in production!
26+
DEBUG = True
27+
28+
ALLOWED_HOSTS = ['*']
29+
LOGIN_REDIRECT_URL = '/main'
30+
# Application definition
31+
32+
INSTALLED_APPS = [
33+
'django.contrib.admin',
34+
'django.contrib.auth',
35+
'django.contrib.sites',
36+
'allauth',
37+
'allauth.account',
38+
'allauth.socialaccount',
39+
'django.contrib.contenttypes',
40+
'django.contrib.sessions',
41+
'django.contrib.messages',
42+
'django.contrib.staticfiles',
43+
'allauth.socialaccount.providers.google',
44+
'main_app.apps.MainAppConfig',
45+
46+
]
47+
48+
MIDDLEWARE = [
49+
'django.middleware.security.SecurityMiddleware',
50+
'django.contrib.sessions.middleware.SessionMiddleware',
51+
'django.middleware.common.CommonMiddleware',
52+
'django.middleware.csrf.CsrfViewMiddleware',
53+
'django.contrib.auth.middleware.AuthenticationMiddleware',
54+
'django.contrib.messages.middleware.MessageMiddleware',
55+
'django.middleware.clickjacking.XFrameOptionsMiddleware',
56+
]
57+
58+
ROOT_URLCONF = 'blind_coding.urls'
59+
60+
TEMPLATES = [
61+
{
62+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
63+
'DIRS': [],
64+
'APP_DIRS': True,
65+
'OPTIONS': {
66+
'context_processors': [
67+
'django.template.context_processors.debug',
68+
'django.template.context_processors.request',
69+
'django.contrib.auth.context_processors.auth',
70+
'django.contrib.messages.context_processors.messages',
71+
],
72+
},
73+
},
74+
]
75+
76+
WSGI_APPLICATION = 'blind_coding.wsgi.application'
77+
78+
79+
# Database
80+
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases
81+
82+
DATABASES = {
83+
'default': {
84+
'ENGINE': 'django.db.backends.sqlite3',
85+
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
86+
}
87+
}
88+
89+
90+
# Password validation
91+
# https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators
92+
93+
AUTH_PASSWORD_VALIDATORS = [
94+
{
95+
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
96+
},
97+
{
98+
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
99+
},
100+
{
101+
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
102+
},
103+
{
104+
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
105+
},
106+
]
107+
108+
109+
# Internationalization
110+
# https://docs.djangoproject.com/en/2.1/topics/i18n/
111+
112+
LANGUAGE_CODE = 'en-us'
113+
114+
TIME_ZONE = 'UTC'
115+
116+
USE_I18N = True
117+
118+
USE_L10N = True
119+
120+
USE_TZ = True
121+
122+
SITE_ID = 1
123+
# Static files (CSS, JavaScript, Images)
124+
# https://docs.djangoproject.com/en/2.1/howto/static-files/
125+
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
126+
STATIC_URL = '/static/'
127+
REPOSITORY_ROOT = os.path.dirname(BASE_DIR)
128+
STATICFILES_DIRS = (
129+
os.path.join(BASE_DIR, 'static'),
130+
131+
)
132+
AUTHENTICATION_BACKENDS = (
133+
'django.contrib.auth.backends.ModelBackend',
134+
'allauth.account.auth_backends.AuthenticationBackend',
135+
)
136+
STATIC_ROOT = os.path.join(REPOSITORY_ROOT, 'static/')
137+
138+
MEDIA_URL = '/media/'
139+
MEDIA_ROOT = os.path.join(REPOSITORY_ROOT, 'media/')

0 commit comments

Comments
 (0)