id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 1251 'django_admin_log' table not created by manage.py init arnold.brownie@… Adrian Holovaty "I have installed development version of django and after creating my first project I noticed that while creating subsequent projects, 'django_admin_log' table doesn't get created when running command 'python manage.py init'. So, of course when I try to log to admin section I get the error page: ProgrammingError at /admin/ ERROR: relation ""django_admin_log"" does not exist SELECT ""django_admin_log"".""id"",""django_admin_log"".""action_time"",""django_admin_log"".""user_id"",""django_admin_log"".""content_type_id"",""django_admin_log"".""object_id"",""django_admin_log"".""object_repr"",""django_admin_log"".""action_flag"",""django_admin_log"".""change_message"",""auth_users"".""id"",""auth_users"".""username"",""auth_users"".""first_name"",""auth_users"".""last_name"",""auth_users"".""email"",""auth_users"".""password"",""auth_users"".""is_staff"",""auth_users"".""is_active"",""auth_users"".""is_superuser"",""auth_users"".""last_login"",""auth_users"".""date_joined"" FROM ""django_admin_log"",""auth_users"" WHERE ""django_admin_log"".""user_id"" = 1 AND ""django_admin_log"".""user_id"" = ""auth_users"".""id"" ORDER BY ""django_admin_log"".""action_time"" DESC LIMIT 10 Request Method: GET Request URL: http://patrick:8000/admin/ Exception Type: ProgrammingError Exception Value: ERROR: relation ""django_admin_log"" does not exist SELECT ""django_admin_log"".""id"",""django_admin_log"".""action_time"",""django_admin_log"".""user_id"",""django_admin_log"".""content_type_id"",""django_admin_log"".""object_id"",""django_admin_log"".""object_repr"",""django_admin_log"".""action_flag"",""django_admin_log"".""change_message"",""auth_users"".""id"",""auth_users"".""username"",""auth_users"".""first_name"",""auth_users"".""last_name"",""auth_users"".""email"",""auth_users"".""password"",""auth_users"".""is_staff"",""auth_users"".""is_active"",""auth_users"".""is_superuser"",""auth_users"".""last_login"",""auth_users"".""date_joined"" FROM ""django_admin_log"",""auth_users"" WHERE ""django_admin_log"".""user_id"" = 1 AND ""django_admin_log"".""user_id"" = ""auth_users"".""id"" ORDER BY ""django_admin_log"".""action_time"" DESC LIMIT 10 Exception Location: /usr/lib/python2.4/site-packages/django/core/db/base.py in execute, line 9 Template error In template /usr/lib/python2.4/site-packages/django/contrib/admin/templates/admin/index.html, error at line 54 The only way I could fix it is if I copy empty 'django_admin_log' table from another database" defect closed contrib.admin dev blocker invalid admin_log table Unreviewed 0 0 0 0 0 0