Re: Can't sync DB

2013-01-08 Thread Nick Sandford
Since you have already created the table using syncdb, you need to instruct South to fake the initial migration. Try the command ./manage.py migrate auth --fake and see if that works. You only need to run this once and then all future migrations don't need the --fake flag. Cheers, Nick On Tue,

Re: Named URLs for Flatpages?

2008-12-16 Thread Nick Sandford
On Wed, Oct 22, 2008 at 6:14 AM, erikcw wrote: > > Hi all, > > I'm working on a project that uses flatpages pretty heavily. I was > wondering if there was a way to use named urls with flatpages so that > I can use reverse() in my other views and {% url

Multiple selects for ForeignKey in admin

2008-10-24 Thread Nick Sandford
Just wondering how easy it would be to implement something like this: class Foo(models.Model): name = models.CharField(max_length=200) bar = models.ForeignKey(Bar) class Bar(models.Model): name = models.CharField(max_length=200) category = models.CharField(max_length=200)

Displaying ManyToMany relations in Admin

2008-09-19 Thread Nick Sandford
Hi all, I currently have a site setup to manage students, teachers and classrooms. In the classroom admin interface I have a horizontal filter to select the students and teachers in a classroom. The only problem is, I have roughly 1400 students and 400 teachers to select from. From what I can

Re: testing login problem

2008-07-03 Thread Nick Sandford
On Thu, Jul 3, 2008 at 2:18 PM, laspal <[EMAIL PROTECTED]> wrote: > > Hi, > Thanks for the help but still I am not able to login in my test > client.. > > here is the code: > > from django.test import TestCase > from django.test.client import Client > > class IndustryTest(TestCase): >fixtures

Re: auth context processor setup

2008-06-22 Thread Nick Sandford
On Sun, Jun 22, 2008 at 10:20 PM, mcordes <[EMAIL PROTECTED]> wrote: > > I seem to already have the auth middleware enabled too. From what I'm > seeing, generic views _do_ have the user object available in their > templates. It's just my custom views that don't automatically have > this. It's