Skip to content

Commit 01c7d88

Browse files
Merge pull request #769 from softwaresaved/dev
Dev
2 parents c72a56a + dc4848a commit 01c7d88

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

lowfat/settings.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
'bootstrap_datepicker_plus',
6363
'constance',
6464
'constance.backends.database',
65+
'corsheaders',
6566
'crispy_forms',
6667
'crispy_bootstrap5',
6768
'dbbackup',
@@ -90,10 +91,16 @@
9091
'django.contrib.messages.middleware.MessageMiddleware',
9192
'django.middleware.clickjacking.XFrameOptionsMiddleware',
9293
'simple_history.middleware.HistoryRequestMiddleware',
94+
'corsheaders.middleware.CorsMiddleware',
9395
]
9496

9597
ROOT_URLCONF = 'lowfat.urls'
9698

99+
CSRF_TRUSTED_ORIGINS = [
100+
'http://127.0.0.1:8000',
101+
'https://fellows.software.ac.uk',
102+
]
103+
97104
TEMPLATES = [
98105
{
99106
'BACKEND': 'django.template.backends.django.DjangoTemplates',

requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Django==4.2
1111
django-appconf==1.0.5
1212
django-bootstrap-datepicker-plus==4.0.0
1313
django-constance==2.9.1
14+
django-cors-headers==4.3.1
1415
django-countries==7.3.2
1516
django-crispy-forms==1.14.0
1617
django-datetime-widget==0.9.3
@@ -36,7 +37,7 @@ odfpy==1.4.1
3637
openpyxl==3.1.2
3738
pandas==1.4.3
3839
pilkit==2.0
39-
Pillow==10.2.0
40+
pillow==10.2.0
4041
pycparser==2.21
4142
PyJWT==2.4.0
4243
PyPDF2==2.10.3
@@ -57,4 +58,4 @@ tablib==3.5.0
5758
typing_extensions==4.3.0
5859
urllib3==1.26.12
5960
xlrd==2.0.1
60-
xlwt==1.3.0
61+
xlwt==1.3.0

0 commit comments

Comments
 (0)