Created homepage

This commit is contained in:
Kristofers Solo
2022-08-06 15:23:04 +03:00
parent 1246524262
commit b5d3e8258e
14 changed files with 258 additions and 5 deletions

0
main/__init__.py Normal file
View File

3
main/admin.py Normal file
View File

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

6
main/apps.py Normal file
View File

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

View File

3
main/models.py Normal file
View File

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

3
main/tests.py Normal file
View File

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

6
main/urls.py Normal file
View File

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

6
main/views.py Normal file
View File

@@ -0,0 +1,6 @@
from django.shortcuts import render
def index(request):
"""Homepage"""
return render(request, 'main/index.html', {'title': 'Homepage'})