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
|
||||
|
||||
# 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
|
||||
|
||||
app_name = "polls"
|
||||
|
||||
urlpatterns = [
|
||||
# ex: /polls/
|
||||
path("", views.index, name="index"),
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
<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 -->
|
||||
</nav>
|
||||
|
||||
@@ -35,6 +35,7 @@ SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
||||
INSTALLED_APPS = [
|
||||
"polls.apps.PollsConfig",
|
||||
"core.apps.CoreConfig",
|
||||
"gallery.apps.GalleryConfig",
|
||||
"django.contrib.admin",
|
||||
"django.contrib.auth",
|
||||
"django.contrib.contenttypes",
|
||||
|
||||
@@ -23,6 +23,7 @@ from django.urls import include, path
|
||||
urlpatterns = [
|
||||
path("", include("core.urls")),
|
||||
path("polls/", include("polls.urls")),
|
||||
path("gallery/", include("gallery.urls")),
|
||||
path("admin/doc/", include("django.contrib.admindocs.urls")),
|
||||
path("admin/", admin.site.urls),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user