Commit e25939ac by Piotr Mitros

Basic textbook functionality

parent f06ba966
...@@ -102,6 +102,7 @@ INSTALLED_APPS = ( ...@@ -102,6 +102,7 @@ INSTALLED_APPS = (
'auth', 'auth',
'django.contrib.humanize', 'django.contrib.humanize',
'static_template_view', 'static_template_view',
'textbook',
# Uncomment the next line to enable the admin: # Uncomment the next line to enable the admin:
# 'django.contrib.admin', # 'django.contrib.admin',
# Uncomment the next line to enable admin documentation: # Uncomment the next line to enable admin documentation:
......
...@@ -18,6 +18,7 @@ urlpatterns = patterns('', ...@@ -18,6 +18,7 @@ urlpatterns = patterns('',
# url(r'^accounts/register/$', 'registration.views.register', {'success_url':'/accounts/register/complete'}), # url(r'^accounts/register/$', 'registration.views.register', {'success_url':'/accounts/register/complete'}),
# url(r'^accounts/', include('registration.urls')), # url(r'^accounts/', include('registration.urls')),
url(r'^t/(?P<template>[^/]*)$', 'static_template_view.views.index'), 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'^logout$', 'auth.views.logout_user'),
url(r'^login$', 'auth.views.login_user'), url(r'^login$', 'auth.views.login_user'),
url(r'^login/(?P<error>[^/]*)$', 'auth.views.login_user'), url(r'^login/(?P<error>[^/]*)$', 'auth.views.login_user'),
......
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