On 2/21/07, enquest <[EMAIL PROTECTED]> wrote: > > I have two models for testing purpose... I realy need to solve this > problem. If not I will have to stop using Django what would be a pitty. > But I can't spend an other day searching!!!! This problem occurs on a > Debian apache2 server (fresh install) > > model 1 > from django.db import models > from bar.models import Test > # Create your models here. > > class Foo(models.Model): > test = models.CharField(maxlength=40) > what = models.CharField(maxlength=10) > bar = models.ForeignKey(Test) > def __str__(self): > return self.test > class Admin: > pass > > model 2 > from django.db import models > # Create your models here. > > class Test(models.Model): > foos = models.CharField(maxlength=40) > bars = models.CharField(maxlength=10) > def __str__(self): > return self.foos > class Admin: > pass > > > It seems as soon I import "from bar.models import Test" do then this > class will not show up in the the ADMIN. I restarted apache 100 time, > changed the code 100 times to figure out. Tryied everthing. But as soon > as I do an "import Test" for example the admin wont show it!!! > > On the IRC channel they can't help. So my last hope is this mailing > list... Maybe somebody here can help me????!!!!
Is 'bar' in your INSTALLED_APPS list? Jay P. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---