Commit b2790667 authored by Jason D Yeomans's avatar Jason D Yeomans
Browse files

Attempting templates and making the front end

parent a2b5f694
......@@ -46,6 +46,7 @@ INSTALLED_APPS = (
'django.contrib.messages',
'django.contrib.staticfiles',
'api',
'roomlist',
)
MIDDLEWARE_CLASSES = (
......
......@@ -7,6 +7,7 @@ urlpatterns = patterns('',
# Examples:
# url(r'^$', 'django_project.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^$', include('roomlist.urls')),
url(r'^api/', include('api.urls')),
url(r'^admin/', include(admin.site.urls)),
)
from django.contrib import admin
# Register your models here.
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.conf.urls import patterns, include, url
from django_app import views
from roomlist import views
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
)
from django.http import HttpResponse
from django.shortcuts import render
from django.template import RequestContext, loader
from api.models import Building, Room
# Create your views here.
def index(request):
template = loader.get_template('index.html')
context = RequestContext(request, {
})
return HttpResponse(template.render(context))
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