url(r'^wipe/(?P<project_slug>[-\w]+)/(?P<version_slug>[\w]{1}[-\w\.]+)/$', 'core.views.wipe_version', name='wipe_version'), url(r'^profiles/create/', 'profiles.views.create_profile', {'form_class': UserProfileForm}, name='profiles_profile_create'), url(r'^profiles/edit/', 'profiles.views.edit_profile', {'form_class': UserProfileForm}, name='profiles_profile_edit'), url(r'^profiles/', include('profiles.urls')), url(r'^api/', include(v1_api.urls)), url(r'^api/v2/', include(router.urls)), url(r'^api/v2/', include('restapi.urls')), url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')), url(r'^feeds/new/$', NewProjectsFeed(), name="new_feed"), url(r'^feeds/latest/$', LatestProjectsFeed(), name="latest_feed"), url(r'^mlt/(?P<project_slug>[-\w]+)/(?P<filename>.*)$', 'core.views.morelikethis', name='morelikethis'), url(r'^websupport/', include('websupport.urls')), ) if settings.DEBUG: urlpatterns += patterns( '', # base view, flake8 complains if it is on the previous line. url('style-catalog/$', 'django.views.generic.simple.direct_to_template', {'template': 'style_catalog.html'}), url(regex='^%s/(?P<path>.*)$' % settings.MEDIA_URL.strip('/'), view='django.views.static.serve',
url(r'^random/(?P<project>[\w-]+)', 'core.views.random_page', name='random_page'), url(r'^random/$', 'core.views.random_page', name='random_page'), url(r'^wipe/(?P<project_slug>[-\w]+)/(?P<version_slug>[-\w]+)/$', 'core.views.wipe_version', name='wipe_version' ), url(r'^profiles/create/', 'profiles.views.create_profile', {'form_class': UserProfileForm}, name='profiles_profile_create'), url(r'^profiles/edit/', 'profiles.views.edit_profile', {'form_class': UserProfileForm}, name='profiles_profile_edit'), url(r'^profiles/', include('profiles.urls')), url(r'^api/', include(v1_api.urls)), url(r'^feeds/new/$', NewProjectsFeed(), name="new_feed"), url(r'^feeds/latest/$', LatestProjectsFeed(), name="latest_feed"), ) if settings.DEBUG: urlpatterns += patterns('', url( regex = '^%s/(?P<path>.*)$' % settings.MEDIA_URL.strip('/'), view = 'django.views.static.serve', kwargs = {'document_root': settings.MEDIA_ROOT}, ) )