well, seems like the ole good-news/bad-news cliche:
it would seem that you are correct, it does not seem to be a problem
with version of windows;
however I am still not able to get Django functioning on my Widows
Vista
the only version of Django that I was able to find to install was
Django-1.2.3.tar.gz
which I decompressed and de-tared via Cygwin;
then ran "Python setup.py install" via MS-DOS Command Prompt "as
Administrator"
I'm thinking that perhaps the Django-1.2.3.tar.gz version is a Linux
version,
however like I say it was the only version I could find,
is there perhaps a Django-1.2.3.zip or Django-1.2.3.exe version
somewhere?
I'm now thinking that it might very well be a configuration problem
I tried "unsetting" "the environmental variable for
DJANGO_SETTING_MODULE" by commenting out:
# ENVIRONMENT_VARIABLE = "DJANGO_SETTINGS_MODULE" in __init__.py
however django-admin.py did not like that, and complained:
File "C:\hp\bin\Python\lib\site-packages\django\conf
\__init__.py", line 32, in _setup
settings_module = os.environ[ENVIRONMENT_VARIABLE]
NameError: global name 'ENVIRONMENT_VARIABLE' is not defined
I looked around a bit, however I can not figure out how to go about
configuring Django for Windows Vista
like I say, is there perhaps a Django-1.2.3.zip or Django-1.2.3.exe
version somewhere?
or might someone be able to explain how to configue Django for Windows
Vista?
the complete MS-DOS stack trace was:
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\michael>path
PATH=c:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows
\system32;
C:\Windows;C:\Windows\System32\Wbem;C:\hp\bin\Python;C:\Program Files
(x86)\Quic
kTime\QTSystem\;C:\cygwin;C:\Program Files (x86)\Google
\google_appengine\;C:\hp\
bin\Python\Lib\site-packages\django\bin
C:\Users\michael>django-admin.py startproject myproject
Usage: django-admin.py subcommand [options] [args]
Options:
-v VERBOSITY, --verbosity=VERBOSITY
Verbosity level; 0=minimal output, 1=normal
output,
2=all output
--settings=SETTINGS The Python path to a settings module, e.g.
"myproject.settings.main". If this isn't
provided, the
DJANGO_SETTINGS_MODULE environment variable
will be
used.
--pythonpath=PYTHONPATH
A directory to add to the Python path, e.g.
"/home/djangoprojects/myproject".
--traceback Print traceback on exception
--version show program's version number and exit
-h, --helpshow this help message and exit
Traceback (most recent call last):
File "C:\hp\bin\Python\Lib\site-packages\django\bin\django-
admin.py", line 5,
in
management.execute_from_command_line()
File "C:\hp\bin\Python\lib\site-packages\django\core\management
\__init__.py",
line 429, in execute_from_command_line
utility.execute()
File "C:\hp\bin\Python\lib\site-packages\django\core\management
\__init__.py",
line 368, in execute
sys.stderr.write(self.main_help_text() + '\n')
File "C:\hp\bin\Python\lib\site-packages\django\core\management
\__init__.py",
line 239, in main_help_text
commands = get_commands().keys()
File "C:\hp\bin\Python\lib\site-packages\django\core\management
\__init__.py",
line 101, in get_commands
apps = settings.INSTALLED_APPS
File "C:\hp\bin\Python\lib\site-packages\django\utils
\functional.py", line 276
, in __getattr__
self._setup()
File "C:\hp\bin\Python\lib\site-packages\django\conf\__init__.py",
line 32, in
_setup
settings_module = os.environ[ENVIRONMENT_VARIABLE]
NameError: global name 'ENVIRONMENT_VARIABLE' is not defined
C:\Users\michael>
On Nov 19, 4:03 am, Robbington wrote:
> Hi Micheal,
>
> Pretty sure it has nothing to do with your version of windows.
>
> appended MS-DOS PATH: with "C:\hp\bin\Python\Lib\site-packages
> \django
> \bin"
> which allows me to run django-admin.py
>
> If you have installed Python and django propely, there is no need to
> append anything. It should work straight out the box.
>
> I'm thinking you disabled Django-admin.py by setting the environmental
> varible for DJANGO_SETTINGS_MODULE. Try unsetting it to see if that
> works.
>
> Rob
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.