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 trialShubham Modi
5,799 PointsDjango running the server
I am using Linux terminal and I get error saying unknown command: 'migrate'
2 Answers
Iain Simmons
Treehouse Moderator 32,305 PointsThat should be python manage.py migrate
in the project root directory.
Shubham Modi
5,799 PointsI am Still not working .. I think my linux version is outdated ..
Erika Suzuki
20,299 PointsIf 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
Matthew Hill
7,799 PointsMatthew Hill
7,799 PointsAre you in the directory with the manage.py file and entering the command manage.py migrate ?