Re: Django Book: The Django Administration Site

2008-01-07 Thread Ramiro Morales
On Jan 7, 2008 12:40 AM, Mikey3D <[EMAIL PROTECTED]> wrote: > > Thank you so much it works. :-) One question, why is that I have Auth > and Sites are showing up when my "class Admin: pass" were wrong way of > coding still works? > Because these are different apps? and they have their Admin inner

Re: Django Book: The Django Administration Site

2008-01-07 Thread iamelgringo
The book is online if you want to copy/paste code: http://www.djangobook.com/en/1.0/chapter06/ Good luck and no problem. On Jan 6, 6:40 pm, Mikey3D <[EMAIL PROTECTED]> wrote: > Hi Elgringo, > > Thank you so much it works. :-) One question, why is that I have Auth > and Sites are showing up whe

Re: Django Book: The Django Administration Site

2008-01-06 Thread Mikey3D
Hi Elgringo, Thank you so much it works. :-) One question, why is that I have Auth and Sites are showing up when my "class Admin: pass" were wrong way of coding still works? Hi Ramiro, I wasn't sure what you mean by copy/paste error and inner class but Elgringo clearly what you were saying. Than

Re: Django Book: The Django Administration Site

2008-01-06 Thread elgringo
Like Ramiro says. It's an indentation issue. Your nested class Admin: pass statement needs to be one and only one level of indentation below the top class declaration for each class that you're defining: class Publisher(model.Model): ... class Admin: pass class Foo(model.Model):

Re: Django Book: The Django Administration Site

2008-01-06 Thread Ramiro Morales
On Jan 6, 2008 5:10 PM, Mikey3D <[EMAIL PROTECTED]> wrote: > [...] > from django.db import models > > class Publisher(models.Model): > name = models.CharField(max_length=30) > address = models.CharField(max_length=50) > city = models.CharField(max_length=60) > state_province = mode

Re: Django Book: The Django Administration Site

2008-01-06 Thread Mikey3D
Hi goober, I have done your suggestions before or I won't be able to create a superuser, right? I could login and there is no Ch6 but only Auth and Sites in Admin Interface. So I try again your suggestions: In command: python manage.py sql books "OR" python manage.py sqlall books > the same dif

Re: Django Book: The Django Administration Site

2008-01-06 Thread goober
Mikey3D, I believe you need to seed the database by typing python manage sql or type python manage sqlall. The you need to type python manage syncdb db again. Cheeers. Did you run python manage syncdb? Did you run python manage sqlall? On Jan 6, 2:10 pm, Mikey3D <[EMAIL PROTECTED]> wrote: > H

Django Book: The Django Administration Site

2008-01-06 Thread Mikey3D
Hi, I'm reading thoroughly the new django book and on page 86, the figure 6-2, why didn't the Django Administration Site showing Ch6 except only Auth and Sites showing? I have trying all morning to figure it out but can't. Here are my files: # Django settings for mysite project. DEBUG = True T