12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- from .base import * # noqa
- # SECURITY WARNING: don't run with debug turned on in production!
- DEBUG = False
- # SECURITY WARNING: keep the secret key used in production secret!
- SECRET_KEY = "abn^vwh^_m31u=sxw)+7ztc^ov&rpi2zc=1o54&m0r+(0m5s*i"
- # Add your site's domain name(s) here.
- ALLOWED_HOSTS = ["localhost"]
- # To send email from the server, we recommend django_sendmail_backend
- # Or specify your own email backend such as an SMTP server.
- # https://docs.djangoproject.com/en/3.0/ref/settings/#email-backend
- EMAIL_BACKEND = "django_sendmail_backend.backends.EmailBackend"
- # Default email address used to send messages from the website.
- DEFAULT_FROM_EMAIL = "My Company Inc. <info@localhost>"
- # A list of people who get error notifications.
- ADMINS = [
- ("Administrator", "admin@localhost"),
- ]
- # A list in the same format as ADMINS that specifies who should get broken link
- # (404) notifications when BrokenLinkEmailsMiddleware is enabled.
- MANAGERS = ADMINS
- # Email address used to send error messages to ADMINS.
- SERVER_EMAIL = DEFAULT_FROM_EMAIL
- # DATABASES = {
- # 'default': {
- # 'ENGINE': 'django.db.backends.mysql',
- # 'HOST': 'localhost',
- # 'NAME': 'mysite',
- # 'USER': 'mysite',
- # 'PASSWORD': '',
- # # If using SSL to connect to a cloud mysql database, spedify the CA as so.
- # 'OPTIONS': { 'ssl': { 'ca': '/path/to/certificate-authority.pem' } },
- # }
- # }
- # Use template caching to speed up wagtail admin and front-end.
- # Requires reloading web server to pick up template changes.
- TEMPLATES = [
- {
- "BACKEND": "django.template.backends.django.DjangoTemplates",
- "OPTIONS": {
- "context_processors": [
- "django.template.context_processors.debug",
- "django.template.context_processors.request",
- "django.contrib.auth.context_processors.auth",
- "django.contrib.messages.context_processors.messages",
- "wagtail.contrib.settings.context_processors.settings",
- ],
- "loaders": [
- (
- "django.template.loaders.cached.Loader",
- [
- "django.template.loaders.filesystem.Loader",
- "django.template.loaders.app_directories.Loader",
- ],
- ),
- ],
- },
- },
- ]
- CACHES = {
- "default": {
- "BACKEND": "django.core.cache.backends.filebased.FileBasedCache",
- "LOCATION": os.path.join(BASE_DIR, "cache"), # noqa
- "KEY_PREFIX": "coderedcms",
- "TIMEOUT": 14400, # in seconds
- }
- }
- try:
- from .local_settings import * # noqa
- except ImportError:
- pass
|