(r'^art/$', TemplateView.as_view(template_name='public/art.html'), {}, 'page-art'), (r'^svn/$', TemplateView.as_view(template_name='public/svn.html'), {}, 'page-svn'), (r'^donate/$', 'donate', {}, 'page-donate'), (r'^download/$', 'download', {}, 'page-download'), (r'^master-keys/$', 'keys', {}, 'page-keys'), (r'^master-keys/json/$', 'keys_json', {}, 'pgp-keys-json'), (r'^people/(?P<slug>[-\w]+)/$', 'people', {}, 'people'), ) # Feeds patterns, used below feeds_patterns = patterns( '', (r'^$', 'public.views.feeds', {}, 'feeds-list'), (r'^news/$', cache_page(311)(NewsFeed())), (r'^packages/$', cache_page(313)(PackageFeed())), (r'^packages/(?P<arch>[A-z0-9]+)/$', cache_page(313)(PackageFeed())), (r'^packages/all/(?P<repo>[A-z0-9\-]+)/$', cache_page(313)(PackageFeed())), (r'^packages/(?P<arch>[A-z0-9]+)/(?P<repo>[A-z0-9\-]+)/$', cache_page(313)( PackageFeed())), (r'^releases/$', cache_page(317)(ReleaseFeed())), ) # Includes and other remaining stuff urlpatterns += patterns( '', (r'^admin/', include(admin.site.urls)), (r'^devel/', include('devel.urls')), (r'^feeds/', include(feeds_patterns)), (r'^groups/', include('packages.urls_groups')),
url('^search/around/(?P<s>.+)/future$', search.search_around, {'type': 'future'}, name='search-around-future'), url('^search/around/(?P<s>.+)/past$', search.search_around, {'type': 'past'}, name='search-around-past'), url('^search/around/(?P<s>.+)$', search.search_around, name='search-around'), url('^search/parts/(?P<search>.+)$', search.search_parts, name='search-parts'), url('^search$', search.search, name='search'), url('^ajax/autocomplete$', search.search_autocomplete, name='search-autocomplete'), url('^add$', productions.production_add, name='production-add'), url('^profile/edit$', profiles.profile_edit, name='profile-edit'), url('^profile/(?P<username>.*)$', profiles.profile, name='profile'), url('^profile$', profiles.profile_user, name='profile-user'), url('^(?P<url>publicity)/feed$', NewsFeed()), url('^publicity$', news.NewsIndex.as_view(), name='news-index'), url(r'^publicity/(?P<year>\d{4})$', news.NewsYear.as_view(), name='news-year'), url(r'^publicity/(?P<year>\d{4})/(?P<month>\w+)$', news.NewsMonth.as_view(), name='news-month'), url(r'^publicity/(?P<year>\d{4})/(?P<month>\w+)/(?P<slug>[-\w]+)$', news.NewsArticle.as_view(), name='news-entry'), url('^random$', views.random_production, name='random'), # url('forums/forum/', include('forums.django-forum.forum.urls')), # url('forums/simple/', include('forums.django-simpleforum.forum.urls')), # url('forums/bb/', include('forums.djangobb.djangobb.urls')), # url('forums/counterpoint/', include('forums.counterpoint.counterpoint.urls')), url('^lp/day/', include('lp.urls')), ]
url(r'^svn/$', TemplateView.as_view(template_name='public/svn.html'), name='page-svn'), url(r'^donate/$', public.views.donate, name='page-donate'), url(r'^download/$', public.views.download, name='page-download'), url(r'^master-keys/$', public.views.keys, name='page-keys'), url(r'^master-keys/json/$', public.views.keys_json, name='pgp-keys-json'), url(r'^people/(?P<slug>[-\w]+)/$', public.views.people, name='people'), url(r'^security/$', public.views.security, name='security'), ]) # Feeds patterns, used below feeds_patterns = [ url(r'^$', public.views.feeds, name='feeds-list'), url(r'^news/$', cache_page(311)(NewsFeed())), url(r'^packages/$', cache_page(313)(PackageFeed())), url(r'^packages/(added|removed)/$', cache_page(313)(PackageUpdatesFeed())), url(r'^packages/(added|removed)/(?P<arch>[A-z0-9]+)/$', cache_page(313)(PackageUpdatesFeed())), url(r'^packages/(added|removed)/all/(?P<repo>[A-z0-9\-]+)/$', cache_page(313)(PackageUpdatesFeed())), url( r'^packages/(added|removed)/(?P<arch>[A-z0-9]+)/(?P<repo>[A-z0-9\-]+)/$', cache_page(313)(PackageUpdatesFeed())), url(r'^packages/(?P<arch>[A-z0-9]+)/$', cache_page(313)(PackageFeed())), url(r'^packages/all/(?P<repo>[A-z0-9\-]+)/$', cache_page(313)(PackageFeed())),
feeds_news = { 'rss': NewsFeed, } newspapers_info = { 'queryset': News.objects.all(), } sitemap_info = { 'property': GenericSitemap(newspapers_info, priority=0.8), } newspapers_list = url(regex='^news/$', view='real_estate_app.apps.newspapers.views.news_list', kwargs=dict(info_dict, paginate_by=REAL_ESTATE_APP_NUM_LATEST), name='newspapers-list') newspapers_detail = url( regex='^news/(?P<slug>[-\w]+)/$', view='real_estate_app.apps.newspapers.views.news_detail', kwargs=dict(info_dict, slug_field='slug'), name='newspapers-detail') feeds_newspapers_url = url(regex='^news/rss/$', view=NewsFeed(), name='newspapers-feeds') newspapers_sitemap = url(regex='^news/sitemap\.xml$', view='django.contrib.sitemaps.views.sitemap', kwargs=dict(sitemaps=sitemap_info), name='newspapers-sitemap')
path('', public.views.index, name='index'), path('about/', TemplateView.as_view(template_name='public/about.html'), name='page-about'), path('art/', TemplateView.as_view(template_name='public/art.html'), name='page-art'), path('svn/', TemplateView.as_view(template_name='public/svn.html'), name='page-svn'), path('donate/', public.views.donate, name='page-donate'), path('download/', public.views.download, name='page-download'), path('master-keys/', public.views.keys, name='page-keys'), path('master-keys/json/', public.views.keys_json, name='pgp-keys-json'), re_path(r'^people/(?P<slug>[-\w]+)/$', public.views.people, name='people'), path('planet/', planet.views.index, name='planet'), ]) # Feeds patterns, used below feeds_patterns = [ path('', public.views.feeds, name='feeds-list'), path('news/', cache_page(311)(NewsFeed())), path('packages/', cache_page(313)(PackageFeed())), re_path(r'^packages/(added|removed)/$', cache_page(313)(PackageUpdatesFeed())), re_path(r'^packages/(added|removed)/(?P<arch>[A-z0-9]+)/$', cache_page(313)(PackageUpdatesFeed())), re_path(r'^packages/(added|removed)/all/(?P<repo>[A-z0-9\-]+)/$', cache_page(313)(PackageUpdatesFeed())), re_path(r'^packages/(added|removed)/(?P<arch>[A-z0-9]+)/(?P<repo>[A-z0-9\-]+)/$', cache_page(313)(PackageUpdatesFeed())), re_path(r'^packages/(?P<arch>[A-z0-9]+)/$', cache_page(313)(PackageFeed())), re_path(r'^packages/all/(?P<repo>[A-z0-9\-]+)/$', cache_page(313)(PackageFeed())), re_path(r'^packages/(?P<arch>[A-z0-9]+)/(?P<repo>[A-z0-9\-]+)/$', cache_page(313)(PackageFeed())), path('releases/', cache_page(317)(ReleaseFeed())), path('planet/', cache_page(317)(PlanetFeed()), name='planet-feed'), ] # Old planet.archlinux.org redirects, to be removed once people have migrated. urlpatterns.extend([
'base': sitemaps.BaseSitemap, 'news': sitemaps.NewsSitemap, 'packages': sitemaps.PackagesSitemap, 'package-files': sitemaps.PackageFilesSitemap, 'package-groups': sitemaps.PackageGroupsSitemap, 'split-packages': sitemaps.SplitPackagesSitemap, } admin.autodiscover() urlpatterns = [] # Feeds patterns, used later feeds_patterns = patterns( '', (r'^$', 'public.views.feeds', {}, 'feeds-list'), (r'^news/$', NewsFeed()), (r'^packages/$', PackageFeed()), (r'^packages/(?P<arch>[A-z0-9]+)/$', PackageFeed()), (r'^packages/(?P<arch>[A-z0-9]+)/(?P<repo>[A-z0-9\-]+)/$', PackageFeed()), ) # Sitemaps urlpatterns += patterns( 'django.contrib.sitemaps.views', # Thanks Django, we can't cache these longer because of # https://code.djangoproject.com/ticket/2713 (r'^sitemap.xml$', 'index', { 'sitemaps': our_sitemaps }), (r'^sitemap-(?P<section>.+)\.xml$', 'sitemap', { 'sitemaps': our_sitemaps