meet issue in Django tutorail

1 view
Skip to first unread message

syo

unread,
Jan 16, 2009, 6:21:22 AM1/16/09
to Django users
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

Alex Koshelev

unread,
Jan 16, 2009, 8:23:38 AM1/16/09
to django...@googlegroups.com
Do you have the `__init__.py` file in mysite directory?

Kenneth Gonsalves

unread,
Jan 16, 2009, 8:37:45 AM1/16/09
to django...@googlegroups.com
On Friday 16 Jan 2009 4:51:22 pm syo wrote:
> here , my question is :  need realIy add  "mysite" before the "polls"?

if 'mysite' is in your path then obviously you just need to add 'polls'

--
regards
KG
http://lawgon.livejournal.com

syo

unread,
Jan 17, 2009, 1:28:39 AM1/17/09
to Django users
Yes , i have the file you mentioned ,
following is entire files for this test project:
mysite/
-- __init__.py
-- settings.py
-- manage.py
-- urls.py
-- polls/
-- __init__.py
-- models.py
-- views.py




On Jan 16, 10:23 pm, Alex Koshelev <daeva...@gmail.com> wrote:
> Do you have the `__init__.py` file in mysite directory?
>

syo

unread,
Jan 17, 2009, 1:30:33 AM1/17/09
to Django users
thanks for replay , then is it safe to say there is something wrong in
this tutorial?

Kenneth Gonsalves

unread,
Jan 17, 2009, 3:12:46 AM1/17/09
to django...@googlegroups.com
On Saturday 17 Jan 2009 12:00:33 pm syo wrote:
> thanks for replay , then is it safe to say there is something wrong in
> this tutorial?

no - nothing wrong with the tutorial. These things depend on what your system
path is like

Reply all
Reply to author
Forward
0 new messages