from django_de.apps.documentation.utils import get_absolute_document_urls from django_de.utils import cache_status from django_de.apps.ticker.forms import BetterFreeThreadedCommentForm from threadedcomments import views as tc_views static_urls = ( '/', '/trac/', '/authors/', '/download/', '/imprint/', '/participate/', '/documentation/', ) + get_absolute_document_urls() sitemaps = { 'static': StaticFileSitemap(static_urls, priority=0.5, changefreq='daily') } admin.autodiscover() urlpatterns = patterns('', (r'^$', direct_to_template, {'template': 'homepage.html'}), (r'^download/', direct_to_template, {'template': 'download.html'}), (r'^imprint/', direct_to_template, {'template': 'impressum.html'}), (r'^participate/', direct_to_template, {'template': 'participate.html'}), (r'^admin/(.*)', admin.site.root), (r'^documentation/', include('django_de.apps.documentation.urls')), (r'^news/', include('django_de.apps.ticker.urls')),
def handle_noargs(self, **options): for path in get_absolute_document_urls() + ('/', '/documentation/'): try: quick_publish(path) except StaticGeneratorException: pass