You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
675 B

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