I am having troubles with sqlite3 on my OSX 10.6 box, using fastcgi for deployment. On this box, the webserver is called user _www, and that explains some of the tricks I'm doing at the commandline, in the tests I show below. I've given the user _www both read and write permissions for the database. The tests indicate that it can read, but seemingly not write. Can anyone advise on what I should try next?
$ \rm dreamtof_development* $ python manage.py syncdb Creating table django_admin_log Creating table auth_permission Creating table auth_group Creating table auth_user Creating table auth_message Creating table django_content_type Creating table django_session Creating table django_site Creating table dreams_dream Creating table dreams_profanity Creating table tags_tag Creating table userprofiles_userprofile You just installed Django's auth system, which means you don't have any superusers defined. Would you like to create one now? (yes/no): yes Username (Leave blank to use 'kelley'): E-mail address: [email protected] Password: Password (again): Superuser created successfully. Installing index for admin.LogEntry model Installing index for auth.Permission model Installing index for auth.Message model $ python manage.py shell Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from django.contrib.auth.models import User >>> users = User.objects.all() >>> users [<User: kelley>] >>> u = User.objects.create_user(username="b", password="b", email="[email protected]") >>> u <User: b> >>> u.save() >>> users = User.objects.all() >>> users [<User: kelley>, <User: b>] >>> ^D $ chmod +a "_www allow read,write" dreamtof_development $ sudo -u _www python manage.py shell Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from django.contrib.auth.models import Use Traceback (most recent call last): File "<console>", line 1, in <module> ImportError: cannot import name Use >>> from django.contrib.auth.models import User >>> users = User.objects.all() >>> users [<User: kelley>, <User: b>] >>> u = User.objects.create_user(username="new", password="new", >>> email="[email protected]") >>> u.save() >>> users = User.objects.all() >>> users [<User: kelley>, <User: b>] >>> ^D --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

