Skip to content

Commit

Permalink
feat: set up environtment production
Browse files Browse the repository at this point in the history
  • Loading branch information
fazirta committed Sep 21, 2024
1 parent 937cb70 commit 56daad6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playbox/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
SECRET_KEY = 'django-insecure-rtszg1xv0ern2(chdammhp42s0jg#tjfeko=s=c*q6##%mhe=9'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
PRODUCTION = os.getenv("PRODUCTION", False)
DEBUG = not PRODUCTION

ALLOWED_HOSTS = ["localhost", "127.0.0.1", "muhammad-fazil31-playbox.pbp.cs.ui.ac.id"]

Expand Down

0 comments on commit 56daad6

Please sign in to comment.