* Graham Dumpleton <graham.dumple...@gmail.com> [110325 16:43]: > > > On Saturday, March 26, 2011 8:56:53 AM UTC+11, tim042849 wrote: > > > > I've set up python 2.7 on slax. > > I've also set up django 1.1 on slax. Slax does things a little > > differently, so it appears. django is installed at > > /usr/lib/python2.5/site-packages/django > > > > python 2.7 does not know where to find django, because the path to > > django is not being added to sys.path. > > > > I've created a .pth file that has as it's contents: > > ## > > /usr/lib/python2.5/site-packages/django > > ## > > > > You should never mix installed packages from different versions of Python. > You may get away with it if they are pure code files, but not if there are > compiled C extension modules. Whoa! I'm just setting up a tutorial here. I am *not* compiling any extensions. > Your .pth file didn't work because you referred to the Django directory > rather than the parent directory, but if you do the latter you will trigger > the problem above of potentially mixing C extension modules from different > versions of Python as you may have other stuff installed in that > site-packages. End result can be that you will crash Python. Haven't so far. > Use a virtualenv against Python 2.7 like others say and reinstall Django > into the Python 2.7 virtualenv so you don't risk this mixing of versions and > crashing your Python when run. Remember: python 2.7 is no longer living there. ******************* * Only python 2.5 * ******************* Remember also, that I am just setting this up as a tutorial. If python crashes, no big deal. Thanks -- Tim tim at johnsons-web dot com or akwebsoft dot com http://www.akwebsoft.com
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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.