Re: Stuck already on step one, django on windows

89 views
Skip to first unread message

Melvyn Sopacua

unread,
Jun 14, 2012, 7:25:54 AM6/14/12
to django...@googlegroups.com, Daniel Patriarca
On 14-6-2012 9:24, Daniel Patriarca wrote:
> I just installed python, then mysql, then django on my windows 7 machine
> and I think it worked because I ran the import django comand from python
> and nothing barked at me. I thought. yeah... time to hit the tutorial but
> the first thing it tells me to do is cd to a directory. Is there a unix
> emulator that got installed on my windows machine or something?
a) cd works in the "windows shell"
b) http://cygwin.com/ where /bin/sh == bash
c) http://www.virtualbox.org/

c is your best option if you're able to reasonably replicate your
hosting environment.
--
Melvyn Sopacua

Daniel Roseman

unread,
Jun 14, 2012, 11:25:16 AM6/14/12
to django...@googlegroups.com
On Thursday, 14 June 2012 08:24:41 UTC+1, Daniel Patriarca wrote:
I just installed python, then mysql, then django on my windows 7 machine and I think it worked because I ran the import django comand from python and nothing barked at me.  I thought. yeah... time to hit the tutorial but the first thing it tells me to do is cd to a directory.  Is there a unix emulator that got installed on my windows machine or something?  I actually do some unix programming in ksh but this is my first time trying to program in a windows environment. Can someone help me get past step one in the tuturial!!! 

I rent space on a server run by hostmonster.com.  Would it be a better idea for me to learn how to do all this straight on my server instead of windows anyways?  I don't even know how to tell if the django stuff works within my hosting environment.

-dan

No need for Unix or cygwin. cd works perfectly well in Windows, as does Django generally. What specific problem are you having?
--
DR. 

Gerald Klein

unread,
Jun 14, 2012, 11:40:25 AM6/14/12
to django...@googlegroups.com
If I understand you correctly it just asking you to enter a directory via cli, although you may not have ksh,bash or whatever windows still uses a filesystem. run "cmd" from the start menu run prompt. Then navigate to the directory they are instructing, some simple commands are duplicated between both worlds 'cd' being one of them, they are getting you located in relation to the python environment that you need to access. 

On Thu, Jun 14, 2012 at 2:24 AM, Daniel Patriarca <danielp...@gmail.com> wrote:
I just installed python, then mysql, then django on my windows 7 machine and I think it worked because I ran the import django comand from python and nothing barked at me.  I thought. yeah... time to hit the tutorial but the first thing it tells me to do is cd to a directory.  Is there a unix emulator that got installed on my windows machine or something?  I actually do some unix programming in ksh but this is my first time trying to program in a windows environment. Can someone help me get past step one in the tuturial!!! 

I rent space on a server run by hostmonster.com.  Would it be a better idea for me to learn how to do all this straight on my server instead of windows anyways?  I don't even know how to tell if the django stuff works within my hosting environment.

-dan

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/IJqLi0kFog4J.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--

Gerald Klein DBA

Cont...@geraldklein.com

www.geraldklein.com

j...@zognet.com

708-599-0352


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580 



Melvyn Sopacua

unread,
Jun 17, 2012, 3:15:53 PM6/17/12
to django...@googlegroups.com
On 14-6-2012 17:25, Daniel Roseman wrote:

>> I rent space on a server run by hostmonster.com. Would it be a better
>> idea for me to learn how to do all this straight on my server instead of
>> windows anyways? I don't even know how to tell if the django stuff works
>> within my hosting environment.

>
> No need for Unix or cygwin. cd works perfectly well in Windows, as does
> Django generally. What specific problem are you having?

The unix/cygwin comment was related to that part specifically. Either
way, off-list I received indication that his problem is related to the
windows path, and putting that back on the list:

On 14-6-2012 18:35, Daniel Patriarca wrote:
> - I entered <django-admin.py startproject mysiteand> hit enter
>
> - I got the error that django-admin.py is not recognized as an internal or
> external command, operable program or batch file.

In this case, you need to alter the windows PATH variable. I totally
forgot how to do that, something with My Computer and right-clicks.
Maybe somebody else can chime in.
--
Melvyn Sopacua

Vincent

unread,
Jun 18, 2012, 7:18:07 AM6/18/12
to django...@googlegroups.com
I had the same problem as you do.

You can try the instructions on this site:

Remember to restart your cmd prompt after you changed the environment variables though. I didn't and it took me sometime to figure out that the reason the environment variables didn't change was because I did not restart my shell/cmd prompt. Hope this helps.

--Vincent
Reply all
Reply to author
Forward
0 new messages