fix names

fix names
This commit is contained in:
jnfire
2022-07-29 15:15:22 +02:00
parent e51406e31a
commit 128271411d
8 changed files with 79 additions and 32 deletions

View File

@ -1,5 +1,5 @@
"""
ASGI config for ccstech project.
ASGI config for core project.
It exposes the ASGI callable as a module-level variable named ``application``.
@ -11,6 +11,6 @@ import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ccstech.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')
application = get_asgi_application()

View File

@ -10,6 +10,7 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
import dj_database_url
from pathlib import Path
from django.db.backends.signals import connection_created
@ -78,14 +79,7 @@ TEMPLATES = [
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
DATABASES = {
"default": {
"ENGINE": os.environ.get("DB_ENGINE"),
"NAME": os.environ.get("DB_NAME"),
"USER": os.environ.get("DB_USER"),
"PASSWORD": os.environ.get("DB_PASSWORD"),
"HOST": os.environ.get("DB_HOST"),
"PORT": os.environ.get("DB_PORT"),
}
"default": dj_database_url.config(default=f"postgres://{os.environ.get('DB_USER')}:{os.environ.get('DB_PASSWORD')}@{os.environ.get('DB_HOST')}:{os.environ.get('DB_PORT')}/{os.environ.get('DB_NAME')}")
}
# Password validation

View File

@ -1,4 +1,4 @@
"""ccstech URL Configuration
"""template URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/4.0/topics/http/urls/
@ -15,9 +15,7 @@ Including another URLconf
"""
from django.contrib import admin
from django.urls import path
from app.website import views as website_views
urlpatterns = [
path('', website_views.home, name='home'),
path('admin/', admin.site.urls),
]