Sunday, December 2, 2012

Re: Help with manage.py sql

On Mon, Dec 3, 2012 at 1:43 PM, David Brotman
<davidbrotman2768@gmail.com> wrote:
> Hi:
>
> I am really new to django and I am going thru the online tutorial (polls)
> app and I got to the point in the tutorial where I enter the command:
>
> python manage.py sql polls
>
> Nothing happens. No error message or anything else displayed. It just goes
> to a prompt. I included 'polls' in the installed apps section of the
> settings.py file as instructed. Anyone have any ideas on how to troubleshoot
> this issue?

1. Have you set up a DB and put the details into your settings.py? If
not, this is the problem
2. If you have done that, then the next step is to try another

python manage syncdb

Which you should have run a little earlier, when registering the
django necessary tables, and this second run should create the tables
for the polls app.

Are you running python manage.py sql polls from the directory with
manage.py in it?

What is you OS and which version of Django?

Cheers
L.


>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/BkUr0V1xy2AJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.



--
...we look at the present day through a rear-view mirror. This is
something Marshall McLuhan said back in the Sixties, when the world
was in the grip of authentic-seeming future narratives. He said, "We
look at the present through a rear-view mirror. We march backwards
into the future."

http://www.warrenellis.com/?p=14314

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

No comments:

Post a Comment