Replace repo_name with app_name.

Handle common case where repo_name is 'django-xxx' and app_name is 'xxx'. Also works when repo_name is 'django_xxx' and app_name is 'django_xxx'