Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
CTB
ctb-platform-backend-antigo
Commits
b41bfb32
Commit
b41bfb32
authored
Apr 04, 2019
by
Bruno Martin
Browse files
add legacy configs; load discussion and courier django apps
parent
3e5462f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
5 deletions
+52
-5
config/settings/base.py
config/settings/base.py
+52
-5
No files found.
config/settings/base.py
View file @
b41bfb32
...
...
@@ -59,6 +59,15 @@ THIRD_PARTY_APPS = [
# legacy apps deps, refactor one day...
'localflavor'
,
'compressor'
,
'pinax.webanalytics'
,
'courier'
,
'courier.emails'
,
'courier.emails.providers.onesignal'
,
'courier.pushnotifications'
,
'courier.pushnotifications.providers.onesignal'
,
'discussion'
,
]
# Apps specific for this project go here.
...
...
@@ -72,7 +81,6 @@ LOCAL_APPS = [
'courses_reports.apps.CoursesReportsConfig'
,
'courses_legacy.apps.CoursesLegacyConfig'
,
'courses_legacy.administration'
,
'discussion'
,
# 'courses_notes.apps.CoursesNotesConfig',
]
...
...
@@ -181,6 +189,7 @@ TEMPLATES = [
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-loaders
# https://docs.djangoproject.com/en/dev/ref/templates/api/#loader-types
'loaders'
:
[
'courses_legacy.core.loaders.TimtecThemeLoader'
,
'django.template.loaders.filesystem.Loader'
,
'django.template.loaders.app_directories.Loader'
,
],
...
...
@@ -194,7 +203,8 @@ TEMPLATES = [
'django.template.context_processors.static'
,
'django.template.context_processors.tz'
,
'django.contrib.messages.context_processors.messages'
,
# Your stuff: custom template context processors go here
# legacy stuff
],
},
},
...
...
@@ -328,7 +338,6 @@ SOCIALACCOUNT_PROVIDERS = {
# Custom user app defaults
# Select the correct user model
AUTH_USER_MODEL
=
'users.User'
LOGIN_REDIRECT_URL
=
'/api/profile/close'
LOGIN_URL
=
'account_login'
# SLUGLIFIER
...
...
@@ -345,6 +354,12 @@ CORS_ORIGIN_WHITELIST = (
'example.com'
,
)
# Django-courier
# ------------------------------------------------------------------------------
COURIER_DEFAULT_PROVIDER
=
env
(
'COURIER_DEFAULT_PROVIDER'
,
default
=
''
)
COURIER_ONESIGNAL_APP_ID
=
env
(
'COURIER_ONESIGNAL_APP_ID'
,
default
=
''
)
COURIER_ONESIGNAL_USER_ID
=
env
(
'COURIER_ONESIGNAL_USER_ID'
,
default
=
''
)
# Django cities light
# ------------------------------------------------------------------------------
CITIES_LIGHT_INCLUDE_COUNTRIES
=
[
'BR'
]
...
...
@@ -362,7 +377,9 @@ CITIES_LIGHT_INCLUDE_CITY_TYPES = [
CEP_ABERTO_API_KEY
=
env
.
str
(
'CEP_ABERTO_API_KEY'
,
''
)
CEP_ABERTO_URL
=
env
.
str
(
'CEP_ABERTO_URL'
,
''
)
# Legacy Defaults, review everything
RECAPTCHA_SECRET_KEY
=
env
.
str
(
'RECAPTCHA_SECRET_KEY'
,
''
)
# Legacy Defaults, review everything. Everyting beyond here is legacy
# ------------------------------------------------------------------------------
TERMS_ACCEPTANCE_REQUIRED
=
True
REGISTRATION_DEFAULT_GROUP_NAME
=
'students'
...
...
@@ -380,5 +397,35 @@ ACCOUNT_REQUIRED_FIELDS = ('first_name', 'last_name', )
CERTIFICATE_SIZE
=
(
862
,
596
)
PHANTOMJS_PATH
=
ROOT_DIR
.
path
(
'node_modules/phantomjs-prebuilt/bin/phantomjs'
)
YOUTUBE_API_KEY
=
''
# [legacy] Django compressor stuff
COMPRESS_OFFLINE
=
True
STATICFILES_FINDERS
=
[
'django.contrib.staticfiles.finders.FileSystemFinder'
,
'django.contrib.staticfiles.finders.AppDirectoriesFinder'
,
'compressor.finders.CompressorFinder'
,
]
COMPRESS_PRECOMPILERS
=
(
(
'text/x-scss'
,
'django_libsass.SassCompiler'
),
)
#
# Theme related options
#
THEMES_DIR
=
''
TIMTEC_THEME
=
'courses_legacy'
# don't forget to re run collectstatic if you change the theme
STATICFILES_DIRS
+=
[
str
(
ROOT_DIR
.
path
(
'ext-apps'
,
'django-courses-legacy'
,
'node_modules'
))
]
YOUTUBE_API_KEY
=
''
\ No newline at end of file
# STATICFILES_DIRS += (
# # Put strings here, like "/home/html/static" or "C:/www/django/static".
# # Always use forward slashes, even on Windows.
# # Don't forget to use absolute paths, not relative paths.
# os.path.join(THEMES_DIR, 'default', 'static'),
# os.path.join(PROJECT_ROOT, 'bower_components'),
# )
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment