Hi Tom,
So I click on Finder ---> Go ---> Home ---> 'Weiqi' folder ---> mysite folder ---> manage.py file. (using a Mac OS X Yosemite Version 10.10.2) This puts me in the same directory as the manage.py file. Then I key in the command : $ python manage.py migrate, but I still get the same error message CaiGengYangs-MacBook-Pro:Weiqi CaiGengYang$ python manage.py migrate --- input /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'manage.py': [Errno 2] No such file or directory --- output Not sure where I am doing this wrongly ... zzz Gengyang On Sunday, September 27, 2015 at 7:12:54 PM UTC+8, Thomas wrote: > > > … > > However, when I try to run the following command : $ python manage.py > migrate to create the tables in the database, > > CaiGengYangs-MacBook-Pro:Weiqi CaiGengYang$ python manage.py migrate > ---- input > > I get the following error message : > > > /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: > > can't open file 'manage.py': [Errno 2] No such file or directory ---- > output > > You need to be in the same directory as the file manage.py for the command > to work. For Django-1.8 that is likely to be one level above your > settings.py file. > > hth > > - Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/893c0597-de55-4f0a-94d7-829bcc76b3cb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.