{{ page.heading }}
-- {{ page.content|safe }} -
-From 830ce9396c6ce97dcbcb5e79484545efbd4276e1 Mon Sep 17 00:00:00 2001 From: Akshen Date: Mon, 24 Jul 2017 14:47:01 +0530 Subject: NavBar reset to leftside --- pyfoss/settings.py | 9 +- website/templates/website/page.html | 400 +++++++++++++++++++++++------------- 2 files changed, 259 insertions(+), 150 deletions(-) diff --git a/pyfoss/settings.py b/pyfoss/settings.py index d676b4a..6670a04 100644 --- a/pyfoss/settings.py +++ b/pyfoss/settings.py @@ -12,7 +12,7 @@ BASE_DIR = dirname(dirname(abspath(__file__))) # Django settings for pyfoss project. DEBUG = True -TEMPLATE_DEBUG = DEBUG + ADMINS = ( # ('Your Name', 'your_email@example.com'), @@ -139,6 +139,7 @@ TEMPLATES = [ ] + MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', @@ -154,12 +155,6 @@ ROOT_URLCONF = 'pyfoss.urls' # Python dotted path to the WSGI application used by Django's runserver. WSGI_APPLICATION = 'pyfoss.wsgi.application' -TEMPLATE_DIRS = ( - # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". - # Always use forward slashes, even on Windows. - # Don't forget to use absolute paths, not relative paths. - PROJECT_DIR + '/static/', -) INSTALLED_APPS = ( 'django.contrib.auth', diff --git a/website/templates/website/page.html b/website/templates/website/page.html index cebac2c..7e44ee5 100644 --- a/website/templates/website/page.html +++ b/website/templates/website/page.html @@ -1,154 +1,268 @@ + {% load static %} -
-- {{ page.content|safe }} -
-+ {% if page.content %} + {{ page.content|safe }} + {% endif %} +
++
Name | +Start Date | +Venue | +No of Participants | ++ |
---|---|---|---|---|
{{ b.w_name }} | +{{ b.startdate }} | +{{ b.venue }} | +{{ b.no_of_participant }} | +Details | +
+ {{ page.content|safe }} +
+