Problem mit Django-Models
Verfasst: Sonntag 16. Dezember 2007, 12:11
Ich bin gerade dabei Django zu lernen und arbeite mich durch das Django book durch, aber jetzt komme ich nicht weiter. Ich bin gerade in Kapitel 6 und versuche die Admin-Site zu aktivieren, aber bei Punkt 2 kommt immer eine Fehlermeldung. In der Anleitung steht folgendes:
Könnt ihr mir sagen, was ich machen muss, oder wo ich einen Fehler gemacht habe?
Bei mir kommt folgende Fehlermeldung, wenn ich "python manage.py syncdb" ausführe:Install the admin models. Simply add "django.contrib.admin" to your INSTALLED_APPS setting and run "python manage.py syncdb" to install the extra tables the admin uses.
Note: When you first ran "syncdb", you were probably asked about creating a superuser. If you didn’t that time, you’ll need to run django/contrib/auth/bin/create_superuser.py to create an admin user. Otherwise you won’t be able to log into the admin interface.
Außerdem wurde ich nicht gefragt, ob ich einen superuser erstellen will, als ich das erste Mal "python manage.py syncdb" ausgeführt habe.admin.logentry: 'user' has relation with model User, which has not been installed
admin.logentry: 'content_type' has relation with model ContentType, which has not been installed
2 errors found
Könnt ihr mir sagen, was ich machen muss, oder wo ich einen Fehler gemacht habe?