{"issue":{"title":"sys.path order incorrect on Windows","user":{"login":"rvanlaar","id":710771,"url":"https://api.github.com/users/rvanlaar","gravatar_id":"701288f165cd8c7d54be97427095ed17","avatar_url":"https://secure.gravatar.com/avatar/701288f165cd8c7d54be97427095ed17?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-27T21:40:45Z","milestone":null,"state":"open","updated_at":"2011-12-27T21:40:45Z","labels":[{"name":"In Progress","url":"https://api.github.com/repos/rvanlaar/djangorecipe/labels/In+Progress","color":"ddffdd"},{"name":"Undecided","url":"https://api.github.com/repos/rvanlaar/djangorecipe/labels/Undecided","color":"ffdddd"}],"id":2666552,"closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/rvanlaar/djangorecipe/issues/38","body":"I have Django 1.1 installed in Windows. I am using buildout to create a Django installation using Django 1.2.\n\nThe generated sys.path in django.wsgi-script.py (and the other scripts) has this:\n\n  'c:\\\\python26\\\\lib\\\\site-packages',\n  'c:\\\\home\\\\dhat\\\\webapps\\\\portal-1.0\\\\myproject\\\\parts\\\\django',\n\nwhich makes the new installation use the system Django, not the buildout version needed.\nIf I reorder those 2 lines it works correctly.\n\nHere's my buildout.cfg:\n\n[buildout]\nparts = python django django-patches css dojo\ndevelop = .\neggs = django-notify \n\t\t\t dojango\n\t\t\t django-maintenancemode\n\t\t\t xlrd\n\t\t\t xlwt\n\t\t\t titlecase\nportal_python = 2.6\nportal_django = 1.2\ndojango_version = dojango-0.4.6-py${buildout:portal_python}\ndojo_version = 1.4.2\ndownload-cache = ${buildout:directory}\\..\\download-cache\n\n[python]\nrecipe = zc.recipe.egg\ninterpreter = python\neggs = ${buildout:eggs}\n\n[django]\nrecipe = djangorecipe\nversion = ${buildout:portal_django}\nproject = myproject\nprojectegg = myproject\nsettings = settings\nwsgi = true\n#wsgilog = ${buildout:directory}\\var\\rp.log\nextra-paths = ${buildout:directory}\\..\n\t\t\t\t\t\t\t${buildout:directory}\\portal\neggs = ${buildout:eggs}\ntest = portal\n\t\t\t events\n\n[django-patches]\n# fix for Django ticket 11797\n# support Dojo 1.4 in Dojango\nrecipe = iw.recipe.cmd\non_install = true\non_update = true\ncmds =\n\tcopy ${buildout:directory}\\patches\\1.2\\client.py ${buildout:directory}\\parts\\django\\django\\test\n\tcopy ${buildout:directory}\\patches\\dojango\\conf\\settings.py ${buildout:directory}\\eggs\\dojango-0.4.6-py2.6.egg\\dojango\\conf\n\t\n[css]\nrecipe = iw.recipe.cmd\non_install = true\non_update = true\ncmds =\n\tmkdir ${buildout:directory}\\..\\var\n\tmkdir ${buildout:directory}\\var\n\tmkdir ${buildout:directory}\\var\\django_cache\n\tmkdir ${buildout:directory}\\var\\django_sessions\n\tmkdir \\home\\dhat\\portal\\rp\n\tmkdir \\home\\dhat\\portal\\rp\\teacher\n\tmkdir \\home\\dhat\\portal\\admin\n  xcopy ${buildout:directory}\\rp\\* \\home\\dhat\\portal\\rp /E /D /Y\n  copy ${buildout:directory}\\config\\${buildout:portal}\\settings_local.py ${buildout:directory}\n  copy ${buildout:directory}\\bin\\django.wsgi-script.py ${buildout:directory}\\..\\myproject.wsgi\n \n[dojo]\nrecipe = hexagonit.recipe.download\nstrip-top-level-dir = true\ndestination = ${buildout:directory}/eggs/${buildout:dojango_version}.egg/dojango/dojo-media/src/${buildout:dojo_version}\nurl = http://download.dojotoolkit.org/release-${buildout:dojo_version}/dojo-release-${buildout:dojo_version}-src.tar.gz","number":38,"url":"https://api.github.com/repos/rvanlaar/djangorecipe/issues/38","comments":0,"assignee":null},"action":"opened"}