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 -*-
from django.conf.urls.defaults import *
from cartero.views import *
from django.conf.urls import url, patterns
from cartero.views import (PreviewTemplate, SaveTemplateData, UnsubscribeView, GotoView,
MailTrackView)
urlpatterns = patterns('',
url(r'^template-preview/(?P<pk>\d+)/$',
PreviewTemplate.as_view(),
name='preview_template'),
urlpatterns = patterns(
'',
url(r'^template-preview/(?P<pk>\d+)/$',
PreviewTemplate.as_view(),
name='preview_template'),
url(r'^template-preview/(?P<pk>\d+)/save-data/$',
SaveTemplateData.as_view(),
name='save_template_data'),
url(r'^template-preview/(?P<pk>\d+)/save-data/$',
SaveTemplateData.as_view(),
name='save_template_data'),
url(r'^unsubscribe/(?P<signed_email>.+)/$',
UnsubscribeView.as_view(),
name='unsubscribe'),
url(r'^unsubscribe/(?P<signed_email>.+)/$',
UnsubscribeView.as_view(),
name='unsubscribe'),
url(r'^goto/(?P<code>.+)/(?P<campaign_id>.+)/$',
GotoView.as_view(),
name='click_monitor'),
url(r'^goto/(?P<code>.+)/(?P<campaign_id>.+)/$',
GotoView.as_view(),
name='click_monitor'),
url(r'^track/(?P<mailtrack_id>.+)\.png$',
MailTrackView.as_view(),
name='track'),
url(r'^track/(?P<mailtrack_id>.+)\.png$',
MailTrackView.as_view(),
name='track'),
)
Markdown is supported
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