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't implemented something correctly? Thanks -- You received

Re: Ask for help

2015-11-19 Thread Proto
Can you post the migration file? It looks like one of the fields you're parsing for date doesn't like the data it's trying to parse (it's expecting a string type, but that may not be what it's getting), -- You received this message because you are subscribed to the Google Groups "Django users"

Avoiding Keyboard Input for Removing Stale Content Types Automatically (migrations and automatic deployment)

2015-05-20 Thread Proto
I submitted this ticket recently: https://code.djangoproject.com/ticket/24820 The content of it is as follows: While removing models in one of my migrations, I was prompted by Django to > input yes/no. For development, this is no problem. For automatic > deployments it is. > > I want to know