diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-03-19 01:10:27 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-03-23 03:32:36 +0100 |
commit | a25b5f82989b0e1c4abbfe0feca7f836a608c7e6 (patch) | |
tree | 96b698fba0962525f898022d22fd51b60bb0c75c /modules/role/templates/caldance | |
parent | 23fd00ce5f8aa6d8419d56166f658361c1321add (diff) | |
download | Puppet-a25b5f82989b0e1c4abbfe0feca7f836a608c7e6.tar.gz Puppet-a25b5f82989b0e1c4abbfe0feca7f836a608c7e6.tar.zst Puppet-a25b5f82989b0e1c4abbfe0feca7f836a608c7e6.zip |
Caldance updates
Diffstat (limited to 'modules/role/templates/caldance')
-rw-r--r-- | modules/role/templates/caldance/local_settings.py.erb | 25 | ||||
-rw-r--r-- | modules/role/templates/caldance/manage.py.erb | 9 |
2 files changed, 34 insertions, 0 deletions
diff --git a/modules/role/templates/caldance/local_settings.py.erb b/modules/role/templates/caldance/local_settings.py.erb new file mode 100644 index 0000000..4da53f6 --- /dev/null +++ b/modules/role/templates/caldance/local_settings.py.erb | |||
@@ -0,0 +1,25 @@ | |||
1 | import os | ||
2 | DATABASES = { | ||
3 | 'default': { | ||
4 | 'ENGINE': 'django.contrib.gis.db.backends.postgis', | ||
5 | 'NAME': '<%= @pg_db %>', | ||
6 | 'USER': '<%= @pg_user %>', | ||
7 | 'PASSWORD': u'<%= @pg_password %>', | ||
8 | 'HOST': '<%= @pg_hostname %>', | ||
9 | 'PORT': '<%= @pg_port %>', | ||
10 | } | ||
11 | } | ||
12 | |||
13 | # SECURITY WARNING: keep the secret key used in production secret! | ||
14 | SECRET_KEY = os.environ.get('SECRET_KEY', '<%= @secret_key %>') | ||
15 | DEBUG = False | ||
16 | SECURE_HSTS_PRELOAD = True # moved from local settings as local runserver don't do SSL | ||
17 | SECURE_HSTS_SECONDS = 1 | ||
18 | SECURE_SSL_REDIRECT = True | ||
19 | LOG_FILE = '<%= @home %>/caldev_django.log' | ||
20 | |||
21 | DEFAULT_FROM_EMAIL = '<%= @mail_from %>' | ||
22 | EMAIL_USE_SSL = True | ||
23 | EMAIL_HOST = "<%= @smtp_host %>" | ||
24 | EMAIL_PORT = <%= @smtp_port %> | ||
25 | |||
diff --git a/modules/role/templates/caldance/manage.py.erb b/modules/role/templates/caldance/manage.py.erb new file mode 100644 index 0000000..dc06eab --- /dev/null +++ b/modules/role/templates/caldance/manage.py.erb | |||
@@ -0,0 +1,9 @@ | |||
1 | #!<%= @python_path %> -O | ||
2 | import os | ||
3 | import sys | ||
4 | |||
5 | if __name__ == "__main__": | ||
6 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main_app.settings") | ||
7 | |||
8 | from django.core.management import execute_from_command_line | ||
9 | execute_from_command_line(sys.argv) | ||