Permalink
Browse files

Create settings and a common app

  • Loading branch information...
1 parent 5a85f07 commit 29cb4a9978f7e011a2c748646811b305e2917196 @davedash davedash committed Feb 22, 2012
View
0 apps/common/__init__.py
No changes.
View
3 apps/common/templates/common/bookmarklet.html
@@ -0,0 +1,3 @@
+<a class="bookmarklet" href="javascript:void((function(){var%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','{{ settings.SITE_URL }}/media/js/bookmarklet.js?'+new Date());document.body.appendChild(e)})());">
+ Submit an Issue
+</a>
View
12 settings/__init__.py
@@ -1,6 +1,8 @@
-from .base import *
+from funfactory.settings_base import *
+from settings.initial import *
+from settings.default import *
+
try:
- from .local import *
-except ImportError, exc:
- exc.args = tuple(['%s (did you rename settings/local.py-dist?)' % exc.args[0]])
- raise exc
+ from settings.local import *
+except ImportError:
+ pass
View
1 settings/base.py → settings/default.py
@@ -127,6 +127,7 @@
]
INSTALLED_APPS = list(INSTALLED_APPS) + [
+ 'common', # comes first so it always takes precedence.
'input', # comes first so it always takes precedence.
'api',
View
1 settings/initial.py
@@ -0,0 +1 @@
+SITE_URL = 'http://input.mozilla.org'

0 comments on commit 29cb4a9

Please sign in to comment.