Re: Need help on RedirectView

2021-06-20 Thread Hello Singh
.Model), probably in models.py in the app. You obliged to use > anything like this in your redirect. > > HTH, > > On Sun, Jun 20, 2021 at 10:21 PM Hello Singh > wrote: > >> Now I am trying Django class based view through Django documentation it >> going well, but I a pr

Re: Need help on RedirectView

2021-06-20 Thread David Nugent
un 20, 2021 at 10:21 PM Hello Singh wrote: > Now I am trying Django class based view through Django documentation it > going well, but I a problem in RedirectView. > > There is `update_counter()` method I don't understand what it is doing and > where it come from. I highli

RE: RedirectView failing silently on NoReverseMatch is confusing

2017-01-19 Thread Matthew Pava
, January 19, 2017 4:27 AM To: Django users Subject: RedirectView failing silently on NoReverseMatch is confusing Hi everyone. Tim Graham told me that problem with ticet: #26911 should be discuss on mailing list. Details of ticket are here : https://code.djangoproject.com/ticket/26911 When

RedirectView failing silently on NoReverseMatch is confusing

2017-01-19 Thread Grzegorz Tężycki
Hi everyone. Tim Graham told me that problem with ticet: #26911 should be discuss on mailing list. Details of ticket are here : https://code.djangoproject.com/ticket/26911 When developer set 'pattern_name' in RedirectView and this pattern is incorrect, then method catch NoRe

Re: Django RedirectView 410 (Gone) Response

2015-11-19 Thread Proto
It would help if I wasn't using `pattern_name` wrongly. For anyone else who does something similarly silly, `pattern_name` would be the actual pattern name, not the name of the url you want to redirect to. In this case, I want to use `url` parameter with `reverse`. -- You received this message

Re: Django RedirectView 410 (Gone) Response

2015-11-19 Thread Proto
It would help if I wasn't using `pattern_name` wrongly. For anyone else who does something similarly sill, `pattern_name` would be the actual pattern name, not the name of the url you want to redirect to. In this case, I want to use `url` with `reverse`. -- You received this message because yo

Django RedirectView 410 (Gone) Response

2015-11-19 Thread Proto
url(r'^change-service/$', RedirectView.as_view(pattern_name='new-service', permanent=False)) url(r'^new-service/$', 'service', name='service'), Hitting this route gives a 410 error. I've never used the RedirectView so perhaps I haven'

Re: RedirectView()

2015-02-23 Thread Brad Rice
#x27;index'), url(r'^gallery', gallery, name='gallery'), ) On Monday, February 23, 2015 at 10:01:53 AM UTC-5, Andréas Kühne wrote: > > > 2015-02-23 15:30 GMT+01:00 Brad Rice >: > >> I'm using RedirectView and it is redirecting to my app, bu

Re: RedirectView()

2015-02-23 Thread Andreas Kuhne
2015-02-23 15:30 GMT+01:00 Brad Rice : > I'm using RedirectView and it is redirecting to my app, but is not > rendering the view in the app I am pointing to. > > I want to redirect my root / to my app /web > > I have this in my primary app urls: > > url(r'^

RedirectView()

2015-02-23 Thread Brad Rice
I'm using RedirectView and it is redirecting to my app, but is not rendering the view in the app I am pointing to. I want to redirect my root / to my app /web I have this in my primary app urls: url(r'^$', RedirectView.as_view(url='/web/', permanent=False)), I have t

Re: RedirectView with query_string = True and urlencoded unicode string

2012-05-15 Thread German Larrain M.
; as a keyword argument that will get passed into > your view. Unfortunately, you can't access it in your inline constructor > call. Try subclassing RedirectView in views.py of your app. > > class SubRedirectView(RedirectView): > > query_string = True > > de

Re: RedirectView with query_string = True and urlencoded unicode string

2012-05-14 Thread Andrew Bruce
You have passed 'anything' as a keyword argument that will get passed into your view. Unfortunately, you can't access it in your inline constructor call. Try subclassing RedirectView in views.py of your app. class SubRedirectView(RedirectView): query_string = True def g

Re: RedirectView with query_string = True and urlencoded unicode string

2012-05-14 Thread Sławek Ehlert
As the error states: You don't have a format argument in your '/tmovil/planes/%(anything)s' string. Cheers Dnia 14.05.2012 23:19, Germán napisał(a): Hi. Please excuse my ignorance in this affairs. For an specific URI

Re: Re: RedirectView with query_string = True and urlencoded unicode string

2012-05-14 Thread Germán
Hi. Please excuse my ignorance in this affairs. For an specific URI

Re: Re: RedirectView with query_string = True and urlencoded unicode string

2011-08-12 Thread Karen Tracey
On Thu, Aug 11, 2011 at 10:48 AM, Slafs wrote: > Should i report a ticket? > Yes please, that's a bug in Django. Karen -- http://tracey.org/kmt/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

Odp: Re: RedirectView with query_string = True and urlencoded unicode string

2011-08-11 Thread Slafs
Should i report a ticket? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/tTIMaMNLV8EJ. To post to this group, send email to django-users@googlegroups.com.

Odp: Re: RedirectView with query_string = True and urlencoded unicode string

2011-08-11 Thread Slafs
Oh sorry. Here it is http://dpaste.com/591903/ File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in get_redirect_url 146. return url % kwargsException Type: ValueError at /test/Exception Value: unsupported format character 'C' (0x43) at index 15 -- You

Re: RedirectView with query_string = True and urlencoded unicode string

2011-08-11 Thread Daniel Roseman
On Thursday, 11 August 2011 09:35:43 UTC+1, Slafs wrote: > > Hi there! > > I'm having difficulties with the new class based RedirectView with > query_string = True and some unicode string in QUERY_STRING. > I made a sample of the error on bitbucket > >

RedirectView with query_string = True and urlencoded unicode string

2011-08-11 Thread Slafs
Hi there! I'm having difficulties with the new class based RedirectView with query_string = True and some unicode string in QUERY_STRING. I made a sample of the error on bitbucket https://bitbucket.org/slafs/redirectviewtest/src could You please explain what I'm doing wrong? or m