(r'^password_reset/$', 'django.contrib.auth.views.password_reset', {'is_admin_site': False},'acct_passwd_reset'), (r'^password_reset/done/$', 'django.contrib.auth.views.password_reset_done'), (r'^password/reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 'django.contrib.auth.views.password_reset_confirm', {}, 'password_reset_confirm'), (r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete'), ) from apiv1.api import Api from apiv1.resources import ( GotwResource, DpotwResource, PackageResource, CategoryResource, GridResource, PackageResourceBase, UserResource ) v1_api = Api() v1_api.register(PackageResourceBase()) v1_api.register(PackageResource()) v1_api.register(CategoryResource()) v1_api.register(GridResource()) v1_api.register(GotwResource()) v1_api.register(DpotwResource()) v1_api.register(UserResource()) urlpatterns += patterns('', url(r"^api/", include(v1_api.urls)), ) if settings.SERVE_MEDIA: urlpatterns += patterns("",
from django.conf import settings from django.conf.urls import patterns, include, url from django.contrib import admin from apiv1.api import Api from apiv1.resources import AreaResource, LocationResource import autocomplete_light from cms.views import details from core.views import ProfileView, robots autocomplete_light.autodiscover() admin.autodiscover() v1_api = Api() v1_api.register(AreaResource()) v1_api.register(LocationResource()) urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls)), url(r'^autocomplete/', include('autocomplete_light.urls')), url(r'^$', details, {'slug': ''}, name='pages-root'), url(r'^feedback/$', 'core.views.feedback', name='feedback'), url(r'^mobile/', include('mobile.urls')), url(r'^accounts/profile/$', ProfileView.as_view(), name='account_profile'), url(r'^accounts/', include('allauth.urls')), url(r'^api/', include(v1_api.urls)), url(r'^robots\.txt$', robots, name='robots.txt'), url(r'', include('world.urls')), )
url(r"^syndication/$", TemplateView.as_view(template_name='pages/syndication.html'), name="syndication"), url(r"^contribute/$", TemplateView.as_view(template_name='pages/contribute.html'), name="contribute"), url(r"^search/", include("searchv2.urls")), url(r"^importer/", include("importer.urls")), ) from apiv1.api import Api from apiv1.resources import (GotwResource, DpotwResource, PackageResource, CategoryResource, GridResource, PackageResourceBase, UserResource) v1_api = Api() v1_api.register(PackageResourceBase()) v1_api.register(PackageResource()) v1_api.register(CategoryResource()) v1_api.register(GridResource()) v1_api.register(GotwResource()) v1_api.register(DpotwResource()) v1_api.register(UserResource()) urlpatterns += patterns( '', url(r"^api/", include(v1_api.urls)), ) if settings.SERVE_MEDIA: urlpatterns += patterns(
from django.conf import settings from django.conf.urls import patterns, include, url from django.contrib import admin from apiv1.api import Api from apiv1.resources import AreaResource, LocationResource import autocomplete_light from cms.views import details from core.views import ProfileView, robots autocomplete_light.autodiscover() admin.autodiscover() v1_api = Api() v1_api.register(AreaResource()) v1_api.register(LocationResource()) urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls)), url(r'^autocomplete/', include('autocomplete_light.urls')), url(r'^$', details, {'slug': ''}, name='pages-root'), url(r'^feedback/$', 'core.views.feedback', name='feedback'), url(r'^mobile/', include('mobile.urls')), url(r'^accounts/profile/$', ProfileView.as_view(), name='account_profile'), url(r'^accounts/', include('allauth.urls')), url(r'^api/', include(v1_api.urls)),