A little more info this morning... Bob Ippolito posted a followup with some guidance. It makes it much simpler but I'm still seeing the same errors. Here's the latest py2app-setup.py:
#!/usr/bin/env python from setuptools import setup setup( app=["run.py"], setup_requires=["py2app"], options=dict(py2app=dict(packages=["django","Quotes"],)), ) Now I simply run this from within the Django-0.95 directory: python py2app-setup.py py2app And then launch Django: # /dist/run.app/Contents/MacOS/run Validating models... Skipping validation because things aren't configured properly. Django version 0.95, using settings 'Quotes.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CONTROL-C. Everytime the first page hit always produces the following error yet concurrent page requests do not show this error. This seems very odd to me and suggests something strange is happening... 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" [04/Aug/2006 13:49:45] "GET / HTTP/1.1" 500 409 Requesting "/" gives me an approriate error since I don't have the urls.py configured to do anything for this: [04/Aug/2006 13:49:50] "GET / HTTP/1.1" 404 1952 In the HTML it shows this: Using the URLconf defined in Quotes.urls, Django tried these URL patterns, in this order: 1. ^quote/$ 2. ^admin/ The current URL, /, didn't match any of these. If I try to hit my "/quote/" page I get a 500 error at the terminal: [04/Aug/2006 13:52:50] "GET /quote/ HTTP/1.1" 500 25750 this error in the browser: ViewDoesNotExist at /quote/ Tried index in module Quotes.quotes.views. Error was: 'module' object has no attribute 'Model' Request Method: GET Request URL: http://localhost:8000/quote/ Exception Type: ViewDoesNotExist Exception Value: Tried index in module Quotes.quotes.views. Error was: 'module' object has no attribute 'Model' Exception Location: <unknown> in ?, line ? I do have an index method in my quotes/views.py and the error message is a bit confusing to me. Trying "/admin/" I get another 500 error and the following: ImportError at /admin/ No module named urls Request Method: GET Request URL: http://localhost:8000/admin/ Exception Type: ImportError Exception Value: No module named urls Exception Location: <unknown> in ?, line ? Looking at the py2app output I can verify that django.contrib.admin.urls is being pulled in. I'm curious if one of the Django developers could test this and possibly look at some of the error messages and the code to see if there are ways to do the same thing that is compatible with py2app? Is that even a sane approach? Or if there are recommendations for next steps I'd appreciate it. I'm feeling like this is close. Django successfully reports a 404. But it is having trouble with my app and the admin so some parts seem to be missing. I feel I'm stuck on progress on the Mac using py2app. I may switch to Windows with py2exe and see if that produces the same errors. Thanks, Rob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---