On Sep 2, 6:58 am, Karen Tracey <[email protected]> wrote: > On Wed, Sep 1, 2010 at 1:23 PM, vgarvardt <[email protected]> wrote: > > Django 1.2.1 > > > Created new project, set DB settings (postgresql_psycopg2), > > MEDIA_ROOT, MEDIA_URL, TEMPLATE_DIRS, added django.contrib.admin to > > INSTALLED_APPS. > > > In urls.py uncommented: > > from django.contrib import admin > > admin.autodiscover() > > > and > > > (r'^admin/', include(admin.site.urls)), > > > Run manage.py syncdb - tables and superuser were successfully created. > > Run manage.py runserver, openedhttp://127.0.0.1:8000/admin/in > > browser - got admin site login page, entered superuser login/pwd, > > pressed Login button and got django debug error page: > > > TypeError at /admin/ > > > add() takes at most 6 arguments (7 given) > > > Request Method: POST > > Request URL: http://127.0.0.1:8000/admin/ > > Exception Type: TypeError > > Exception Value: > > > add() takes at most 6 arguments (7 given) > > > Exception Location: /usr/local/lib/python2.6/dist-packages/django/db/ > > models/base.py in _collect_sub_objects, line 558 > > Python Executable: /usr/bin/python > > Python Version: 2.6.5 > > etc. > > > What am I doing wrong? > > The full traceback would help diagnose. Is there any possibility your > installation of Django is corrupt -- like from a partially-applied install > of 1.2.1 over 1.1? That's rather what it looks like. > > Karen > --http://tracey.org/kmt/
Completely uninstalling Django and installing 1.2.1 helped. Thank you for help. -- 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.

