Commit 8c884a24 authored by Martin Koehler's avatar Martin Koehler
Browse files

DESY changes

parent aeb35602
......@@ -23,7 +23,8 @@ RUN apt install -y \
vim \
python3-ldap \
python-django-auth-ldap \
libsasl2-dev libldap2-dev libssl-dev
libsasl2-dev libldap2-dev libssl-dev \
memcached
# postgres
RUN apt install -y \
......
......@@ -14,7 +14,7 @@ DEBUG = False
A secret key for a particular Django installation. This is used to provide
cryptographic signing, and should be set to a unique, unpredictable value.
'''
SECRET_KEY = 'this is not a very secret key'
SECRET_KEY = 'aKqKT1xyvxG8Wq99TUzbfYmOZjObeFWLMZwLtHsdasU6WBsBa1cCQVR0XW1p'
'''
The list of URLs under which this application is available
......@@ -74,14 +74,14 @@ DATABASES = {
E-Mail configuration, see also:
http://rdmo.readthedocs.io/en/latest/configuration/email.html
'''
# EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
# EMAIL_HOST = 'localhost'
# EMAIL_PORT = '25'
# EMAIL_HOST_USER = ''
# EMAIL_HOST_PASSWORD = ''
# EMAIL_USE_TLS = False
# EMAIL_USE_SSL = False
# DEFAULT_FROM_EMAIL = ''
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp-auth.desy.de'
EMAIL_PORT = '587'
EMAIL_HOST_USER = 'library1'
EMAIL_HOST_PASSWORD = os.environ["AUTH_LDAP_BIND_PASSWORD"]
EMAIL_USE_TLS = True
EMAIL_USE_SSL = False
DEFAULT_FROM_EMAIL = 'library@desy.de'
'''
Allauth configuration, see also:
......@@ -90,8 +90,8 @@ http://rdmo.readthedocs.io/en/latest/configuration/authentication/allauth.html
from rdmo.core.settings import INSTALLED_APPS, AUTHENTICATION_BACKENDS
ACCOUNT = True
ACCOUNT_SIGNUP = True
ACCOUNT = False
ACCOUNT_SIGNUP = False
ACCOUNT_TERMS_OF_USE = True
SOCIALACCOUNT = False
......@@ -166,39 +166,39 @@ http://rdmo.readthedocs.io/en/latest/configuration/authentication/shibboleth.htm
Theme, see also:
http://rdmo.readthedocs.io/en/latest/configuration/themes.html
'''
# THEME_DIR = os.path.join(BASE_DIR, 'theme')
THEME_DIR = os.path.join(BASE_DIR, 'theme')
'''
Export Formats
'''
# from django.utils.translation import ugettext_lazy as _
# EXPORT_FORMATS = (
# ('pdf', _('PDF')),
# ('rtf', _('Rich Text Format')),
# ('odt', _('Open Office')),
# ('docx', _('Microsoft Office')),
# ('html', _('HTML')),
# ('markdown', _('Markdown')),
# ('mediawiki', _('mediawiki')),
# ('tex', _('LaTeX'))
# )
from django.utils.translation import ugettext_lazy as _
EXPORT_FORMATS = (
('pdf', _('PDF')),
('rtf', _('Rich Text Format')),
('odt', _('Open Office')),
('docx', _('Microsoft Office')),
('html', _('HTML')),
('markdown', _('Markdown')),
('mediawiki', _('mediawiki')),
('tex', _('LaTeX'))
)
'''
Cache, see also:
http://rdmo.readthedocs.io/en/latest/configuration/cache.html
'''
# CACHES = {
# 'default': {
# 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
# 'LOCATION': '127.0.0.1:11211',
# 'KEY_PREFIX': 'rdmo_default'
# },
# 'api': {
# 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
# 'LOCATION': '127.0.0.1:11211',
# 'KEY_PREFIX': 'rdmo_api'
# },
# }
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
'KEY_PREFIX': 'rdmo_default'
},
'api': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
'KEY_PREFIX': 'rdmo_api'
},
}
'''
LOGGING
......
......@@ -12,9 +12,11 @@ pip install rdmo
git clone ${RDMO_APP_REPO} ${RDMO_APP}
cp -f /conf/template_local.py ${RDMO_APP}/config/settings/local.py
cp -r /theme ${RDMO_APP}/theme
pip install -r ${RDMO_APP}/requirements/gunicorn.txt
pip install -r ${RDMO_APP}/requirements/ldap.txt
pip install -r ${RDMO_APP}/requirements/memcached.txt
cd ${RDMO_APP}
python manage.py makemigrations
......
{% load i18n core_tags %}
<footer>
<div class="container">
<div class="row">
<div class="footer-col col-md-4">
<h4>{% trans 'Project RDMO' %}</h4>
<p>
{% trans 'The project aims to develop a tool to support the planning of the research data management. In addition, the tool will create a textual data management plan.' %}
</p>
<p>
{% trans 'The project is funded by the German Research Foundation.' %}
</p>
</div>
<div class="footer-col col-md-4">
<h4>{% trans 'Contact' %}</h4>
<p>
<a href="mailto:DMPW@LISTSERV.DFN.DE">DMPW@LISTSERV.DFN.DE</a><br />
<a href="https://rdmorganiser.github.io">
https://rdmorganiser.github.io
</a>
</p>
<h4>{% trans 'Open Source' %}</h4>
<p>
{% trans 'RDMO is published on:' %}
</p>
<p>
<a href="https://github.com/rdmorganiser/rdmo">
https://github.com/rdmorganiser/rdmo
</a>
</p>
</div>
<div class="footer-col col-md-4">
<h4>Impressum</h4>
<p>
Diese Webseite wird vom <a href="http://www.desy.de">
Deutschen Elektronen-Synchrotron DESY</a> betrieben.
<a href="https://www.desy.de/impressum/index_ger.html">Impressum</a>.
</p>
</div>
</div>
</div>
</footer>
<h2>Wilkommen bei RDMO</h2>
<p>
Das Ziel des RDMO Projekts ist es, eine Webapplikation bereitzustellen, die die strukturierte Planung, Umsetzung und Verwaltung der Daten in einem wissenschaftlichen Projekt unterstützt. Zusätzlich sollen die gesammelten Informationen in textueller Form für Anforderungen von Förderern oder für Berichte ausgebbar sein.
</p>
<p>
Wenn Sie mehr über das Projekt erfahren wollen, besuchen Sie <a href="https://rdmorganiser.github.io">rdmorganiser.github.io</a>.
</p>
<h2>Welcome to RDMO</h2>
<p>
The aim of the RDMO project is to deliver a web application to assist structured planning, implementation and administration of the data in a scientific project. Additionally, the gathered information can be cast into textual forms suitable for funding agencies requirements or for reports.
</p>
<p>
For more information about the project visit <a href="https://rdmorganiser.github.io">rdmorganiser.github.io</a>.
</p>
Supports Markdown
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