Commit ff5d5c9d authored by Adrián Ribao's avatar Adrián Ribao
Browse files

improved urls for django 1.6

parent bdfe89cf
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from django.conf.urls.defaults import * from django.conf.urls import url, patterns
from cartero.views import * from cartero.views import (PreviewTemplate, SaveTemplateData, UnsubscribeView, GotoView,
MailTrackView)
urlpatterns = patterns('', urlpatterns = patterns(
url(r'^template-preview/(?P<pk>\d+)/$', '',
PreviewTemplate.as_view(), url(r'^template-preview/(?P<pk>\d+)/$',
name='preview_template'), PreviewTemplate.as_view(),
name='preview_template'),
url(r'^template-preview/(?P<pk>\d+)/save-data/$', url(r'^template-preview/(?P<pk>\d+)/save-data/$',
SaveTemplateData.as_view(), SaveTemplateData.as_view(),
name='save_template_data'), name='save_template_data'),
url(r'^unsubscribe/(?P<signed_email>.+)/$', url(r'^unsubscribe/(?P<signed_email>.+)/$',
UnsubscribeView.as_view(), UnsubscribeView.as_view(),
name='unsubscribe'), name='unsubscribe'),
url(r'^goto/(?P<code>.+)/(?P<campaign_id>.+)/$', url(r'^goto/(?P<code>.+)/(?P<campaign_id>.+)/$',
GotoView.as_view(), GotoView.as_view(),
name='click_monitor'), name='click_monitor'),
url(r'^track/(?P<mailtrack_id>.+)\.png$', url(r'^track/(?P<mailtrack_id>.+)\.png$',
MailTrackView.as_view(), MailTrackView.as_view(),
name='track'), name='track'),
) )
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment