I got errors like the following while trying to logout of Django Admin:
ValueError at /admin/mymodels/mymodel/12/admin/logout/
invalid literal for int() with base 10: ‘12/admin/logout’
Request Method: GET
Request URL: http://127.0.0.1/admin/mymodels/mymodel/12/admin/logout/
Exception Type: ValueError
Exception Value:invalid literal for int() with base 10: ‘12/admin/logout’
Turns out it’s bug listed here: http://code.djangoproject.com/ticket/10061
A temporary suggestion that works was made by carljm
In case it’s helpful to others: the simplest and least invasive temporary workaround is to just add this line in your urls.py:
admin.site.root_path = ‘/admin/’
If you run the admin at an alternate URL, just use the correct one here; if you run multiple admin instances, you can set the root_path for each one in the same way.