From ea737ed4654f6500f3d09570486025993abdc449 Mon Sep 17 00:00:00 2001 From: David Kerkeslager Date: Thu, 25 Feb 2021 11:54:06 -0500 Subject: [PATCH] Move the project into its own core app --- {tickle => core}/__init__.py | 0 {tickle => core}/asgi.py | 4 ++-- {tickle => core}/settings.py | 6 +++--- {tickle => core}/urls.py | 2 +- {tickle => core}/wsgi.py | 4 ++-- manage.py | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) rename {tickle => core}/__init__.py (100%) rename {tickle => core}/asgi.py (74%) rename {tickle => core}/settings.py (96%) rename {tickle => core}/urls.py (96%) rename {tickle => core}/wsgi.py (74%) diff --git a/tickle/__init__.py b/core/__init__.py similarity index 100% rename from tickle/__init__.py rename to core/__init__.py diff --git a/tickle/asgi.py b/core/asgi.py similarity index 74% rename from tickle/asgi.py rename to core/asgi.py index a6faf3a..99c11e6 100644 --- a/tickle/asgi.py +++ b/core/asgi.py @@ -1,5 +1,5 @@ """ -ASGI config for tickle 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', 'tickle.settings') +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings') application = get_asgi_application() diff --git a/tickle/settings.py b/core/settings.py similarity index 96% rename from tickle/settings.py rename to core/settings.py index 4a5a4ba..3caa931 100644 --- a/tickle/settings.py +++ b/core/settings.py @@ -1,5 +1,5 @@ """ -Django settings for tickle project. +Django settings for core project. Generated by 'django-admin startproject' using Django 3.1.7. @@ -49,7 +49,7 @@ MIDDLEWARE = [ 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] -ROOT_URLCONF = 'tickle.urls' +ROOT_URLCONF = 'core.urls' TEMPLATES = [ { @@ -67,7 +67,7 @@ TEMPLATES = [ }, ] -WSGI_APPLICATION = 'tickle.wsgi.application' +WSGI_APPLICATION = 'core.wsgi.application' # Database diff --git a/tickle/urls.py b/core/urls.py similarity index 96% rename from tickle/urls.py rename to core/urls.py index 91f9bd9..f0559db 100644 --- a/tickle/urls.py +++ b/core/urls.py @@ -1,4 +1,4 @@ -"""tickle URL Configuration +"""core URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ diff --git a/tickle/wsgi.py b/core/wsgi.py similarity index 74% rename from tickle/wsgi.py rename to core/wsgi.py index 8797fc2..24617d3 100644 --- a/tickle/wsgi.py +++ b/core/wsgi.py @@ -1,5 +1,5 @@ """ -WSGI config for tickle project. +WSGI config for core 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', 'tickle.settings') +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings') application = get_wsgi_application() diff --git a/manage.py b/manage.py index 306e4b6..f2a662c 100755 --- a/manage.py +++ b/manage.py @@ -6,7 +6,7 @@ import sys def main(): """Run administrative tasks.""" - os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tickle.settings') + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: -- 2.20.1