error reporting
[redakcja.git] / apps / forms_builder / example_project / urls.py
1 from __future__ import unicode_literals
2
3 from django.conf.urls import patterns, include, url
4 from django.contrib import admin
5 from django.shortcuts import render
6
7 from forms_builder.forms.models import Form
8 from forms_builder.forms import urls as form_urls
9
10
11 admin.autodiscover()
12
13 urlpatterns = patterns('',
14     url(r'^admin/', include(admin.site.urls)),
15     url(r'^forms/', include(form_urls)),
16     url(r'^$', lambda request: render(request, "index.html",
17                                       {"forms": Form.objects.all()})),
18 )