Re: django-admin.py startproject mysite... this command does nothing for me

67 views
Skip to first unread message

Joel Goldstick

unread,
Jul 23, 2012, 2:59:18 PM7/23/12
to django...@googlegroups.com
On Mon, Jul 23, 2012 at 12:38 PM, boxxtcy <wjh...@gmail.com> wrote:
> When trying to follow this tutorial, I get stuck after django-admin.py
> startproject mysite because no directory is created. I doubt the command is
> even being executed, all it brings up is the code in a notepad++ window. I
> have django installed properly because I can go to my python interpreter and
> type 'import django' and print the version. I have two different Python
> installs 2.6 and 2.7.3 I am using 2.7.3 and I no longer use 2.6. Could
> having multiple versions of Python affect Django? Please help!
>

Did you check all the caveats in the boxs below the initial
instructions? sounds like django-admin.py isn't being run. Try it
without the .py. If that fails, see if you can find where it is and
if its in your path

> --
> 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/-/6qtT4QQ6FPQJ.
> 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.



--
Joel Goldstick

boxxtcy

unread,
Jul 23, 2012, 3:58:46 PM7/23/12
to django...@googlegroups.com
I tried without the .py, still doesn't do anything.  django-admin.py lives in my C:\Python27\Scripts  just as it is supposed to.  I don't really see what the issue is :/


On Monday, July 23, 2012 2:59:18 PM UTC-4, Joel Goldstick wrote:
On Mon, Jul 23, 2012 at 12:38 PM, boxxtcy <wjh...@gmail.com> wrote:
> When trying to follow this tutorial, I get stuck after django-admin.py
> startproject mysite because no directory is created.  I doubt the command is
> even being executed, all it brings up is the code in a notepad++ window.  I
> have django installed properly because I can go to my python interpreter and
> type 'import django' and print the version.  I have two different Python
> installs 2.6 and 2.7.3  I am using 2.7.3 and I no longer use 2.6.  Could
> having multiple versions of Python affect Django?  Please help!
>

Did you check all the caveats in the boxs below the initial
instructions?  sounds like django-admin.py isn't being run.  Try it
without the .py.  If that fails, see if you can find where it is and
if its in your path

> --
> 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/-/6qtT4QQ6FPQJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.

Ramiro Morales

unread,
Jul 23, 2012, 4:12:29 PM7/23/12
to django...@googlegroups.com
On Mon, Jul 23, 2012 at 4:58 PM, boxxtcy <wjh...@gmail.com> wrote:
> I tried without the .py, still doesn't do anything. django-admin.py lives
> in my C:\Python27\Scripts just as it is supposed to. I don't really see
> what the issue is :/

Don't rely on the association of .py files with the Python interpeter
and executability of .py files features provided by the OS.

Simply specify the full path to the django-admin.py script
(and if needed, the full path to the Python interpeter).

As in:

python C:\Python27\Scripts\django-admin.py startproject foo

or

C:\Python27\python C:\Python27\Scripts\django-admin.py startproject foo

The basic concepts will always work. The above techniques will allow
you to execute script in any interpreted language on any platform.

HTH

--
Ramiro Morales
Reply all
Reply to author
Forward
Message has been deleted
0 new messages