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 = ( ...@@ -46,6 +46,7 @@ INSTALLED_APPS = (
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'api', 'api',
'roomlist',
) )
MIDDLEWARE_CLASSES = ( MIDDLEWARE_CLASSES = (
......
...@@ -7,6 +7,7 @@ urlpatterns = patterns('', ...@@ -7,6 +7,7 @@ urlpatterns = patterns('',
# Examples: # Examples:
# url(r'^$', 'django_project.views.home', name='home'), # url(r'^$', 'django_project.views.home', name='home'),
# url(r'^blog/', include('blog.urls')), # url(r'^blog/', include('blog.urls')),
url(r'^$', include('roomlist.urls')),
url(r'^api/', include('api.urls')), url(r'^api/', include('api.urls')),
url(r'^admin/', include(admin.site.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.conf.urls import patterns, include, url
from django_app import views from roomlist import views
from django.contrib import admin from django.contrib import admin
admin.autodiscover() admin.autodiscover()
urlpatterns = patterns('', 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