I did add those lines, but it does look like that's what's causing a problem.
>From your instructions.... ### You'll want to add the following environment variables. Open or create the file .bash_profile in your home directory and add the following lines at the end of that file: PYTHONBIN=/opt/local/Library/Frameworks/Python.framework/Versions/2.4/ bin export PATH=/opt/local/bin:/opt/local/sbin:$PYTHONBIN:$PATH Once that's done, close the terminal window and open a new one. To test to make sure you've got the right PATH setup, run the command "python -V". (thats a capital V). If you see version 2.4.something, you're good. If you see version 2.3.something then you're running the built in python and something forward is likely to break. Check the lines above in your .base_profile file to make sure the PATH environment variable is being updated properly. ### I created that file at ~/.bash_profile -- but every time I run "python -V" it gives me an output of "Python 2.3.5", so definitely not working how we want. (Also, checking /opt/local I cannot find a /Library (nor the enclosed / Frameworks/Python.framework/Versions/2.4/bin), though I really don't know if that's important or not.) Thoughts on what I need to fix to get my .bash_profile to work properly? Thanks once more in advance! On Feb 23, 12:02 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote: > Well, I wrote those instructions... :-) > > From the traceback, you don't seem to be using the Python 2.4 from > DarwinPorts/MacPorts (assuming you installed that). That is generally > because your PATH hasn't been updated on the command line. > > You want to make sure you get the lines: > > PYTHONBIN=/opt/local/Library/Frameworks/Python.framework/Versions/2.4/bin > export PATH=/opt/local/bin:/opt/local/sbin:$PYTHONBIN:$PATH > > added to your .bash_profile and then open a new window so those settings are > taking effect. It's an easy to miss set, but very important. We're > essentially installing a newer copy of Python in addition to the one that > comes built in with MacOS X, and we need to make sure to be using the right > one (in this case, the newer one). > > You might need to redo the steps of downloading Django and running > setup.pyas well. > > -joe > > On 2/23/07, Benjamin Chait <[EMAIL PROTECTED]> wrote: > > > > > I followed the instructions at > > >http://www.rhonabwy.com/wp/2006/07/20/installing-django-on-macos-x-de... > > on installing locally, and that all worked out. > > > However, when I get to the syncdb command in the first tutorial, it > > gives an error. > > > Additionally, running the "python manage.py runserver" command outputs > > this in Terminal: > > > Validating models... > > Skipping validation because things aren't configured properly. > > Django version 0.96-pre, using settings 'mysite.settings' > > Development server is running athttp://127.0.0.1:8000/ > > Quit the server with CONTROL-C. > > Traceback (most recent call last): > > File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ > > python2.3/site-packages/django/core/servers/basehttp.py", line 272, in > > run > > self.result = application(self.environ, self.start_response) > > File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ > > python2.3/site-packages/django/core/servers/basehttp.py", line 614, in > > __call__ > > return self.application(environ, start_response) > > File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ > > python2.3/site-packages/django/core/handlers/wsgi.py", line 184, in > > __call__ > > self.load_middleware() > > File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ > > python2.3/site-packages/django/core/handlers/base.py", line 31, in > > load_middleware > > raise exceptions.ImproperlyConfigured, 'Error importing middleware > > %s: "%s"' % (mw_module, e) > > ImproperlyConfigured: Error importing middleware > > django.contrib.sessions.middleware: "cannot import name backend" > > [23/Feb/2007 10:13:20] "GET / HTTP/1.1" 500 988 > > > I'm trying to run sqlite3 with a database at /tmp/mysite.db -- I'm > > wondering if trying to run sqlite3 is causing these problems, should > > I go along and install PostgreSQL? > > > I really have no experience with subversion/Terminal installations, so > > any help would be very much appreciated. > > > Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---