Replace repo_name with app_name for Sphinx config

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 also 'django_xxx'.