If anyone is still following along I got past the last error by
specifically adding "django.db.backends.sqlite3.base" to my list of
includes.  This got me a little further.  The server will successfully
start up and I can make a request.  I got a traceback in the browser
about django.middleware.common not existing so I added that to the
include line.  The next one was django.contrib.sessions.middleware, so
I added that too.  Here's the current list of includes:

python py2app-setup.py py2app
--includes=django.contrib.auth,django.contrib.sessions,django.contrib.sites,django.contrib.admin,Quotes.quotes,django.db.backends.sqlite3.base,django.middleware.common,django.contrib.sessions.middleware

Currently in the browser I get the following error:

Traceback (most recent call last):

  File "django/core/servers/basehttp.pyc", line 272, in run

  File "django/core/servers/basehttp.pyc", line 615, in __call__

  File "django/core/handlers/wsgi.pyc", line 143, in __call__

  File "django/core/handlers/base.pyc", line 31, in load_middleware

ImproperlyConfigured: Error importing middleware
django.contrib.sessions.middleware: "cannot import name backend"

The interesting thing is... if I refresh the browser page it get's
beyond this point and continues to report missing modules.  I've
continued to add them as it finds them missing and am not up to this
point in my py2app build command:

python py2app-setup.py py2app
--includes=django.contrib.auth,django.contrib.sessions,django.contrib.sites,django.contrib.admin,Quotes.quotes,django.db.backends.sqlite3.base,django.middleware.common,django.contrib.sessions.middleware,django.template.defaulttags,django.template.defaultfilters,Quotes.settings,Quotes.urls,Quotes.quotes.models,Quotes.quotes.views,django.template.loader_tags,django.db.models.base

At this point, I get a ViewDoesNotExist error in the browser:

Traceback (most recent call last):
File "<unknown>" in ?

  ViewDoesNotExist at /quote/
  Tried index in module Quotes.quotes.views. Error was: 'module' object
has no attribute 'Model'

I do have an index method in my view.  The page works when I simply run
"python manage.py runserver", in other words, it works when not
packinging it via py2app.

I think this is as far as I'll get today.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to