Compare commits

..

1 Commits

Author SHA1 Message Date
Wouter Vermeer
99c0b4ae6d cleanup and slight nav-bar additions.
Some checks failed
Gitea Test. / tests (push) Failing after 3s
2026-04-30 19:33:22 +02:00
8 changed files with 25 additions and 660 deletions

View File

@@ -0,0 +1,4 @@
{% extends "base.html" %}
{% load static %}
{% block title %}Home{% endblock %}
{% block content %}<h1>Welcome</h1>{% endblock %}

9
src/gallery/urls.py Normal file
View File

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

View File

@@ -1,3 +1,5 @@
from django.shortcuts import render from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, "gallery/index.html")

File diff suppressed because one or more lines are too long

View File

@@ -2,6 +2,8 @@ from django.urls import path
from . import views from . import views
app_name = "polls"
urlpatterns = [ urlpatterns = [
# ex: /polls/ # ex: /polls/
path("", views.index, name="index"), path("", views.index, name="index"),

View File

@@ -1,4 +1,8 @@
<nav> <nav>
<a href="{% url 'core:index' %}">Home</a> <ul>
<li><a href="{% url 'core:index' %}">Home</a></li>
<li><a href="{% url 'polls:index' %}">Polls</a></li>
<li><a href="{% url 'gallery:index' %}">Gallery</a></li>
</ul>
<!-- rest of your topbar --> <!-- rest of your topbar -->
</nav> </nav>

View File

@@ -35,6 +35,7 @@ SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
INSTALLED_APPS = [ INSTALLED_APPS = [
"polls.apps.PollsConfig", "polls.apps.PollsConfig",
"core.apps.CoreConfig", "core.apps.CoreConfig",
"gallery.apps.GalleryConfig",
"django.contrib.admin", "django.contrib.admin",
"django.contrib.auth", "django.contrib.auth",
"django.contrib.contenttypes", "django.contrib.contenttypes",

View File

@@ -23,6 +23,7 @@ from django.urls import include, path
urlpatterns = [ urlpatterns = [
path("", include("core.urls")), path("", include("core.urls")),
path("polls/", include("polls.urls")), path("polls/", include("polls.urls")),
path("gallery/", include("gallery.urls")),
path("admin/doc/", include("django.contrib.admindocs.urls")), path("admin/doc/", include("django.contrib.admindocs.urls")),
path("admin/", admin.site.urls), path("admin/", admin.site.urls),
] ]