Started to implement the homepage banner images

This commit is contained in:
Oly 2017-02-10 14:10:54 +00:00
parent 87336bc3f5
commit 5b5612d550
4 changed files with 12 additions and 2 deletions

View File

@ -193,7 +193,7 @@ LOGGING = {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'verbose',00
'formatter': 'verbose',
},
'logfile': {
'level':'DEBUG',

View File

@ -1,5 +1,6 @@
from autofixture import AutoFixture
from django.core.management.base import BaseCommand
from mhackspace.base.models import BannerImages
from mhackspace.feeds.models import Article, Feed
from mhackspace.users.models import User
@ -17,6 +18,9 @@ class Command(BaseCommand):
feeds = AutoFixture(Article)
feeds.create(10)
banners = AutoFixture(BannerImages)
banners.create(10)
self.stdout.write(
self.style.SUCCESS(
'Finished creating test data'))

View File

@ -1,7 +1,13 @@
{% extends "base.html" %}
{% load feed_views %}
{% load banner_images %}
{% load static from staticfiles %}
{% block content %}
<img src="{% static 'images/logo.svg' %}" class="img-fluid" alt="Responsive image">
{% show_banner_images %}
<h2>Introduction</h2>
<p>Hackspaces are a shared space where artists, designers, makers, hackers, programmers, tinkerers, professionals and hobbyists can work on their projects, share knowledge and collaborate.We are in the process of developing Maidstone Hackspace. We're previous members of (ICMP) and looking to form a new space in the future. At the moment, communication is via google groups, email, and the website. If you're at all intrested please join our mailing list and make yourself known!</p>