1from django.conf import urls 2from autotest_lib.frontend import settings, urls_common 3from autotest_lib.frontend.afe.feeds import feed 4 5feeds = { 6 'jobs' : feed.JobFeed 7} 8 9urlpatterns, debug_patterns = ( 10 urls_common.generate_patterns('frontend.afe', 'AfeClient')) 11 12# File upload 13urlpatterns += urls.patterns( 14 '', (r'^upload/', 'frontend.afe.views.handle_file_upload')) 15 16# Job feeds 17debug_patterns += urls.patterns( 18 '', 19 (r'^model_doc/', 'frontend.afe.views.model_documentation'), 20 (r'^feeds/(?P<url>.*)/$', 'frontend.afe.feeds.feed.feed_view', 21 {'feed_dict': feeds}) 22 ) 23 24if settings.DEBUG: 25 urlpatterns += debug_patterns 26