Skip to content

Commit

Permalink
better ALLOWED_HOSTS rule, new dpaw-utils version
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Percival authored and dbca-asi committed Dec 1, 2016
1 parent ad935aa commit 4c9b5c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ledger/settings_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
DEBUG = env('DEBUG', False)
CSRF_COOKIE_SECURE = env('CSRF_COOKIE_SECURE', False)
SESSION_COOKIE_SECURE = env('SESSION_COOKIE_SECURE', False)
if not DEBUG:
if DEBUG:
ALLOWED_HOSTS = ['*']
else:
ALLOWED_HOSTS = env('ALLOWED_HOSTS', [])
WSGI_APPLICATION = 'ledger.wsgi.application'
INSTALLED_APPS = [
Expand Down Expand Up @@ -259,6 +261,7 @@
LEDGER_USER=env('LEDGER_USER',None)
LEDGER_PASS=env('LEDGER_PASS')
NOTIFICATION_EMAIL=env('NOTIFICATION_EMAIL')

# BPAY settings
BPAY_BILLER_CODE=env('BPAY_BILLER_CODE')
# BPOINT settings
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Django<1.10.0
https://static.dpaw.wa.gov.au/static/py/dpaw-utils/dist/dpaw-utils-0.3a7.tar.gz
-e git+https://github.com/parksandwildlife/dpaw-utils@0.3a13#egg=dpaw-utils
django-oscar>=1.3,<1.4
python-social-auth>=0.2.21
coverage>=4.0.3
Expand All @@ -21,4 +21,4 @@ py4j==0.10.2.1
djangorestframework==3.4.0
pycountry==1.20
six>=1.10.0
django-ical>=1.4
django-ical>=1.4

0 comments on commit 4c9b5c2

Please sign in to comment.