From 12d8b441c07a5e17aeab3dc6ffe9bfdfa282199d Mon Sep 17 00:00:00 2001 From: Cyberes Date: Tue, 10 Sep 2024 18:52:20 -0600 Subject: [PATCH] rename module --- src/geo-backend/manage.py | 2 +- src/geo-backend/{geo_backend/__init__.py => todo.txt} | 0 src/geo-backend/website/__init__.py | 0 src/geo-backend/{geo_backend => website}/asgi.py | 4 ++-- src/geo-backend/{geo_backend => website}/middleware.py | 0 src/geo-backend/{geo_backend => website}/settings.py | 8 ++++---- src/geo-backend/{geo_backend => website}/urls.py | 4 ++-- src/geo-backend/{geo_backend => website}/views.py | 0 src/geo-backend/{geo_backend => website}/wsgi.py | 4 ++-- 9 files changed, 11 insertions(+), 11 deletions(-) rename src/geo-backend/{geo_backend/__init__.py => todo.txt} (100%) create mode 100644 src/geo-backend/website/__init__.py rename src/geo-backend/{geo_backend => website}/asgi.py (72%) rename src/geo-backend/{geo_backend => website}/middleware.py (100%) rename src/geo-backend/{geo_backend => website}/settings.py (95%) rename src/geo-backend/{geo_backend => website}/urls.py (92%) rename src/geo-backend/{geo_backend => website}/views.py (100%) rename src/geo-backend/{geo_backend => website}/wsgi.py (72%) diff --git a/src/geo-backend/manage.py b/src/geo-backend/manage.py index 0a701db..ac2f90c 100755 --- a/src/geo-backend/manage.py +++ b/src/geo-backend/manage.py @@ -6,7 +6,7 @@ import sys def main(): """Run administrative tasks.""" - os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'geo_backend.settings') + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'website.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: diff --git a/src/geo-backend/geo_backend/__init__.py b/src/geo-backend/todo.txt similarity index 100% rename from src/geo-backend/geo_backend/__init__.py rename to src/geo-backend/todo.txt diff --git a/src/geo-backend/website/__init__.py b/src/geo-backend/website/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/geo-backend/geo_backend/asgi.py b/src/geo-backend/website/asgi.py similarity index 72% rename from src/geo-backend/geo_backend/asgi.py rename to src/geo-backend/website/asgi.py index 39d34ac..6defee6 100644 --- a/src/geo-backend/geo_backend/asgi.py +++ b/src/geo-backend/website/asgi.py @@ -1,5 +1,5 @@ """ -ASGI config for geo_backend project. +ASGI config for account 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', 'geo_backend.settings') +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'account.settings') application = get_asgi_application() diff --git a/src/geo-backend/geo_backend/middleware.py b/src/geo-backend/website/middleware.py similarity index 100% rename from src/geo-backend/geo_backend/middleware.py rename to src/geo-backend/website/middleware.py diff --git a/src/geo-backend/geo_backend/settings.py b/src/geo-backend/website/settings.py similarity index 95% rename from src/geo-backend/geo_backend/settings.py rename to src/geo-backend/website/settings.py index 187221d..f6cd13d 100644 --- a/src/geo-backend/geo_backend/settings.py +++ b/src/geo-backend/website/settings.py @@ -1,5 +1,5 @@ """ -Django settings for geo_backend project. +Django settings for account project. Generated by 'django-admin startproject' using Django 5.0.6. @@ -48,10 +48,10 @@ MIDDLEWARE = [ 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', - 'geo_backend.middleware.CustomHeaderMiddleware', + 'account.middleware.CustomHeaderMiddleware', ] -ROOT_URLCONF = 'geo_backend.urls' +ROOT_URLCONF = 'account.urls' TEMPLATES = [ { @@ -69,7 +69,7 @@ TEMPLATES = [ }, ] -WSGI_APPLICATION = 'geo_backend.wsgi.application' +WSGI_APPLICATION = 'account.wsgi.application' # Database # https://docs.djangoproject.com/en/5.0/ref/settings/#databases diff --git a/src/geo-backend/geo_backend/urls.py b/src/geo-backend/website/urls.py similarity index 92% rename from src/geo-backend/geo_backend/urls.py rename to src/geo-backend/website/urls.py index f2cc838..cb0257c 100644 --- a/src/geo-backend/geo_backend/urls.py +++ b/src/geo-backend/website/urls.py @@ -1,5 +1,5 @@ """ -URL configuration for geo_backend project. +URL configuration for account project. The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/5.0/topics/http/urls/ @@ -18,7 +18,7 @@ from django.conf.urls import include from django.contrib import admin from django.urls import path, re_path -from geo_backend.views import index +from account.views import index urlpatterns = [ path('', index), diff --git a/src/geo-backend/geo_backend/views.py b/src/geo-backend/website/views.py similarity index 100% rename from src/geo-backend/geo_backend/views.py rename to src/geo-backend/website/views.py diff --git a/src/geo-backend/geo_backend/wsgi.py b/src/geo-backend/website/wsgi.py similarity index 72% rename from src/geo-backend/geo_backend/wsgi.py rename to src/geo-backend/website/wsgi.py index 8230980..d45caba 100644 --- a/src/geo-backend/geo_backend/wsgi.py +++ b/src/geo-backend/website/wsgi.py @@ -1,5 +1,5 @@ """ -WSGI config for geo_backend project. +WSGI config for account project. It exposes the WSGI callable as a module-level variable named ``application``. @@ -11,6 +11,6 @@ import os from django.core.wsgi import get_wsgi_application -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'geo_backend.settings') +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'account.settings') application = get_wsgi_application()