0

I'm following the djangoproject tutorial at https://docs.djangoproject.com/en/1.4/intro/tutorial01/ ...

I'm at the part where it tells me to start a 'polls' app in django and input it into settings.py of the project, to let it know that polls is installed. I did everything as instructed but when I do python manage.py sql polls, I get the following error:

Unknown command: 'sql'

2
  • 1
    Which django version did you install? Commented Feb 3, 2016 at 21:58
  • Well, I've selected the wrong tutorial for my version of Django. Good thing the Internet is anonymous. Commented Feb 3, 2016 at 22:09

1 Answer 1

4

I'm not sure why are you still looking at django version 1.4 documentation to learn django(There's an obvious banner on top of the page reminds you to upgrade), but I guess the reason is that sql command is deprecated in version 1.9, so most likely you installed the latest version of django and it's no longer available.

Check django website for deprecated notice.

Sign up to request clarification or add additional context in comments.

1 Comment

OP can change to newer docs in bottom right corner too :) LInk for tutorial (1.9)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.