Re: django-admin.py not functional on 64 bit Vista

2010-11-20 Thread michael11717
I just found the BitNami DjangoStack

-- 
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.



Re: django-admin.py not functional on 64 bit Vista

2010-11-20 Thread michael11717
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.



Re: django-admin.py not functional on 64 bit Vista

2010-11-19 Thread Robbington
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.



django-admin.py not functional on 64 bit Vista

2010-11-18 Thread michael11717
hi, "django-admin.py startproject myproject" is not functional on my
64 bit Windows Vista SP2

resulting in an "usage" error message: "Usage: django-admin.py
subcommand [options] [args]"

the "usage" error message would seem to indicate django-admin.py is
indeed running,

I believe that I have installed Django correctly:
>python
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win32
>>> import django
>>> print django.VERSION
(1, 2, 3, 'final', 0)

I appended MS-DOS PATH: with "C:\hp\bin\Python\Lib\site-packages\django
\bin"
which allows me to run django-admin.py

however, perhaps Windows Vista is not allowing subsequent .py programs
to run?

I've seen that "http://code.djangoproject.com/ticket/6739; suggests
how to
create a  symbolic link to Django python installation from a user
project directory;
however for some reason my 64 bit Vista SP2 does not allow me to do
that:

mklink django C:\Users\michael\Documents\Django_projects
\django
Access is denied.

Windows Vista SP2 denies me access to create the symbolic link even
though
I am running Command Prompt "as Administrator"

I also tried copying the entire Django installation into my user
project folder,
however even there I am unable to get beyond the initial  "django-
admin.py "
which results in the usage error mentioned above

I also realized that I am not able to run startproject.py directly
from
the \Lib\site-packages\django\ base directory,   error:
"'startproject.py' is not recognized as an internal or external
command,
 operable program or batch file."

like I say, I appended MS-DOS PATH: with "C:\hp\bin\Python\Lib\site-
packages\django\bin"
however other python programs within Django seem not to be visible to
within the
MS-DOS Command Prompt

and there would seem to be a whole lot of other Python files
throughout the entire Django application

I've reached limit of my ability to figure out how to get Django
functional on my 64 bit Vista SP2

-- 
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.