Refactor project structure: remove 'home' app and create 'front' app with updated templates, views, and URLs
This commit is contained in:
parent
97e8cf465c
commit
269ee8cbce
11 changed files with 6 additions and 18 deletions
0
front/__init__.py
Normal file
0
front/__init__.py
Normal file
9
front/templates/index.html
Normal file
9
front/templates/index.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ title }}</h1>
|
||||
</body>
|
||||
</html>
|
||||
3
front/tests.py
Normal file
3
front/tests.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
6
front/urls.py
Normal file
6
front/urls.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.index, name='index'),
|
||||
]
|
||||
5
front/views.py
Normal file
5
front/views.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from django.shortcuts import render
|
||||
|
||||
def index(request):
|
||||
context = {'title': 'OpenREKO'}
|
||||
return render(request, 'index.html', context)
|
||||
Loading…
Add table
Add a link
Reference in a new issue