Commit 49de88d0 authored by Eury See's avatar Eury See

Fixed extends base.html for forum templates.

parent a21d3721
No preview for this file type
{% extends 'base.html' %}
{% load static %}
{% block title %}Widget's Forum{% endblock %}
{% block styles %}
<style>
body {
background-color: rgb(253, 222, 207);
font-family: Georgia, serif;
font-size: 16px;
color: rgb(206, 132, 100);
}
</style>
{% endblock %}
{% block content %}
<div style="text-align: center;">
<h1>Welcome to Widget's Forum</h1>
</div>
<p1>Forum posts:</p1>
{% for post in posts %}
<li><a href="{% url 'Forum:forumpost-details' pk=post.pk %}">{{ post.title }} by {{ post.author }}</a></li>
{% endfor %}
<br>
<button type="submit">
<a href="{% url 'Forum:forumpost-add' %}">New Post</a>
</button>
<br>
<br>
<a href="http://127.0.0.1:8000/Dashboard/dashboard">Dashboard</a>
<br>
<a href="http://127.0.0.1:8000/Announcements/announcements">Announcements</a>
<br>
<a href="http://127.0.0.1:8000/Assignments/assignments">Assignments</a>
<br>
<a href="http://127.0.0.1:8000/widgetcalendar/calendar">Calendar</a>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% load static %}
<title>{% block title %}Widget's Forum{% endblock %}</title> <title>{% block title %}Widget's Forum{% endblock %}</title>
{% block styles %} {% block styles %}
......
<title>{% block title %} Add Post {% endblock %}</title> {% extends 'base.html' %}
{% load static %}
{% block title %} Add Post {% endblock %}
{% block styles %} {% block styles %}
<style> <style>
......
<title>{% block title %} {{object.title}} {% endblock %}</title> {% extends 'base.html' %}
{% load static %}
{% block title %} {{object.title}} {% endblock %}
{% block styles %} {% block styles %}
<style> <style>
......
<title>{% block title %} Edit Post {% endblock %}</title> {% extends 'base.html' %}
{% load static %}
{% block title %} Edit Post {% endblock %}
{% block styles %} {% block styles %}
<style> <style>
body { body {
......
...@@ -62,7 +62,6 @@ TEMPLATES = [ ...@@ -62,7 +62,6 @@ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'template')], 'DIRS': [os.path.join(BASE_DIR, 'template')],
'DIRS': [],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment