Expected URL with primary key when testing SimpleTestCase.assertRedirects()

2014-06-17 Thread Antonio Alaniz
I'm testing a redirect that would include the primary key. Can anyone tell me how I can test the redirect URL if it involves the primary key? Will the following work?: self.assertRedirects(response, 'message/(?P\d+)/', 200) -- You received this message because you are subscribed to the Google

Re: Django 1.7 Final Status?

2014-06-17 Thread Russell Keith-Magee
Hi, Lachlan is roughly correct - we're down to no release blocking bugs, so we're in the phase where we're trying to coordinate the time for a release manager to cut a release. It's difficult to give a specific release date because we don't know what bugs will be discovered between now and the fi

Re: Stack Overflow Open Source Advertising, 2H 2014

2014-06-17 Thread Russell Keith-Magee
Hi Jorge, Thanks for drawing our attention to this program. Some things to keep in mind about branding - you're representing the Django project here, so it's important that you adhere to Django's trademark policy. Specifically, the "Dj" character pair isn't an official trademark of Django - the f

Re: PostgreSQL, queries, speed

2014-06-17 Thread Tom Evans
On Tue, Jun 17, 2014 at 11:14 PM, Tom Evans wrote: > You want a multi column index when you want to speed up queries > involving all the columns in that query. Or, depending on database features, queries involving all the columns[0:N] - eg an index on (first_name, last_name, sex) would still opti

Re: PostgreSQL, queries, speed

2014-06-17 Thread Tom Evans
On Tue, Jun 17, 2014 at 10:26 PM, Lachlan Musicman wrote: > tkc, > > Is that the default created when adding db_index=True of is that > something that I would do directly in postgres itself? > > cheers > L. Yep, although obviously that won't work when you want a multi-column index. You want a mul

Re: PostgreSQL, queries, speed

2014-06-17 Thread Lachlan Musicman
tkc, Is that the default created when adding db_index=True of is that something that I would do directly in postgres itself? cheers L. On 17 June 2014 22:50, Tim Chase wrote: > On 2014-06-17 11:04, Russell Keith-Magee wrote: >> On Tue, Jun 17, 2014 at 9:25 AM, Lachlan Musicman wrote: >> > Now r

Re: All tests fail with TypeError: isinstance() arg 2 must be a type or tuple of types

2014-06-17 Thread Sceva
The error appears when I run tests and it is trying to create the default database. I forgot to add that I found this, https://github.com/pelme/pytest_django/issues/68 that seems to be a similar issue. -- You received this message because you are subscribed to the Google Groups "Django user

All tests fail with TypeError: isinstance() arg 2 must be a type or tuple of types

2014-06-17 Thread Sceva
The full error (last on in the stack) is File > "/home//venv/lib/python3.3/site-packages/django/db/models/fields/related.py", > line 1699, in get_default > if isinstance(field_default, self.rel.to): > TypeError: isinstance() arg 2 must be a type or tuple of types Python 3.3.2, Django 1.7b

Re: PostgreSQL, queries, speed

2014-06-17 Thread Tim Chase
On 2014-06-17 11:04, Russell Keith-Magee wrote: > On Tue, Jun 17, 2014 at 9:25 AM, Lachlan Musicman wrote: > > Now reading about indexes I can't believe I've not used them > > previously. > > Indicies are definitely your friend - *especially* on > PostgreSQL. :-) I've found http://use-the-index-l

Any position for Django/Python Developer?

2014-06-17 Thread Kannan
Hi All, I am looking for job for Django Developer. And I am ready to work on part time role also. I have 3 year of experience as a Software Developer, and if anyone accepting my application, please send me an email. I will send you the resume. Email: kanna...@gmail.com Note: I am living in India,

Re: trying to configure MSSQL 2012 as backend with Django.

2014-06-17 Thread sarfaraz ahmed
Hello Ezequiel I have a database in SQL Server 2012. I used the following string and everything worked.. find. Trust me I am new to django and feeling good to be part of this community. DATABASES = { 'default': { 'NAME': 'blogger', 'ENGINE': 'sqlserver_ado', 'HOST': ' '

Re: PostgreSQL, queries, speed

2014-06-17 Thread Lachlan Musicman
I discovered what was going wrong - I was configuring pg9.3 but my db was in pg9.1 I think that's a hangover from when I updated from 12.04 to 14.04 or something. Anyway, thankful for backups! (redface) On 17 June 2014 16:50, Alex Mandel wrote: > If you stick to stock python commands virtualenv s