cleanup and slight nav-bar additions.
Some checks failed
Gitea Test. / tests (push) Failing after 3s
Some checks failed
Gitea Test. / tests (push) Failing after 3s
This commit is contained in:
4
src/gallery/templates/gallery/index.html
Normal file
4
src/gallery/templates/gallery/index.html
Normal 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
9
src/gallery/urls.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
from django.urls import path
|
||||||
|
|
||||||
|
from . import views
|
||||||
|
|
||||||
|
app_name = "gallery"
|
||||||
|
|
||||||
|
urlpatterns = [
|
||||||
|
path("", views.index, name="index"),
|
||||||
|
]
|
||||||
@@ -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
@@ -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"),
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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),
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user