Opened 3 years ago

Closed 3 years ago

#17329 closed Uncategorized (worksforme)

rev 17165 django-admin.py startproject has wrong directory structure on Windows 64 bit but not Linux 64 bit

Reported by: harijay Owned by: nobody
Component: Core (Management commands) Version: master
Severity: Normal Keywords: django-admin.py startproject
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I am running revision 17165
Python 2.7.2 64 bit on windows

#################
On Windows 7 : python 64 bit 2.7.2 :
#################
When I issue the command
c:\>C:\djtrunk\django\bin\django-admin.py startproject WebDispStruct

c:\>cd WebDispStruct

c:\WebDispStruct>ls
WebDispStruct manage.py

c:\WebDispStruct>cd WebDispStruct

c:\WebDispStruct\WebDispStruct>ls
init.py settings.py urls.py wsgi.py

##################
On Ubuntu python 2.6.5 . Django revision 17165
##################

hari@hari:~$ /home/hari/djtrunk/django/bin/django-admin.py startproject WebDispStructLinux
hari@hari:~$ cd WebDispStructLinux/
hari@hari:~/WebDispStructLinux$ ls
init.py manage.py settings.py urls.py
hari@hari:~/WebDispStructLinux$

Why does startproject behave incorrectly on Windows .

Even if I try calling the command as follows
c:\>C:\Python27\python.exe C:\djtrunk\django\bin\django-admin.py startproject Al
lPathstest

I get the same result.

Some additional information

I do have some utilities like mysysgit loaded to the Windows command prompt.
I also have the setting Python.CompiledFile in the registry set to
""C:\Python27\python.exe" "%1" %*"

I dont know what this above setting does. But I thought the alls paths test got around this invocation.

Change History (2)

comment:1 Changed 3 years ago by harijay

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

I re-tried the startproject with 32 bit python 2.7.2 on the same 64 bit windows system.
This time the command django-admin.py worked as it should

c:\>C:\Python27_32\python.exe C:\djtrunk\django\bin\django-admin.py startproject AllPathstest

c:\>cd AllPathstest

c:\AllPathstest>ls

init.py manage.py settings.py urls.py

comment:2 Changed 3 years ago by carljm

  • Resolution set to worksforme
  • Status changed from new to closed

It sounds like you have different versions of Django installed in your different test environments. The layout you are seeing on "Windows 7 : python 64 bit 2.7.2" (with two levels of directories, and manage.py separated from the importable files) is the new correct layout for Django trunk / 1.4. The other layout (with manage.py intermingled with the other files) is the old one for Django 1.3 and previous.

Note: See TracTickets for help on using tickets.
Back to Top