Created
January 5, 2017 01:11
-
-
Save grantmcconnaughey/90843495f27e5c054f97fd4dc1256af8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Future git services will go here | |
GITHUB = 'gh' | |
DUMMY = 'dummy' | |
def service(request): | |
services = (GITHUB, DUMMY) | |
the_service = None | |
for _service in services: | |
if request.path.startswith('/{}/'.format(_service)): | |
the_service = _service | |
return {'service': the_service} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment