Skip to content

Commit

Permalink
added staticfiles and allowed hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
4darsh-Dev authored May 27, 2024
1 parent 83b24da commit 8f8a801
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions django-backend/cogniguard/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
SECRET_KEY = 'django-insecure-6d^&=3mo$ybhnt4dv^gqjf89c(@$ygco!epa4qb)!m0wiv@z46'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False

ALLOWED_HOSTS = []
ALLOWED_HOSTS = [".vercel.app", ".now.sh"]


# Application definition
Expand Down Expand Up @@ -114,10 +114,10 @@
DB_PORT=os.getenv('DB_PORT','')

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': BASE_DIR / 'db.sqlite3',
# }
# 'default': {
# 'ENGINE': 'django.db.backends.mysql',
# 'NAME': DB_NAME,
Expand Down Expand Up @@ -183,7 +183,6 @@
]

# for staticfiles

STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles_build', 'static')


0 comments on commit 8f8a801

Please sign in to comment.