Sunday, September 27, 2015

Re: Django Tutorial(Database Setup Question)

> On Sep 27, 2015, at 04:39, Cai Gengyang <gengyangcai@gmail.com> wrote:
>
> 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

The command must be typed from a terminal window, and afaik Finder has no influence on the current working directory in that window.

Use the Terminal app to open a command line window, then use "cd" or "pushd" to go to "mysite folder" within that terminal window.

If that is done correctly, then you should be able to type "ls" and see manage.py in the resulting listing. Then try typing the python command above.

btw, I would strongly recommend using virtualenv for developing on your Mac (and on any other system). There are many references to that in this mailing list; do a google search to find a procedure for doing this.

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+unsubscribe@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/C37BDA8F-208C-4656-9C25-68479B07C444%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment