I'm having some difficulty with the admin interface that has me
stumped and could use a clue or two.
I've a table that looks like this:
class Destination(models.Model):
name = models.CharField( 'Name', max_length = LENGTH_NAMES_LONG,
primary_key = True,
help_text = 'Destination name in form <node>/path')
...
The values of name are of the form
aaa/bbb/ccc
When I use the admin interface to edit one of these the admin screen
displays OK and when I save my save method executes (there is a print
in it) and the record is saved (I can examine it in MySQL and it's
there). All seems well except that I get the following error screen
message:
Page not found (404)
Request Method: GET
Request URL: http://localhost:8000/admin/xx/destination/Standby_1/RAID/
destination object with primary key u'Standby_1/RAID' does not exist
You're seeing this error because you have DEBUG = True in your Django
settings file. Change that to False, and Django will display a
standard 404 page.
The name value was 'Standby_1/RAID/RAID_1'. Can anyone provide any
clues about what is happening?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---