-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rob Hudson schrieb: > OK, this is baffling. Tonight I've been working locally adding a new > app to my project. I got enough of it going and wanted to publish to > my server. So I updated via SVN on my server, ran validate to check > for errors, then ran syncdb, the models got installed, I reloaded > Apache and logged into the admin and the new app and models aren't > showing up. > > To troubleshoot, I've done all of the following: > > * Check my settings.py to see that the app is listed there. > * Reload and restart Apache multiple times. > * Clear my browser cache. > * Try a different browser. > * Check validation again. > * Check database tables exist by using ./manage.py dbshell (it's > there) > * Use ./manage.py shell and import the app from the command line (it > works) > * Create a new record in the shell and save it (that worked too) > * Tested closing the shell, opening it again, and pulling out the > record I just added (that works) > * Tried going to where it should be "/admin/appname/modelname/" and > get a 404. > > But for the life of me I can't figure out why the app isn't appearing > in the admin. What's left to check? What's the process Django goes > through to determine if something shows up in the admin? > > (I have a feeling I'm missing something amazingly stupid.) > > Thanks, > Rob > > inside the model class, add the class Admin.
class model(models.Modell): (...your model...) class Admin(): pass #or special adminoptions greetz Paul Rauch -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iQIVAwUBRsFeTRG67lyyQrltAQLgTA/+PywQ12wklumBCuLNP5OeoEq6z8DhidBJ lNzvFxx+lUQcBDiA+ubVnULZy7NnaT8u1KoXVUTpkEPboymoXOjDfuh+4C00YOep iwPMfDF2q5QFNjR15N7kFR5h/klG8Y/jnyXcLIfyou/gS2GH0/edWYcagDXXrpzo qYb1H4J9nifp4vwLF7v2hHCiz80s2AlyA5ZlfHfW1ngNujVxIWtPvXNP3tTafGqx hH07C3JVCcr3KYXFjxvUdLQOUx5bBc/ermwEWoFUCWUFPovS8FWh/tRdCRmS1RuM YdGniQ/FFzMU7VJvcbypsiJXvhPpRjm4fHFxMQdN0NiZM+Nv55+ixvkgyBaKbegi eEeBcBfOU4C1VC54aSs5MzaCF4XtbrshHpoWILJH/yfqnyRX7koeNqqpkPmNMOyC nqoB0gJ4y/ip4sOIoruStQ44kxozJHHXAaNpmmPeJenMV8HO5pjq41qUjsZdDg/V uQQjzvO+RJzrGEPqCEYimcJEf6li8+MD3v2jN9eCBggyKIQWuAHlxl3z6EcxtBXE qgJthg8jxqMAKkFaEbgboruifAaAL1NGJU9wmQZbokdixv18XAaU/ml3iKObdsJw tmhaj8M5zz8pcMHEiukS9l64dIjxuAV230/mYkk8ySGfX7Pbf8dg85dWGygrRCKS XU/Iek5aouI= =uRv5 -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---