From 476a986c1aab7e4016a835ddd04732f8fe967e47 Mon Sep 17 00:00:00 2001 From: Nathan Mattes Date: Thu, 18 May 2023 18:58:06 +0200 Subject: [PATCH] Restructure project because django (#1) aka I'm an idiot. --- ventilator/{ => fan}/__init__.py | 0 ventilator/{ventilator => fan}/admin.py | 0 ventilator/{ventilator => fan}/apps.py | 4 ++-- ventilator/{ventilator => fan}/migrations/__init__.py | 0 ventilator/{ventilator => fan}/models.py | 0 ventilator/{ventilator => fan}/tests.py | 0 ventilator/{ventilator => fan}/views.py | 0 manage.py => ventilator/manage.py | 0 ventilator/{ => ventilator}/asgi.py | 0 ventilator/{ => ventilator}/settings.py | 3 ++- ventilator/{ => ventilator}/urls.py | 0 ventilator/{ => ventilator}/wsgi.py | 0 12 files changed, 4 insertions(+), 3 deletions(-) rename ventilator/{ => fan}/__init__.py (100%) rename ventilator/{ventilator => fan}/admin.py (100%) rename ventilator/{ventilator => fan}/apps.py (61%) rename ventilator/{ventilator => fan}/migrations/__init__.py (100%) rename ventilator/{ventilator => fan}/models.py (100%) rename ventilator/{ventilator => fan}/tests.py (100%) rename ventilator/{ventilator => fan}/views.py (100%) rename manage.py => ventilator/manage.py (100%) rename ventilator/{ => ventilator}/asgi.py (100%) rename ventilator/{ => ventilator}/settings.py (97%) rename ventilator/{ => ventilator}/urls.py (100%) rename ventilator/{ => ventilator}/wsgi.py (100%) diff --git a/ventilator/__init__.py b/ventilator/fan/__init__.py similarity index 100% rename from ventilator/__init__.py rename to ventilator/fan/__init__.py diff --git a/ventilator/ventilator/admin.py b/ventilator/fan/admin.py similarity index 100% rename from ventilator/ventilator/admin.py rename to ventilator/fan/admin.py diff --git a/ventilator/ventilator/apps.py b/ventilator/fan/apps.py similarity index 61% rename from ventilator/ventilator/apps.py rename to ventilator/fan/apps.py index 0ea8da1..8b537b4 100644 --- a/ventilator/ventilator/apps.py +++ b/ventilator/fan/apps.py @@ -1,6 +1,6 @@ from django.apps import AppConfig -class VentilatorConfig(AppConfig): +class FanConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' - name = 'ventilator' + name = 'fan' diff --git a/ventilator/ventilator/migrations/__init__.py b/ventilator/fan/migrations/__init__.py similarity index 100% rename from ventilator/ventilator/migrations/__init__.py rename to ventilator/fan/migrations/__init__.py diff --git a/ventilator/ventilator/models.py b/ventilator/fan/models.py similarity index 100% rename from ventilator/ventilator/models.py rename to ventilator/fan/models.py diff --git a/ventilator/ventilator/tests.py b/ventilator/fan/tests.py similarity index 100% rename from ventilator/ventilator/tests.py rename to ventilator/fan/tests.py diff --git a/ventilator/ventilator/views.py b/ventilator/fan/views.py similarity index 100% rename from ventilator/ventilator/views.py rename to ventilator/fan/views.py diff --git a/manage.py b/ventilator/manage.py similarity index 100% rename from manage.py rename to ventilator/manage.py diff --git a/ventilator/asgi.py b/ventilator/ventilator/asgi.py similarity index 100% rename from ventilator/asgi.py rename to ventilator/ventilator/asgi.py diff --git a/ventilator/settings.py b/ventilator/ventilator/settings.py similarity index 97% rename from ventilator/settings.py rename to ventilator/ventilator/settings.py index 486855f..f135531 100644 --- a/ventilator/settings.py +++ b/ventilator/ventilator/settings.py @@ -20,7 +20,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent # See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'django-insecure-k!rlb6%o#27kbzu*(%8)7(akcvz86-og+ep^p2e(e*6ffd21cj' +SECRET_KEY = 'django-insecure-&ysb7-2iiu9s$s!6x175z3-8eo*)3ct1trif#zn!$cr1se+yup' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True @@ -37,6 +37,7 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + "fan", ] MIDDLEWARE = [ diff --git a/ventilator/urls.py b/ventilator/ventilator/urls.py similarity index 100% rename from ventilator/urls.py rename to ventilator/ventilator/urls.py diff --git a/ventilator/wsgi.py b/ventilator/ventilator/wsgi.py similarity index 100% rename from ventilator/wsgi.py rename to ventilator/ventilator/wsgi.py