Permalink
Browse files

repos now set in the settings

  • Loading branch information...
1 parent c0892b0 commit 0be397a643169919dc8dddc10916c3a70f7b317f @pydanny pydanny committed Mar 17, 2011
Showing with 5 additions and 4 deletions.
  1. +1 −4 apps/package/repos/__init__.py
  2. +4 −0 settings.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
@@ -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()

0 comments on commit 0be397a

Please sign in to comment.