Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

repos now set in the settings

  • Loading branch information...
commit 0be397a643169919dc8dddc10916c3a70f7b317f 1 parent c0892b0
@pydanny pydanny authored
Showing with 5 additions and 4 deletions.
  1. +1 −4 apps/package/repos/__init__.py
  2. +4 −0 settings.py
View
5 apps/package/repos/__init__.py
@@ -19,7 +19,4 @@ def get_repo_for_repo_url(repo_url):
return unsupported_handler
def supported_repos():
- supported = ["bitbucket", "github"]
- if settings.LAUNCHPAD_ACTIVE:
- supported += ["launchpad"]
- return supported
+ return settings.SUPPORTED_REPO
View
4 settings.py
@@ -287,6 +287,10 @@
if LOCAL_INSTALLED_APPS:
INSTALLED_APPS.extend(LOCAL_INSTALLED_APPS)
+SUPPORTED_REPO = ["bitbucket", "github"]
+if LAUNCHPAD_ACTIVE:
+ SUPPORTED_REPO += ["launchpad"]
+
import djcelery
djcelery.setup_loader()
Please sign in to comment.
Something went wrong with that request. Please try again.