Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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