Admin panel: changing management and management ip addresses blocked.

Use reverse:
https://docs.djangoproject.com/en/dev/ref/contrib/admin/#reversing-admin-urls