Skip to content

Commit

Permalink
[AJP-2] Add allowed hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Grund authored and Anna Grund committed Jul 10, 2023
1 parent e1452b8 commit 1a1d888
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/ajapaik/settings/local.py
#/ajapaik/settings/local.py
/ajapaik/settings/test.py

/media/
Expand Down
77 changes: 77 additions & 0 deletions ajapaik/settings/local.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
from ajapaik.settings.default import *

DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'postgres',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': 'db'
}
}

ALLOWED_HOSTS = [
'localhost',
'0.0.0.0',
'anna.ajapaik.ee'
]

SECRET_KEY = 'zek%+^%%7#^&rqgjoa_b^jdvw+4g7mt_@)^j07j774tq%4f-d5'

LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'file': {
'level': 'DEBUG',
'class': 'logging.FileHandler',
'filename': 'debug.log',
},
},
'loggers': {
'django.request': {
'handlers': ['file'],
'level': 'DEBUG',
'propagate': True,
},
},
}

GOOGLE_API_KEY = 'YOUR_KEY'
GOOGLE_CLIENT_ID = 'YOUR_ID'
GOOGLE_ANALYTICS_KEY = 'UA-21689048-2'
GOOGLE_PLUS_OAUTH2_CALLBACK_URL = 'http://localhost:8000/oauth2callback'

FLICKR_API_KEY = 'YOUR_KEY'
FLICKR_API_SECRET = 'YOUR_SECRET'

FACEBOOK_APP_KEY = 'YOUR_KEY'
FACEBOOK_APP_SECRET = 'YOUR_SECRET'
FACEBOOK_APP_ID = '201052296573134'

SITE_ID = 2

DEBUG = True

CSRF_COOKIE_SECURE = False
SESSION_COOKIE_SECURE = False

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.mailtrap.io'
EMAIL_PORT = 25
EMAIL_HOST_USER = '590e8a199b417a'
EMAIL_HOST_PASSWORD = 'YOUR_PASSWORD'
EMAIL_USE_TLS = False

CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
}
}

SILENCED_SYSTEM_CHECKS = ['captcha.recaptcha_test_key_error']

RECAPTCHA_PUBLIC_KEY = 'not-so-seekrit'
RECAPTCHA_PRIVATE_KEY = 'seekrit'

GOOGLE_MAPS_API_KEY = ''

0 comments on commit 1a1d888

Please sign in to comment.