This commit is contained in:
alydev 2024-05-09 16:50:41 +10:00
commit bf6153d028
No known key found for this signature in database
GPG key ID: F4D2C7A426DDA1BD
28 changed files with 537 additions and 0 deletions

0
home/__init__.py Normal file
View file

3
home/admin.py Normal file
View file

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

6
home/apps.py Normal file
View file

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

View file

3
home/models.py Normal file
View file

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

3
home/tests.py Normal file
View file

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

7
home/urls.py Normal file
View file

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

6
home/views.py Normal file
View file

@ -0,0 +1,6 @@
from django.shortcuts import render, redirect
#from django.http import HttpResponse
# Create your views here.
def index(request):
return redirect("/me/")