Ejemplo n.º 1
0
def plants(request, section='index'):
    plants = [
        {
            'name': 'Sweet Woodruff',
            'description': {
                'Grow': 'Perennial, 8"-12" in height, blooms spring to summer',
                'Sun': 'Shade',
                'Soil': 'Well-drained, slightly acidic',
                'Water': 'More watering will promote spread, drought tolerant',
                'Harvesting': 'Harvest leaves right after bloom',
                'Use': 'Dry and can lend fragrance to linens, sachets and potpourris',
            },
            'image': 'IMG_2631.jpg',
        }
    ]*3
    
    response = {
        'page': 'plants',
        'section': section,
        'plants': plants,
    }
    return template_response('plants.html', response, request)
Ejemplo n.º 2
0
def services(request):
    response = {
        'page': 'services'
    }
    return template_response('services.html', response, request)
Ejemplo n.º 3
0
def contact(request):
    response = {
        'page': 'contact'
    }
    return template_response('contact.html', response, request)
Ejemplo n.º 4
0
def about(request):
    response = {
        'page': 'about'
    }
    return template_response('about.html', response, request)
Ejemplo n.º 5
0
def index(request):
    response = {
        'page': 'index'
    }
    return template_response('index.html', response, request)