created login django app

This commit is contained in:
CDaut 2022-05-29 17:50:26 +02:00 committed by CDaut
parent c208f4adff
commit 22b616082b
13 changed files with 65 additions and 20 deletions

View file

View file

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View file

@ -0,0 +1,6 @@
from django.apps import AppConfig
class LoginConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'login'

View file

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

View file

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

View file

@ -0,0 +1,6 @@
from django.urls import path
from login.views import loginview
urlpatterns = [
path('login/', loginview)
]

View file

@ -0,0 +1,6 @@
from django.shortcuts import render
# Create your views here.
def loginview(request):
return render(request, 'login/login.html')