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)
de
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 flat_privacy_policy
> %} in my templates.
>
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 see
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 easy
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
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, J
6 matches
Mail list logo