Skip to content

Commit b9efcdf

Browse files
author
kuntalnescode
committed
[Update]settings
1 parent 79f41f9 commit b9efcdf

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

nescoder/settings/base.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,23 @@
1010
https://docs.djangoproject.com/en/2.0/ref/settings/
1111
"""
1212

13-
from .local_settings import *
13+
try:
14+
from .local_settings import *
15+
except ImportError:
16+
pass
1417

1518
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
1619
import os
1720

1821
PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
1922
BASE_DIR = os.path.dirname(PROJECT_DIR)
2023

24+
# Email Configuration
25+
EMAIL_USE_TLS = True
26+
EMAIL_HOST = 'smtp.gmail.com'
27+
EMAIL_HOST_USER = ''
28+
EMAIL_HOST_PASSWORD = ''
29+
EMAIL_PORT = 587
2130

2231
# Quick-start development settings - unsuitable for production
2332
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
@@ -29,6 +38,7 @@
2938
'search',
3039
'blog',
3140
'newsletter',
41+
'enquiry',
3242

3343
'wagtail.contrib.forms',
3444
'wagtail.contrib.redirects',
@@ -51,6 +61,7 @@
5161
'django.contrib.sessions',
5262
'django.contrib.messages',
5363
'django.contrib.staticfiles',
64+
'crispy_forms',
5465
]
5566

5667
MIDDLEWARE = [
@@ -161,6 +172,9 @@
161172
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
162173
MEDIA_URL = '/media/'
163174

175+
# Mailchimp
176+
MAILCHIMP_API_KEY = ''
177+
MAILCHIMP_SUBSCRIBE_LIST_ID = ''
164178

165179
# Wagtail settings
166180

0 commit comments

Comments
 (0)