Hi Jun,

Try this:

Put only this line in urls.py

url(r'^link/(?P<*identifier*>\d+)/$', 'project.apps.main.get'),


And in your view, add *identifier* as argument in function:

def get(request, *identifier*):
    ...
    return HttpResponse(u'Identifier %d' % *identifier*)

Note that *identifier* is a *int* and you must use link as */link/1*

Read more:
https://docs.djangoproject.com/en/dev/topics/http/urls/

Cheers.

-- 
Lucas Klassmann
Software Developer
Email: lucasklassm...@gmail.com
Web site: http://www.lucasklassmann.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOz50p%2BVm1ZLvUmpDoP2HTVWEU-azTdk61fZJ51SWVuMWnfcdg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to