Re: django db models in other app

2006-08-20 Thread Joshua Tacoma
Some configuration variables (like USE_I18N) must be defined. Defaults are set in django.conf.global_settings, which is the default first argument to settings.configure(). Following **keyword arguments are added to the resulting settings object. > settings.configure(mysettings) Could instead

Re: login requires only one argument?

2006-08-17 Thread Joshua Tacoma
I don't know about the infinite recursion, but the documentation says login() receives two arguments: request and a User object. http://www.djangoproject.com/documentation/authentication/#how-to-log-a-user-in I've got a working views.py that looks like this: from django.contrib.auth import

Re: How get user, included in generic views?

2006-07-11 Thread Joshua Tacoma
I don't know how to replicate it right now (I tried logging out and deleting cookies, no dice) but it did happen to me once or twice while I was developing something. If you only find this problem when you aren't logged in then treating 'not user' as equivalent to 'user.is_anonymous' should be

Re: Limiting table editing in admin interface

2006-07-11 Thread Joshua Tacoma
Setting permissions on a per-entry basis isn't supported yet but people (mostly Chris Long) are working on it: http://code.djangoproject.com/ticket/2270 http://code.djangoproject.com/wiki/RowLevelPermissions -- Joshua --~--~-~--~~~---~--~~ You received this