예제 #1
0
from tartarus.django.conf.settings.pico import *
from tartarus.django.resources import Resource, View, autodiscover


class Home(Resource):
    pattern = ""

    class Default(View):
        template_name = "home.html"

        def get_context_data(self, **kwargs):
            return {"project_name": PROJECT_NAME}


urlpatterns += autodiscover()
예제 #2
0
from django.conf.urls.defaults import patterns, include, url
from tartarus.django import resources

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'example.views.home', name='home'),
    # url(r'^example/', include('example.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
)


urlpatterns += resources.autodiscover()