File tree 5 files changed +38
-6
lines changed
5 files changed +38
-6
lines changed Original file line number Diff line number Diff line change 5
5
jobs :
6
6
test :
7
7
runs-on : ubuntu-latest
8
+ env :
9
+ DJANGO_SETTINGS_MODULE : ptplot_site.settings.dev
8
10
steps :
9
11
- name : Setup Python
10
12
uses : actions/setup-python@v5
Original file line number Diff line number Diff line change 19
19
# Quick-start development settings - unsuitable for production
20
20
# See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/
21
21
22
- # SECURITY WARNING: keep the secret key used in production secret!
23
- SECRET_KEY = 'django-insecure-5)qw0w+z9)*q145l8$n_@d+$dj0f++p)npdmrddazr5j$yu869'
24
-
25
- # SECURITY WARNING: don't run with debug turned on in production!
26
- DEBUG = True
27
22
28
23
ALLOWED_HOSTS = []
29
24
30
-
31
25
# Application definition
32
26
33
27
INSTALLED_APPS = [
122
116
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
123
117
124
118
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
119
+
120
+ # Email
121
+ ADMINS = [
122
+ (
"David Weir" ,
"[email protected] " ),
123
+ (
"Mika Mäki" ,
"[email protected] " )
124
+ ]
125
+ MANAGERS = ADMINS
126
+ # DEFAULT_FROM_EMAIL = ""
127
+ # SERVER_EMAIL = DEFAULT_FROM_EMAIL
Original file line number Diff line number Diff line change
1
+ from .base import *
2
+
3
+ # SECURITY WARNING: don't run with debug turned on in production!
4
+ DEBUG = True
5
+
6
+ ALLOWED_HOSTS = ["localhost" , "127.0.0.1" ]
7
+ INTERNAL_IPS = ["127.0.0.1" ]
8
+
9
+ # SECURITY WARNING: keep the secret key used in production secret!
10
+ SECRET_KEY = 'django-insecure-5)qw0w+z9)*q145l8$n_@d+$dj0f++p)npdmrddazr5j$yu869'
Original file line number Diff line number Diff line change
1
+ import os
2
+ from .base import *
3
+
4
+ # SECURITY WARNING: don't run with debug turned on in production!
5
+ DEBUG = False
6
+
7
+ ALLOWED_HOSTS = [
8
+ "localhost" ,
9
+ "ptplot.org" ,
10
+ "ptplot-23.it.helsinki.fi" ,
11
+ "128.214.48.116"
12
+ ]
13
+ INTERNAL_IPS = ["127.0.0.1" ]
14
+ SECRET_KEY = os .environ ["DJANGO_SECRET_KEY" ]
15
+
16
+ SESSION_COOKIE_SECURE = True
17
+ CSRF_COOKIE_SECURE = True
You can’t perform that action at this time.
0 commit comments