Skip to content

Commit 5fa1a8c

Browse files
committed
change config
1 parent 934d177 commit 5fa1a8c

17 files changed

+27
-59
lines changed
-182 Bytes
Binary file not shown.

api/__pycache__/admin.cpython-310.pyc

-223 Bytes
Binary file not shown.

api/__pycache__/apps.cpython-310.pyc

-455 Bytes
Binary file not shown.
-220 Bytes
Binary file not shown.

api/__pycache__/urls.cpython-310.pyc

-291 Bytes
Binary file not shown.

api/__pycache__/views.cpython-310.pyc

-541 Bytes
Binary file not shown.

api/admin.py

-3
This file was deleted.

config/asgi.py api/asgi.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
ASGI config for config project.
2+
ASGI config for api project.
33
44
It exposes the ASGI callable as a module-level variable named ``application``.
55
@@ -11,6 +11,6 @@
1111

1212
from django.core.asgi import get_asgi_application
1313

14-
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
14+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'api.settings')
1515

1616
application = get_asgi_application()

api/models.py

-3
This file was deleted.

config/settings.py api/settings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
STATIC_URL = '/static/'
6060

61-
ROOT_URLCONF = 'config.urls'
61+
ROOT_URLCONF = 'api.urls'
6262

6363
ALLOWED_HOSTS = ['*']
6464

@@ -75,7 +75,7 @@
7575
'rest_framework',
7676
]
7777

78-
WSGI_APPLICATION = 'config.wsgi.application'
78+
WSGI_APPLICATION = 'api.wsgi.application'
7979

8080
AWS_ACCESS_KEY_ID = config('AWS_ACCESS_KEY_ID')
8181

api/urls.py

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
1-
from django.urls import path
1+
"""api URL Configuration
2+
3+
The `urlpatterns` list routes URLs to views. For more information please see:
4+
https://docs.djangoproject.com/en/4.0/topics/http/urls/
5+
Examples:
6+
Function views
7+
1. Add an import: from my_app import views
8+
2. Add a URL to urlpatterns: path('', views.home, name='home')
9+
Class-based views
10+
1. Add an import: from other_app.views import Home
11+
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
12+
Including another URLconf
13+
1. Import the include() function: from django.urls import include, path
14+
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
15+
"""
16+
from django.contrib import admin
17+
from django.urls import path, include
218
from .views import test
319

20+
421
urlpatterns = [
522
path('test', test),
623
]

api/utils.py

-21
This file was deleted.

config/wsgi.py api/wsgi.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
WSGI config for config project.
2+
WSGI config for api project.
33
44
It exposes the WSGI callable as a module-level variable named ``application``.
55
@@ -11,6 +11,6 @@
1111

1212
from django.core.wsgi import get_wsgi_application
1313

14-
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
14+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'api.settings')
1515

1616
application = get_wsgi_application()

config/__init__.py

Whitespace-only changes.

config/urls.py

-22
This file was deleted.

manage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
def main():
88
"""Run administrative tasks."""
9-
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
9+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'api.settings')
1010
try:
1111
from django.core.management import execute_from_command_line
1212
except ImportError as exc:

zappa_settings.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"prod": {
33
"aws_region": "eu-central-1",
4-
"django_settings": "config.settings",
5-
"project_name": "config",
4+
"django_settings": "api.settings",
5+
"project_name": "api",
66
"runtime": "python3.10",
77
"s3_bucket": "zappa-attendunce"
88
}

0 commit comments

Comments
 (0)