Two additional notes for this issue:
1. Clicking on _any_ model in the admin causes the same TypeError.
2. Clicking on "+Add" in admin for the User model yields a blank form!
Clicking on "+Add" for any other model shows a valid form.

On Jan 27, 3:08 pm, grahamu <[email protected]> wrote:
> I'm having a problem with django admin working for one local project
> and not another. Both use the same version of Django (SVN-12311). Both
> have very similar settings.py files.
>
> The issue appears when I click on an app model class name in the root
> admin list (at "/admin/"). In this case I was trying to view "Cam"
> instances from the "cam" application. I believe admin is trying to
> show a list of "Cam" instances, but instead I get an error:
>
>   "Exception Value: changelist_view() takes at least 2 arguments (1
> given)"
>
> Now I'm pretty sure there isn't a problem with Django here, but there
> is also precious little to guide me in my search for where my code
> goes wrong. Can anyone with similar experience provide some advice?
> Thanks!
>
> Graham
>
> From the traceback:
>
> Environment:
>
> Request Method: GET
> Request URL:http://localhost:8000/admin/cam/cam/
> Django Version: 1.2 alpha 1 SVN-12311
> Python Version: 2.5.2
> Installed Applications:
> ['django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.sites',
>  'django.contrib.admin',
>  'django.contrib.admindocs',
>  'django.contrib.markup',
>  'django.contrib.humanize',
>  'django.contrib.comments',
>  'django_extensions',
>  'django.contrib.flatpages',
>  'mobileadmin',
>  'registration',
>  'serviceclient',
>  'scoresys',
>  'south',
>  'home',
>  'weatherstation',
>  'weather',
>  'food',
>  'blog',
>  'cam',
>  'miniblog',
>  'grill',
>  'fantasy']
> Installed Middleware:
> ('django.middleware.common.CommonMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>  'django.middleware.csrf.CsrfViewMiddleware',
>  'django.middleware.doc.XViewMiddleware',
>  'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware')
>
> Traceback:
> File "c:\django\trunk\django\core\handlers\base.py" in get_response
>   101.                     response = callback(request,
> *callback_args, **callback_kwargs)
> File "c:\django\trunk\django\contrib\admin\options.py" in wrapper
>   238.                 return self.admin_site.admin_view(view)(*args,
> **kwargs)
> File "c:\django\trunk\django\utils\decorators.py" in __call__
>   36.         return self.decorator(self.func)(*args, **kwargs)
> File "c:\django\trunk\django\utils\decorators.py" in _wrapped_view
>   86.                     response = view_func(request, *args,
> **kwargs)
>
> Exception Type: TypeError at /admin/cam/cam/
> Exception Value: changelist_view() takes at least 2 arguments (1
> given)

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

Reply via email to