hi, guys,
try it .
..
return HttpResponseRedirect(reverse('myAppFront.views.article', None, None,
{'id': id}))
2011/10/25 nicolas HERSOG
> God you'r right !
>
> Thanks to your answer i found why my "named" url didn't work.
>
> I wrote this in my urls.py :
> (r'^article/(?P\d+)/$', myAp
God you'r right !
Thanks to your answer i found why my "named" url didn't work.
I wrote this in my urls.py :
(r'^article/(?P\d+)/$', myAppFront.views.article, name='article'),
instead of :
*url*(r'^article/(?P\d+)/$', myAppFront.views.article,
name='article'),
AND, you'r right, i didn't u
On Mon, Oct 24, 2011 at 12:34 PM, nicolas HERSOG wrote:
> Hi everyone,
> I digged more but i'm still stuck.
> I understood that i have to use namespaceURL.
> So i modified my url.py this way :
> from myAppFront.views import article
> url (r'^article/(?P\d+)/$',
> myAppFront.views.artic
Hi everyone,
I digged more but i'm still stuck.
I understood that i have to use namespaceURL.
So i modified my url.py this way :
from myAppFront.views import article
url (r'^article/(?P\d+)/$',
myAppFront.views.article,
name='article'),
and this is my addComment view :
def a
Hi everyone,
I'm stuck with the redirection in django.
This is my url.py
(r'^article/(?P\d+)/$', 'myapp.myappFront.views.article'),
(r'^article/(?P\d+)/addComment/$',
'myapp.myappFront.views.addComment'),
I developed a little view in order to add comment to my article, this is my
view.p
Adam and Skylar,
The ISP's support just replied to my ticket. They set the urls.py as
urlpatterns = patterns('',
(r'^wkw1/$', 'sw1.wkw1.views.index'),
(r'^admin/$', 'django.views.generic.simple.redirect_to', {'url': '/
admin/wkw1/lawyer'}),
(r'^admin/wkw1/$', 'django.views.generic.sim
What are the details of the error?
On Nov 18, 7:06 am, Zeynel wrote:
> I've been trying to redirect
>
> /admin/ to /admin/wkw1/lawyer
>
> The suggestions from my previous
> posthttp://groups.google.com/group/django-users/msg/67c4594a4083bd45
> did not work.
>
> I read the redirect section in the
On Nov 18, 2009, at 6:06 AM, Zeynel wrote:
> I've been trying to redirect
>
> /admin/ to /admin/wkw1/lawyer
>
> The suggestions from my previous post
> http://groups.google.com/group/django-users/msg/67c4594a4083bd45
> did not work.
>
> I read the redirect section in the documents as suggested
I've been trying to redirect
/admin/ to /admin/wkw1/lawyer
The suggestions from my previous post
http://groups.google.com/group/django-users/msg/67c4594a4083bd45
did not work.
I read the redirect section in the documents as suggested
http://docs.djangoproject.com/en/dev/ref/generic-views/#djan
9 matches
Mail list logo