Skip to content

Commit

Permalink
Mised commit
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinetavant committed Sep 11, 2024
1 parent 6baec79 commit c2e11a2
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/webapp/webapp/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"""
URL configuration for webapp project.
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/5.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.urls import path
from core import views

urlpatterns = [
path('admin/', admin.site.urls),
path('', views.landing_page, name='landing_page'),
path('check-and-load-data/', views.check_and_load_data, name='check_and_load_data'),

path('login/', auth_views.LoginView.as_view(), name='login'),
path('logout/', auth_views.LogoutView.as_view(), name='logout'),
]
16 changes: 16 additions & 0 deletions src/webapp/webapp/wsgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""
WSGI config for webapp project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/5.1/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'webapp.settings')

application = get_wsgi_application()

0 comments on commit c2e11a2

Please sign in to comment.