Refactor. Add own login function to AMS - for attaching AMS to another site. Add url's name in ams urls.py etc.