Fix old code

This commit is contained in:
Andros Fenollosa
2023-07-21 10:07:51 +02:00
parent 2f6a158e81
commit 516483c865
11 changed files with 14 additions and 14 deletions

0
app/public/__init__.py Normal file
View File

3
app/public/admin.py Normal file
View File

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

6
app/public/apps.py Normal file
View File

@ -0,0 +1,6 @@
from django.apps import AppConfig
class PublicConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "app.public"

View File

3
app/public/models.py Normal file
View File

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

7
app/public/urls.py Normal file
View File

@ -0,0 +1,7 @@
from django.urls import path
from app.public.views import home
urlpatterns = [
path("", home, name="home"),
]

5
app/public/views.py Normal file
View File

@ -0,0 +1,5 @@
from django.shortcuts import render
# Create your views here.
def home(request):
return render(request, "home.html")