I have a similar question than [django cross-site reverse][1]. But i think I
can't apply the same solution.

I'm creating an app that lets the users create their own site. After
completing the signup form the user should be redirected to his site's new
post form. Something along this lines:

            new_post_url = 'http://%s.domain:9292/manage/new_post
%site.domain'
            logged_user = authenticate(username=user.username,
password=user.password)
            if logged_user is not None:
                login(request, logged_user)
                return redirect(new_product_url)

Now, I know that "new_post_url" is awful and makes babies cry so I need to
reverse it in some way. I thought in using
*django.core.urlresolvers.reverse* to solve this but that only returns urls
on my domain, and not in the user's newly created site, so it doesn't works
for me.

So, do you know a better/smarter way to solve this?

Thanks in advance


  [1]:
http://stackoverflow.com/questions/1221716/django-cross-site-reverse-urls

-- 
Matías Iturburu
http://www.linkedin.com/in/miturburu

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to