Re: django-admin.py and manage.py both fail in dev

2013-02-10 Thread David
Problem solved.  Once I straightened out my path issues it came down to the 
following:

*python manage.py validate*

works fine while
*
manage.py validate*

does not. It just returns the help text as if I had run *manage.py* with no 
parameters. 

Clearly either Win7 or Python33 or Django 1.6dev is not passing the 
validate parameter to manage.py.  I recall that under Win NT and XP you 
could adjust how parameters were passed when a program was set to execute 
an extension by default.  If you can still set that I cannot find it.


On Sunday, February 10, 2013 1:22:17 AM UTC-5, David wrote:
>
> When I run either django-admin.py or manage.py all I get is the help 
> screen for the command regardless of the parameters I give.
>
> For example: 
> *django-admin.py startproject mysite* 
> returns the help screen.  It does not create mysite/.
>
> I am working with Python33 and the Dev version of Django refreshed with 
> git. 
>
> Clearly django-admin is on the python path since it is executed.  
> *
> import django
> print(django.get_version())*
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: django-admin.py and manage.py both fail in dev

2013-02-10 Thread Ramiro Morales
On Sun, Feb 10, 2013 at 3:22 AM, David Flory  wrote:
> When I run either django-admin.py or manage.py all I get is the help screen
> for the command regardless of the parameters I give.
>
> For example:
> django-admin.py startproject mysite
> returns the help screen.  It does not create mysite/.
>
> I am working with Python33 and the Dev version of Django refreshed with git.
>
> Clearly django-admin is on the python path since it is executed.
>
> import django
> print(django.get_version())

What that shows is that Django is in the Python search path.

It doesn't mean django-admin.py is on the OS PATH.

What you need to do is execute django-admin.py through your
Python interpreter like any Python script:

C:\Users\Me\work> C:\python27\python path\to\django-admin.py startproject mysite

(Replace C:\python27\ with the path to your python.exe. Or if you have
already added such dor to your OS PATH then you can simply use
>python django-admin.py startproject mysite)

Don't rely on any brittle faking of the .py file extension as a native
so it behaves like a native executable or .bat file. IMHO all of them
are broken in some way or another under Windows. Hopefully the PEP 397
'py' launcher included with Python >= 3.3 will solve this for good.

Write it explicitly Instead like shown above. That's something that
works on every platform for every interpreted programming language.

Same advice goes to executing the manage.py script you will get
afterward. e.g.:

mysite> C:\python27\python manage.py startapp my1stapp

Regards,

-- 
Ramiro Morales
@ramiromorales

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: django-admin.py and manage.py both fail in dev

2013-02-10 Thread David
and that the code fragment in my OP works and returns the dev version.

On Sunday, February 10, 2013 10:43:14 AM UTC-5, David Flory wrote:
>
> I should have said that I am running Windows 7 (64 bit) and 64 bit VC10 
> versions of my software. 

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.