Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Django Basics What a View! Running the Server

Shubham Modi
Shubham Modi
5,799 Points

Django running the server

I am using Linux terminal and I get error saying unknown command: 'migrate'

Matthew Hill
Matthew Hill
7,799 Points

Are you in the directory with the manage.py file and entering the command manage.py migrate ?

2 Answers

That should be python manage.py migrate in the project root directory.

Shubham Modi
Shubham Modi
5,799 Points

I am Still not working .. I think my linux version is outdated ..

Erika Suzuki
Erika Suzuki
20,299 Points

If you're running migrate from your own workspace, not Treehouses' . It will fail since you still have no data to migrate. Once you start making models, that's the time when you're gonna need it. First do python manage.py makemigrations , and then do python manage.py migrate