views:

21

answers:

1

I have installed Django on Win7 and try

 >>> import django
 >>> django.VERSION
(1, 2, 3, 'final', 0)

it works. But when I call django-admin.py startproject myappname, Windows show me dialog with ask what program it should use to open this command. If I check python.exe then django-admin.py always show me help about django-admin.py

A: 

Windows show me dialog with ask what program it should use to open this command.

You can avoid this by using Python explicitly, provided Python.exe is in your PATH. For e.g. python /path/to/django-admin.py startproject myappname.

If I check python.exe then django-admin.py always show me help about django-admin.py

From the documentation for django-admin.py startproject:

This command is disabled when the --settings option to django-admin.py is used, or when the environment variable DJANGO_SETTINGS_MODULE has been set. To re-enable it in these situations, either omit the --settings option or unset DJANGO_SETTINGS_MODULE.

Can you check if you have set an environment variable named DJANGO_SETTINGS_MODULE? If yes, remove/unset it and try again.

Manoj Govindan
Problem resolved thank you, but python was already in PATH directory.
Mike