Basic textbook functionality

This commit is contained in:
Piotr Mitros
2011-12-23 16:43:14 -05:00
parent f06ba966ea
commit e25939acc3
2 changed files with 2 additions and 0 deletions

View File

@@ -102,6 +102,7 @@ INSTALLED_APPS = (
'auth',
'django.contrib.humanize',
'static_template_view',
'textbook',
# Uncomment the next line to enable the admin:
# 'django.contrib.admin',
# Uncomment the next line to enable admin documentation:

View File

@@ -18,6 +18,7 @@ urlpatterns = patterns('',
# url(r'^accounts/register/$', 'registration.views.register', {'success_url':'/accounts/register/complete'}),
# url(r'^accounts/', include('registration.urls')),
url(r'^t/(?P<template>[^/]*)$', 'static_template_view.views.index'),
url(r'^textbook/(?P<filename>[^/]*)$', 'textbook.views.index'),
url(r'^logout$', 'auth.views.logout_user'),
url(r'^login$', 'auth.views.login_user'),
url(r'^login/(?P<error>[^/]*)$', 'auth.views.login_user'),