1 from __future__ import unicode_literals
3 from django.conf.urls import patterns, include, url
4 from django.contrib import admin
5 from django.shortcuts import render
7 from forms_builder.forms.models import Form
8 from forms_builder.forms import urls as form_urls
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()})),