Re: throwing a 301

2014-01-24 Thread Lachlan Musicman
Docs: https://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpResponsePermanentRedirect SO: http://stackoverflow.com/questions/523356/python-django-page-redirect On 25 January 2014 13:50, Bobby Roberts wrote: > i've got a site i'm porting from classic

throwing a 301

2014-01-24 Thread Bobby Roberts
i've got a site i'm porting from classic asp over to django. Is there a way to nicely throw a 301 for the .asp pages? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Honest feedback

2014-01-24 Thread Lachlan Musicman
I would say it's very actively developed and supported. In 2010 release 1.1 was the newest stable. Currently it's 1.6 with 1.7 due in 3-4 months. Wikipedia shows that in those years: 1.2 17 May 2010 Multiple db connections, CSRF, model validation 1.3 23 Mar 2011 Class based views, static files

Re: Honest feedback

2014-01-24 Thread Alex Mandel
On 01/24/2014 03:04 PM, Bobby Roberts wrote: > Hi group. I've been out if the django world for over four years. I am going > to rebrand and replatform away from classic asp. Don't laugh. Yes I know > it's sad. Without telling me how good django is, what has changed in the > last four year

Honest feedback

2014-01-24 Thread Bobby Roberts
Hi group. I've been out if the django world for over four years. I am going to rebrand and replatform away from classic asp. Don't laugh. Yes I know it's sad. Without telling me how good django is, what has changed in the last four year that should make me choose django as my new

Re: Using Natural Keys With dumpdata / loaddata

2014-01-24 Thread Mike Dewhirst
On 25/01/2014 7:31am, Alex Thomas wrote: I tried adding unique=True to voyage_id but that did not have any effect. I later found somewhere in the docs that specifying is not necessary. So I am still in the same situation. Is it possible to have unique=True together with null=True and

Re: Using Natural Keys With dumpdata / loaddata

2014-01-24 Thread Alex Thomas
I tried adding unique=True to voyage_id but that did not have any effect. I later found somewhere in the docs that specifying is not necessary. So I am still in the same situation. On Thursday, January 23, 2014 4:03:34 PM UTC-5, Alex Thomas wrote: > > I have already created a stackoverflow

Re: Using Natural Keys With dumpdata / loaddata

2014-01-24 Thread Alex Thomas
I tried adding unique=True to voyage_id but that did not have any effect. I later found somewhere in the docs that specifying in not necessary. So I am still in the same situation. On Thursday, January 23, 2014 4:03:34 PM UTC-5, Alex Thomas wrote: > > I have already created a stackoverflow

backends-mysql: cannot import name utils

2014-01-24 Thread Miklos Smeja
Dear all, I've started using Django only a few months ago so I'm not an expert at all. (But until now I could explain most of the problems what I had.. :)) Config: Raspbian, MySql, Django 1.6, Python 2.7.3 -- but most of the versions are in the attached stacktrace file. Symptom: every 5th page

label_tag bug in Django 1.6. with mark_safe + ugettext_lazy ?

2014-01-24 Thread neal
Hi, I'm in the process of upgrading a Django application from 1.5 to 1.6 and I've come across a mark_safe + ugettext_lazy issue in form field labels that I think might be a bug introduced in 1.6 (possibly related to the introduction of the new Form.label_suffix?). Before reporting it I

Re: Error related to googlebot?

2014-01-24 Thread James Turley
Are you doing any user agent sniffing anywhere? If you make a request having spoofed your UA to match one of the offending Google/Yahoo bots, do you get the same 500 errors? Anything in robots.txt? On Fri, Jan 24, 2014 at 4:44 PM, Doug wrote: > I am having this same exact

Re: Error related to googlebot?

2014-01-24 Thread Doug
I am having this same exact problem. Did you ever find a resolution? Thanks. Doug On Monday, July 12, 2010 2:10:49 PM UTC-4, Tor Nordam wrote: > > I'm currently writing a blog framework in django, and I have it up an > running (on www.presskanne.com). During the last 20 hours or so, I > have

Widget attributes in ModelForm

2014-01-24 Thread Timothy W. Cook
My widget attribute settings aren't having any effect in the render template. View: class DvBooleanCreateView(CreateView): template_name = 'dvboolean_create.html' success_url = '/dashboard' model = DvBoolean form = DvBooleanCreateForm fields =

migrations to custom user model - complex project

2014-01-24 Thread Frank Bieniek
Hi All, a do have to upgrade an existing django project, it is an openid provider with around 10k users. In order to update to django 1.6 I do need to get rid of the good old AUTH_PROFILE_MODULE and need to switch to CustomUserModel, and I do not want to break existing mysql constraints.

Re: Exiting from a management command with a given exit status

2014-01-24 Thread James Bennett
On Fri, Jan 24, 2014 at 2:10 AM, Johannes Schneider < johannes.schnei...@galileo-press.de> wrote: > thnx, > I thought there might be a more django-like way. Using standard features of Python and its built-in libraries *is* the "Django-like way". -- You received this message because you are

Re: Exiting from a management command with a given exit status

2014-01-24 Thread Johannes Schneider
thnx, I thought there might be a more django-like way. On 23.01.2014 15:48, Erik Cederstrand wrote: import sys sys.exit(123) -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx Galileo Press GmbH Rheinwerkallee 4 - 53227 Bonn -