Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
chocapix-server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Camille MASSET
chocapix-server
Commits
1d560b1c
Commit
1d560b1c
authored
Feb 21, 2017
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add prod.py.dist example file
parent
80827181
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
0 deletions
+58
-0
bars_django/settings/prod.py.dist
bars_django/settings/prod.py.dist
+58
-0
No files found.
bars_django/settings/prod.py.dist
0 → 100644
View file @
1d560b1c
from .common import *
ALLOWED_HOSTS = [ "*" ]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'chocapix',
'HOST': 'localhost',
'USER': 'chocapix',
'PASSWORD': 'password',
}
}
ADMINS = (("Babe", "babe@binets.polytechnique.fr"),)
SERVER_EMAIL = 'babe@binets.polytechnique.fr'
SLACK_HOOK = True
# Kuzh - for Slack hook requests
PROXIES = {
"http": "http://129.104.247.2:8080/",
"https": "http://129.104.247.2:8080/"
}
IRC_HOOK = True
IRC_HOOK_URL = "http://129.104.201.57:3000/chocapix"
IRC_HOOK_KEY = "key"
# Logging - Slack notifications on Error 500
SLACK_WEBHOOK_ERROR_URL = "https://hooks.slack.com/services/T00000000/B00000000/00000000000000000000000r"
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse'
}
},
'handlers': {
'slack': {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'bars_django.slack_handler.SlackHandler'
},
'mail_admins': {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler'
}
},
'loggers': {
'django.request': {
'handlers': ['slack'],
'level': 'ERROR',
'propagate': True,
},
}
}
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