Do you have the `__init__.py` file in mysite directory?

On Fri, Jan 16, 2009 at 2:21 PM, syo <haisyo2...@gmail.com> wrote:

>
> hi , i'm  now  reading a Django  tutorail naming:
> "Writing your first Django app, part 1"
>
> In the "Activating models" part , it asks me to:
>   1. add  'mysite.polls'  into INSTALLED_APPS,
>   2.then type "python manage.py sql polls".
> I tried , but coundn't get the thing works.
>
> with a second try ,
> instead of adding  'mysite.polls'  , I added 'polls' into
> INSTALLED_APPS,
> and then , it works and i got the expect result.
>
> my project layout  like:
>   mysite
>            -- settings.py
>            -- manage.py
>            -- polls
>                     -- models.py
>                     -- views.py
>
> here , my question is :  need realIy add  "mysite" before the "polls"?
>
> Thanks in advance!
>
> syo
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to