Source

djcube / djcube / urls.py

from django.conf.urls.defaults import *

from promotion import  PromotionHandler
from forms import SignupFormPreview,SignupForm

urlpatterns = patterns('djcube.views',
#    url(r'^signup/(?P<site>.+)/','signup' ,name="signup"),
    url(r'^signup/(?P<site>.+)/(?P<promocode>.+)/zip/(?P<zipcode>.+)/$','zipcode'),
    url(r'^signup/(?P<site>.+)/(?P<promocode>.+)/$',SignupFormPreview(SignupForm)),
    url(r'^address/(?P<zipcode>.+)/','zipcode'),
#    url(r'^promotion/(?P<pname>.+)/',PromotionHandler.accept, name="promotion"),    
    (r'^test/','test',{'code':39,'pname':'secret',}),
)