Added main page. Added links page

This commit is contained in:
2022-07-11 17:08:47 +03:00
parent a8f86ef882
commit 0a3c0e1e50
28 changed files with 504 additions and 18 deletions
View File
+3
View File
@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.
+6
View File
@@ -0,0 +1,6 @@
from django.apps import AppConfig
class LinksConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'links'
View File
+3
View File
@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.
+18
View File
@@ -0,0 +1,18 @@
{% extends 'main/pagetemplate.html' %}
{% block pagetitle %}
Полезные ссылки
{% endblock %}
{% block content %}
<div class="linkspage">
<h1>Полезные ссылки</h1>
<ul>
<li><a href="https://drive.google.com/drive/folders/1GgZ5pwoZEv9AwnsgfSLYpTIP0MtFsez_">Записи игр по Драконьему кушу (Google Drive)</a></li>
<li><a href="https://disk.yandex.ru/d/A9vQyEO6W_kZVg">Записи игр по Драконьему кушу (Яндекс Диск)</a></li>
<li><a href="https://hobbyworld.ru//download/rules/DnD_character_list.pdf">Лист персонажа (документ PDF)</a></li>
<li><a href="https://hobbyworld.ru//download/rules/Glossary5E_2.xlsx">Глоссарий (книга Excel)</a></li>
</ul>
</div>
{% endblock %}
+3
View File
@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.
+8
View File
@@ -0,0 +1,8 @@
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
]
+5
View File
@@ -0,0 +1,5 @@
from django.shortcuts import render
def index(request):
return render(request, 'links/index.html')