#because views add and change are adapted to #use jinja2 templates urlpatterns += ( service_url('^avatar/add/$', views.avatar_views.add, name='avatar_add'), service_url('^avatar/change/$', views.avatar_views.change, name='avatar_change'), service_url('^avatar/delete/$', views.avatar_views.delete, name='avatar_delete'), service_url( #this urs we inherit from the original avatar app '^avatar/render_primary/(?P<user_id>[\+\d]+)/(?P<size>[\d]+)/$', views.avatar_views.render_primary, name='avatar_render_primary'), ) #HACK: to register the haystack signals correclty due to import errors # http://i.qkme.me/3uuvs7.jpg if getattr(settings, 'HAYSTACK_SIGNAL_PROCESSOR', ' ').endswith('AskbotRealtimeSignalProcessor'): from haystack import signal_processor signal_processor.teardown() signal_processor.setup() if getattr(settings, 'HAYSTACK_SIGNAL_PROCESSOR', ' ').endswith('AskbotCelerySignalProcessor'): from haystack import signal_processor signal_processor.teardown() signal_processor.setup()
'^avatar/change/$', views.avatar_views.change, name='avatar_change' ), service_url( '^avatar/delete/$', views.avatar_views.delete, name='avatar_delete' ), service_url(#this urs we inherit from the original avatar app '^avatar/render_primary/(?P<user_id>[\+\d]+)/(?P<size>[\d]+)/$', views.avatar_views.render_primary, name='avatar_render_primary' ), ) #HACK: to register the haystack signals correclty due to import errors # http://i.qkme.me/3uuvs7.jpg if getattr(settings, 'HAYSTACK_SIGNAL_PROCESSOR', ' ').endswith('AskbotRealtimeSignalProcessor'): from haystack import signal_processor signal_processor.teardown() signal_processor.setup() if getattr(settings, 'HAYSTACK_SIGNAL_PROCESSOR', ' ').endswith('AskbotCelerySignalProcessor'): from haystack import signal_processor signal_processor.teardown() signal_processor.setup()