Fix old code
This commit is contained in:
0
app/public/__init__.py
Normal file
0
app/public/__init__.py
Normal file
3
app/public/admin.py
Normal file
3
app/public/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
app/public/apps.py
Normal file
6
app/public/apps.py
Normal file
@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class PublicConfig(AppConfig):
|
||||
default_auto_field = "django.db.models.BigAutoField"
|
||||
name = "app.public"
|
0
app/public/migrations/__init__.py
Normal file
0
app/public/migrations/__init__.py
Normal file
3
app/public/models.py
Normal file
3
app/public/models.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
7
app/public/urls.py
Normal file
7
app/public/urls.py
Normal 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
5
app/public/views.py
Normal file
@ -0,0 +1,5 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
def home(request):
|
||||
return render(request, "home.html")
|
Reference in New Issue
Block a user