from django.conf import urls from autotest_lib.frontend import settings, urls_common from autotest_lib.frontend.afe.feeds import feed feeds = { 'jobs' : feed.JobFeed } urlpatterns, debug_patterns = ( urls_common.generate_patterns('frontend.afe', 'AfeClient')) # File upload urlpatterns += urls.patterns( '', (r'^upload/', 'frontend.afe.views.handle_file_upload')) # Job feeds debug_patterns += urls.patterns( '', (r'^model_doc/', 'frontend.afe.views.model_documentation'), (r'^feeds/(?P<url>.*)/$', 'frontend.afe.feeds.feed.feed_view', {'feed_dict': feeds}) ) if settings.DEBUG: urlpatterns += debug_patterns