On Sep 14, 8:52 am, Ramanathan <mraman2...@gmail.com> wrote:
> I tried it.. but still it is not working.
>
> I am using django version 1.1.
If your view takes a parameter you need to give it a name and I
generally prepend a distinct identifier to my url so that django knows
what's going on.
(r'^activate/(?P<my_string>.+)/$','proj.register.views.activate')
Which assumes your view has defined something like
def activate(request, my_string):
I'm not sure what your true desired result is but i would try
something like the following.
(r'^media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': '/home/ramanathan/media'}),
This will require you to prepend media to your URL for media
requests. This way django know the /media/path passed as to the
static server where path can be anything.
Hope this helps,
Mark
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---