Skip to content

Commit

Permalink
Fixes (#76)
Browse files Browse the repository at this point in the history
* update ssl certs docker ignore

* few fixes

* quick fix

* few fixes

* update allowed hosts

---------

Co-authored-by: Ishaan Mittal <[email protected]>
  • Loading branch information
mittal-ishaan and ishaan-tf authored Aug 30, 2024
1 parent 1aac788 commit 98fd4d0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions messWebsite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
BASE_DIR = Path(__file__).resolve().parent.parent

env = environ.Env()
environ.Env.read_env(BASE_DIR / '.env')
environ.Env.read_env(BASE_DIR / ".env")

DATA_UPLOAD_MAX_NUMBER_FIELDS = 10240

Expand All @@ -20,7 +20,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False

ALLOWED_HOSTS = ["diningfee.iiti.ac.in", "127.0.0.1"]
ALLOWED_HOSTS = ["diningfee.iiti.ac.in", "127.0.0.1", "103.159.214.171"]
CSRF_TRUSTED_ORIGINS = ["http://diningfee.iiti.ac.in", "https://diningfee.iiti.ac.in"]
# Application definition

Expand Down Expand Up @@ -182,7 +182,7 @@
# https://docs.djangoproject.com/en/4.1/howto/static-files/

STATIC_URL = "/static/"
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
Expand All @@ -196,11 +196,11 @@
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
MEDIA_URL = "/media/"

DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
DEFAULT_FILE_STORAGE = "django.core.files.storage.FileSystemStorage"

FILE_UPLOAD_HANDLERS = [
'django.core.files.uploadhandler.MemoryFileUploadHandler',
'django.core.files.uploadhandler.TemporaryFileUploadHandler',
"django.core.files.uploadhandler.MemoryFileUploadHandler",
"django.core.files.uploadhandler.TemporaryFileUploadHandler",
]

# Default primary key field type
Expand Down

0 comments on commit 98fd4d0

Please sign in to comment.