|
43 | 43 | STATIC_ROOT = os.path.join(SITE_ROOT, 'media/static/')
|
44 | 44 | STATIC_URL = '/static/'
|
45 | 45 | STATICFILES_DIRS = [os.path.join(SITE_ROOT, 'readthedocs', 'static')]
|
46 |
| -#STATICFILES_FINDERS = () |
| 46 | +# STATICFILES_FINDERS = () |
47 | 47 |
|
48 | 48 | CACHES = {
|
49 | 49 | 'default': {
|
|
56 | 56 |
|
57 | 57 | LOGIN_REDIRECT_URL = '/dashboard/'
|
58 | 58 | FORCE_WWW = False
|
59 |
| -#APPEND_SLASH = False |
| 59 | +# APPEND_SLASH = False |
60 | 60 |
|
61 | 61 | # Docker
|
62 | 62 | DOCKER_ENABLE = False
|
|
87 | 87 | USE_I18N = True
|
88 | 88 | USE_L10N = True
|
89 | 89 | SITE_ID = 1
|
90 |
| -SECRET_KEY = 'replace-this-please' |
| 90 | + |
| 91 | +SECRET_KEY = 'replace-this-please' # noqa: ignore dodgy check |
91 | 92 |
|
92 | 93 | ACCOUNT_ACTIVATION_DAYS = 7
|
93 | 94 |
|
|
113 | 114 | 'readthedocs.core.middleware.SubdomainMiddleware',
|
114 | 115 | 'readthedocs.core.middleware.SingleVersionMiddleware',
|
115 | 116 | 'corsheaders.middleware.CorsMiddleware',
|
116 |
| - #'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', |
| 117 | + # 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', |
117 | 118 | )
|
118 | 119 |
|
119 | 120 | AUTHENTICATION_BACKENDS = (
|
|
130 | 131 | ACCOUNT_AUTHENTICATION_METHOD = "username_email"
|
131 | 132 | SOCIALACCOUNT_EMAIL_VERIFICATION = "none"
|
132 | 133 |
|
133 |
| -CORS_ORIGIN_REGEX_WHITELIST = ('^http://(.+)\.readthedocs\.org$', '^https://(.+)\.readthedocs\.org$') |
| 134 | +CORS_ORIGIN_REGEX_WHITELIST = ( |
| 135 | + '^http://(.+)\.readthedocs\.org$', |
| 136 | + '^https://(.+)\.readthedocs\.org$') |
134 | 137 | # So people can post to their accounts
|
135 | 138 | CORS_ALLOW_CREDENTIALS = True
|
136 | 139 | CORS_ALLOW_HEADERS = (
|
|
212 | 215 | 'allauth.socialaccount',
|
213 | 216 | 'allauth.socialaccount.providers.github',
|
214 | 217 | 'allauth.socialaccount.providers.bitbucket',
|
215 |
| - #'allauth.socialaccount.providers.twitter', |
| 218 | + # 'allauth.socialaccount.providers.twitter', |
216 | 219 | ]
|
217 | 220 |
|
218 | 221 | REST_FRAMEWORK = {
|
|
429 | 432 | 'propagate': False,
|
430 | 433 | },
|
431 | 434 | # Uncomment if you want to see Elasticsearch queries in the console.
|
432 |
| - #'elasticsearch.trace': { |
433 |
| - # 'level': 'DEBUG', |
434 |
| - # 'handlers': ['console'], |
435 |
| - #}, |
| 435 | + # 'elasticsearch.trace': { |
| 436 | + # 'level': 'DEBUG', |
| 437 | + # 'handlers': ['console'], |
| 438 | + # }, |
436 | 439 |
|
437 | 440 | # Default handler for everything that we're doing. Hopefully this
|
438 | 441 | # doesn't double-print the Django things as well. Not 100% sure how
|
|
0 commit comments