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-development-version/
> 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 at http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to