added helpdesk, needs some server config

parent 14e18ed3
Pipeline #21066173 failed with stage
in 18 minutes and 5 seconds
......@@ -32,3 +32,4 @@ temp/*
*.rdb
.pytest_cache/
db.sqlite3-journal
/helpdesk/*
"""Django settings for failmap project.
Generated by 'django-admin startproject' using Django 1.9.5.
You do not need to edit the settings listed below.
For example, you should not need to change the DEBUG setting here, ever. For this you can use
direnv, which will change your environment settings when you enter this projects directory.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
......@@ -90,7 +93,16 @@ INSTALLED_APPS = [
'constance.backends.database',
'leaflet',
'djgeojson',
'crispy_forms',
'crispy_forms', # for the game
# django helpdesk requirements:
'django.contrib.sites', # Required for determining domain url for use in emails
'markdown_deux', # Required for Knowledgebase item formatting
'bootstrapform', # Required for nicer formatting of forms with the default templates
'helpdesk', # This is us!
# others:
# 'mapwidgets', no gdal available yet, try again later
# 'cachalot', # query cache, is not faster.
# 'silk' # works great for debugging.
......@@ -582,6 +594,8 @@ NETWORK_SUPPORTS_IPV6 = os.environ.get('NETWORK_SUPPORTS_IPV6', False)
# atomic imports: fail completely, not half
IMPORT_EXPORT_USE_TRANSACTIONS = True
#########
# Begin constance settigns
# runtime configuration from database
# https://django-constance.readthedocs.io/en/latest/
CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
......@@ -596,26 +610,29 @@ CONSTANCE_ADDITIONAL_FIELDS = {
CONSTANCE_CONFIG = {
'MAILTO': ('[email protected]', 'General email address.', str),
'DEFAULT_COUNTRY': ('NL', 'ISO 3166-1 alpha-2 country code. Eg: NL, DE, FR, IT, DK, IS, AT...', str)
}
# required until fixed: https://github.com/jazzband/django-constance/issues/263
CONSTANCE_CONFIG_FIELDSETS = {
'General': ('MAILTO', ),
'Map': ('DEFAULT_COUNTRY', ),
'Helpdesk': ('AKISMET_API_KEY', 'TYPEPAD_ANTISPAM_API_KEY'),
}
# End constance settings
########
# https://docs.djangoproject.com/en/1.11/ref/settings/#data-upload-max-number-fields
# The default is far too low with various inlines (even on the test dataset).
# Yes, we happily exceed 1000 fields anyday. No problem :)
DATA_UPLOAD_MAX_NUMBER_FIELDS = 4242
########
# Begin game settings:
# login on the frontpage should redirect to the game landingpage
LOGIN_REDIRECT_URL = '/game/'
LOGIN_URL = '/authentication/login/'
LOGOUT_REDIRECT_URL = '/'
# for the game:
MAP_WIDGETS = {
"GooglePointFieldWidget": (
("zoom", 15),
......@@ -627,3 +644,26 @@ MAP_WIDGETS = {
}
CRISPY_TEMPLATE_PACK = 'bootstrap3'
# End game settigns
#######
#######
# Begin helpdesk settings:
# Unfortunately we cannot manage these settings with constance. And therefore you should be still editing
# this file. We're sorry.
SITE_ID = 1 # For django-helpdesk. We only run one site...
# helps against spam, will leak all your data, so be careful. Spam could be protected against on your mailserver...
AKISMET_API_KEY = os.environ.get('AKISMET_API_KEY', '')
TYPEPAD_ANTISPAM_API_KEY = os.environ.get('TYPEPAD_ANTISPAM_API_KEY', '')
# If you use another server for sending mail, see config example here:
# http://django-helpdesk.readthedocs.io/en/0.2.x/configuration.html
# EMAIL_HOST = 'XXXXX'
# EMAIL_HOST_USER = '[email protected]ZZ.PPP'
# EMAIL_HOST_PASSWORD = '123456'
# Make sure the MEDIA_ROOT is NOT readable from the webserver directly. So no https://bla/media.
MEDIA_ROOT = os.environ.get('MEDIA_ROOT', os.path.abspath(os.path.dirname(__file__)) + '/../')
# End of helpdesk settings
#######
\ No newline at end of file
......@@ -41,6 +41,7 @@ frontend_urls = [
]
interactive_urls = [
path('authentication/', include('django.contrib.auth.urls')),
url(r'helpdesk/', include('helpdesk.urls')),
]
urlpatterns = frontend_urls.copy()
......
......@@ -97,3 +97,13 @@ geocoder
# django-map-widgets # uses gdal, not in alpine, cannot be fixed quickly so not using this.
django-admin-sortable2 # nice sorting in the admin
# Helpdesk requirements
# Runs django-helpdesk, https://github.com/django-helpdesk
django-helpdesk # more complete ticketing, might help a lot with interaction.
django-bootstrap-form>=3.3,<4
email-reply-parser
django-markdown-deux
beautifulsoup4
lxml
six
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment