create template for frontend

This commit is contained in:
Barunes Padhy 2024-06-09 18:40:01 +03:00
parent 52592fde36
commit 764aa04390
3 changed files with 15 additions and 11 deletions

View File

@ -66,7 +66,7 @@ ROOT_URLCONF = 'backend.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, '../frontend/editable-ui/dist')],
'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [

View File

@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/data/homepage/media/profile.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Rangolio</title>
<script type="module" crossorigin src="/static/assets/index-uRyT0dMm.js"></script>
<link rel="stylesheet" crossorigin href="/static/assets/index-B5nZdjgX.css">
</head>
<body>
<div id="root"></div>
</body>
</html>

View File

@ -1,10 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<h1>Hi</h1>
</body>
</html>