Commit ae0be67e authored by Bianca Aguilar's avatar Bianca Aguilar

Configuring settings

parent 9ad8834a
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'widget_group_23.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
if __name__ == '__main__':
main()
...@@ -26,9 +26,9 @@ BASE_DIR = Path(__file__).resolve().parent.parent ...@@ -26,9 +26,9 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = os.getenv('django-insecure-*(qier^-o5=az!3k%zs$y+!c1k6on)oi3%)_jiy(%h=34u=*1@') SECRET_KEY = os.getenv('django-insecure-*(qier^-o5=az!3k%zs$y+!c1k6on)oi3%)_jiy(%h=34u=*1@')
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = False
ALLOWED_HOSTS = ['*'] ALLOWED_HOSTS = ['localhost', '127.0.0.1']
# Application definition # Application definition
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment