How can I run the manage.py script from withing django code?
You don't. Instead you call django.core.management.call_command().
django.core.management.call_command()