rollback renaming Serwer_django package to config

This commit is contained in:
mnajborowski 2022-01-25 16:23:46 +01:00
parent 76cceaaec2
commit 5509f81818
8 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
""" """
ASGI config for Serwer_django project. ASGI Serwer_django for Serwer_django project.
It exposes the ASGI callable as a module-level variable named ``application``. 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 from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Serwer_django.settings')
application = get_asgi_application() application = get_asgi_application()

View File

@ -49,7 +49,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware',
] ]
ROOT_URLCONF = 'config.urls' ROOT_URLCONF = 'Serwer_django.urls'
TEMPLATES = [ TEMPLATES = [
{ {
@ -68,7 +68,7 @@ TEMPLATES = [
}, },
] ]
WSGI_APPLICATION = 'config.wsgi.application' WSGI_APPLICATION = 'Serwer_django.wsgi.application'
# Database # Database

View File

@ -1,7 +1,7 @@
from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.urls import reverse_lazy from django.urls import reverse_lazy
from django.views import generic from django.views import generic
from django_registration.forms import User
class SignUpForm(UserCreationForm): class SignUpForm(UserCreationForm):

View File

@ -1,5 +1,5 @@
""" """
WSGI config for Serwer_django project. WSGI Serwer_django for Serwer_django project.
It exposes the WSGI callable as a module-level variable named ``application``. 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 from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Serwer_django.settings')
application = get_wsgi_application() application = get_wsgi_application()

Binary file not shown.

View File

@ -6,7 +6,7 @@ import sys
def main(): def main():
"""Run administrative tasks.""" """Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Serwer_django.settings')
try: try:
from django.core.management import execute_from_command_line from django.core.management import execute_from_command_line
except ImportError as exc: except ImportError as exc: