diff options
| -rwxr-xr-x | runserver.sh | 3 | ||||
| -rw-r--r-- | thatcomputerscientist/settings.py | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/runserver.sh b/runserver.sh index 464f6b6c..48583d3b 100755 --- a/runserver.sh +++ b/runserver.sh @@ -1,2 +1,3 @@ #!/bin/bash -exec sudo ./manage.py runserver localhost:80
\ No newline at end of file + +lt -p 8000 -s thatcomputerscientist & python3 manage.py runserver && fg
\ No newline at end of file diff --git a/thatcomputerscientist/settings.py b/thatcomputerscientist/settings.py index a3f6e7e8..bcbbd181 100644 --- a/thatcomputerscientist/settings.py +++ b/thatcomputerscientist/settings.py @@ -32,9 +32,9 @@ DEBUG = True # if os.getenv('ENVIRONMENT') == 'development' else False ALLOWED_HOSTS = ["*"] -CSRF_TRUSTED_ORIGINS = ['http://*.localhost', 'https://*.thatcomputerscientist.com', 'http://*.thatcomputerscientist.com'] -SESSION_COOKIE_DOMAIN = "localhost" if os.getenv('ENVIRONMENT') == 'development' else ".thatcomputerscientist.com" -DOMAIN_NAME = "localhost" if os.getenv('ENVIRONMENT') == 'development' else "thatcomputerscientist.com" +CSRF_TRUSTED_ORIGINS = ['https://*.thatcomputerscientist.loca.lt', 'https://*.thatcomputerscientist.com', 'http://*.thatcomputerscientist.com'] +SESSION_COOKIE_DOMAIN = "thatcomputerscientist.loca.lt" if os.getenv('ENVIRONMENT') == 'development' else ".thatcomputerscientist.com" +DOMAIN_NAME = "thatcomputerscientist.loca.lt" if os.getenv('ENVIRONMENT') == 'development' else "thatcomputerscientist.com" # Application definition |
