diff --git a/piomint/settings.py b/piomint/settings.py index 7fb6da2..7e384c6 100644 --- a/piomint/settings.py +++ b/piomint/settings.py @@ -25,7 +25,7 @@ SECRET_KEY = 'django-insecure-h^$jdg0n_yarg*l#r3fd_7=7_)-!0bspac70f$1#b7w8gmkc-* # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ['*'] if DEBUG else ['localhost'] # Application definition @@ -37,6 +37,11 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + + # MyApps + 'doc', + 'app', + 'web', ] MIDDLEWARE = [ @@ -73,10 +78,22 @@ WSGI_APPLICATION = 'piomint.wsgi.application' # Database # https://docs.djangoproject.com/en/5.1/ref/settings/#databases +# STANDART DATENBANK +# DATABASES = { +# 'default': { +# 'ENGINE': 'django.db.backends.sqlite3', +# 'NAME': BASE_DIR / 'db.sqlite3', +# } +# } + DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': BASE_DIR / 'db.sqlite3', + 'ENGINE': 'django.db.backends.mysql', + 'NAME': 'piomint', + 'USER': 'piomint', + 'PASSWORD': 'qZX696%F@apY', + 'HOST': '192.168.10.215', + 'PORT': '3306', } } @@ -103,9 +120,9 @@ AUTH_PASSWORD_VALIDATORS = [ # Internationalization # https://docs.djangoproject.com/en/5.1/topics/i18n/ -LANGUAGE_CODE = 'en-us' +LANGUAGE_CODE = 'de' -TIME_ZONE = 'UTC' +TIME_ZONE = 'Europe/Berlin' USE_I18N = True