{% trans %}
- This isn't a real badge, but it shows a few things you can do.
- {% endtrans %}
- {# TODO: Put the URL for default badge image in settings #}
- {% set image_url = "/media/img/default-badge.png" %}
-
-
{{_("Title:")}}
-
{{ _('Test Badger') }}
-
{% trans %}
- Try to keep this to 5 words, or less.
- {% endtrans %}
-
{{_("Image:")}}
-
-
{% trans %}
- This should be a square image, around 256x256
- pixels. The system will automatically crop and
- resize images that fall outside these guidelines.
- Also, consider using simple artwork that stays
- distinctive at a variety of sizes and viewing
- distances. Lots of small details and words are hard
- to see when the badge image is either small or far
- away.
- {% endtrans %}
-
-
{{_("Description:")}}
-
{{ _("For having qualities like a test pilot, but more badgery.") }}
-
{% trans %}
- Use this to describe why someone would earn this
- badge. Explain the conditions and criteria a person
- would need to satisfy to receive this badge as an
- award.
- {% endtrans %}
-
-
{{ _("Tags:") }}
-
- {% set tags = [ 'tests', 'A2makerfaire2012', 'badgers' ] %}
- {% for tag in tags %}
-
- {% set example_tag_url = url('badger.badges_list', tag_name='a2makerfaire2012') %}
-
{% trans %}
- Use tags to group your badge with others. These are
- like hashtags on Twitter.
- These are best used sparingly:
- Try not to enter more than 2-5 concise topics or keywords. Events
- often use tags to help gather badges that will be
- offered (eg. A2makerfaire2012).
- {% endtrans %}
+{% endif %}
diff --git a/badger/templates/badger_vanilla/includes/awards_as_badges_list.html b/badger_example/templates/badger/includes/awards_as_badges_list.html
similarity index 100%
rename from badger/templates/badger_vanilla/includes/awards_as_badges_list.html
rename to badger_example/templates/badger/includes/awards_as_badges_list.html
diff --git a/badger/templates/badger_vanilla/includes/awards_list.html b/badger_example/templates/badger/includes/awards_list.html
similarity index 100%
rename from badger/templates/badger_vanilla/includes/awards_list.html
rename to badger_example/templates/badger/includes/awards_list.html
diff --git a/badger/templates/badger_vanilla/includes/badge_full.html b/badger_example/templates/badger/includes/badge_full.html
similarity index 66%
rename from badger/templates/badger_vanilla/includes/badge_full.html
rename to badger_example/templates/badger/includes/badge_full.html
index dcd99ca..2fbf727 100644
--- a/badger/templates/badger_vanilla/includes/badge_full.html
+++ b/badger_example/templates/badger/includes/badge_full.html
@@ -1,5 +1,18 @@
{% load badger_tags %}
+{% if not award %}
+
+ {% if badge|permissions_for:request.user|key:'edit_by' %}
+
- {% include "badger_playdoh/includes/badge_full.html" %}
+ {% include "badger/includes/badge_full.html" %}
diff --git a/badger/templates/badger_playdoh/notification/award_accepted/full.html b/badger_example/templates/badger/notification/award_accepted/full.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/award_accepted/full.html
rename to badger_example/templates/badger/notification/award_accepted/full.html
diff --git a/badger/templates/badger_playdoh/notification/award_accepted/full.txt b/badger_example/templates/badger/notification/award_accepted/full.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/award_accepted/full.txt
rename to badger_example/templates/badger/notification/award_accepted/full.txt
diff --git a/badger/templates/badger_playdoh/notification/award_accepted/notice.html b/badger_example/templates/badger/notification/award_accepted/notice.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/award_accepted/notice.html
rename to badger_example/templates/badger/notification/award_accepted/notice.html
diff --git a/badger/templates/badger_playdoh/notification/award_accepted/short.txt b/badger_example/templates/badger/notification/award_accepted/short.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/award_accepted/short.txt
rename to badger_example/templates/badger/notification/award_accepted/short.txt
diff --git a/badger/templates/badger_playdoh/notification/award_declined/full.html b/badger_example/templates/badger/notification/award_declined/full.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/award_declined/full.html
rename to badger_example/templates/badger/notification/award_declined/full.html
diff --git a/badger/templates/badger_playdoh/notification/award_declined/full.txt b/badger_example/templates/badger/notification/award_declined/full.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/award_declined/full.txt
rename to badger_example/templates/badger/notification/award_declined/full.txt
diff --git a/badger/templates/badger_playdoh/notification/award_declined/notice.html b/badger_example/templates/badger/notification/award_declined/notice.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/award_declined/notice.html
rename to badger_example/templates/badger/notification/award_declined/notice.html
diff --git a/badger/templates/badger_playdoh/notification/award_declined/short.txt b/badger_example/templates/badger/notification/award_declined/short.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/award_declined/short.txt
rename to badger_example/templates/badger/notification/award_declined/short.txt
diff --git a/badger/templates/badger_playdoh/notification/award_received/full.html b/badger_example/templates/badger/notification/award_received/full.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/award_received/full.html
rename to badger_example/templates/badger/notification/award_received/full.html
diff --git a/badger/templates/badger_playdoh/notification/award_received/full.txt b/badger_example/templates/badger/notification/award_received/full.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/award_received/full.txt
rename to badger_example/templates/badger/notification/award_received/full.txt
diff --git a/badger/templates/badger_playdoh/notification/award_received/notice.html b/badger_example/templates/badger/notification/award_received/notice.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/award_received/notice.html
rename to badger_example/templates/badger/notification/award_received/notice.html
diff --git a/badger/templates/badger_playdoh/notification/award_received/short.txt b/badger_example/templates/badger/notification/award_received/short.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/award_received/short.txt
rename to badger_example/templates/badger/notification/award_received/short.txt
diff --git a/badger/templates/badger_playdoh/notification/badge_awarded/full.html b/badger_example/templates/badger/notification/badge_awarded/full.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/badge_awarded/full.html
rename to badger_example/templates/badger/notification/badge_awarded/full.html
diff --git a/badger/templates/badger_playdoh/notification/badge_awarded/full.txt b/badger_example/templates/badger/notification/badge_awarded/full.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/badge_awarded/full.txt
rename to badger_example/templates/badger/notification/badge_awarded/full.txt
diff --git a/badger/templates/badger_playdoh/notification/badge_awarded/notice.html b/badger_example/templates/badger/notification/badge_awarded/notice.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/badge_awarded/notice.html
rename to badger_example/templates/badger/notification/badge_awarded/notice.html
diff --git a/badger/templates/badger_playdoh/notification/badge_awarded/short.txt b/badger_example/templates/badger/notification/badge_awarded/short.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/badge_awarded/short.txt
rename to badger_example/templates/badger/notification/badge_awarded/short.txt
diff --git a/badger/templates/badger_playdoh/notification/badge_edited/full.html b/badger_example/templates/badger/notification/badge_edited/full.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/badge_edited/full.html
rename to badger_example/templates/badger/notification/badge_edited/full.html
diff --git a/badger/templates/badger_playdoh/notification/badge_edited/full.txt b/badger_example/templates/badger/notification/badge_edited/full.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/badge_edited/full.txt
rename to badger_example/templates/badger/notification/badge_edited/full.txt
diff --git a/badger/templates/badger_playdoh/notification/badge_edited/notice.html b/badger_example/templates/badger/notification/badge_edited/notice.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/badge_edited/notice.html
rename to badger_example/templates/badger/notification/badge_edited/notice.html
diff --git a/badger/templates/badger_playdoh/notification/badge_edited/short.txt b/badger_example/templates/badger/notification/badge_edited/short.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/badge_edited/short.txt
rename to badger_example/templates/badger/notification/badge_edited/short.txt
diff --git a/badger/templates/badger_playdoh/notification/base.html b/badger_example/templates/badger/notification/base.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/base.html
rename to badger_example/templates/badger/notification/base.html
diff --git a/badger/templates/badger_playdoh/notification/email_body.txt b/badger_example/templates/badger/notification/email_body.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/email_body.txt
rename to badger_example/templates/badger/notification/email_body.txt
diff --git a/badger/templates/badger_playdoh/notification/email_subject.txt b/badger_example/templates/badger/notification/email_subject.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/email_subject.txt
rename to badger_example/templates/badger/notification/email_subject.txt
diff --git a/badger/templates/badger_playdoh/notification/full.html b/badger_example/templates/badger/notification/full.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/full.html
rename to badger_example/templates/badger/notification/full.html
diff --git a/badger/templates/badger_playdoh/notification/full.txt b/badger_example/templates/badger/notification/full.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/full.txt
rename to badger_example/templates/badger/notification/full.txt
diff --git a/badger/templates/badger_playdoh/notification/nomination_accepted/full.html b/badger_example/templates/badger/notification/nomination_accepted/full.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_accepted/full.html
rename to badger_example/templates/badger/notification/nomination_accepted/full.html
diff --git a/badger/templates/badger_playdoh/notification/nomination_accepted/full.txt b/badger_example/templates/badger/notification/nomination_accepted/full.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_accepted/full.txt
rename to badger_example/templates/badger/notification/nomination_accepted/full.txt
diff --git a/badger/templates/badger_playdoh/notification/nomination_accepted/notice.html b/badger_example/templates/badger/notification/nomination_accepted/notice.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_accepted/notice.html
rename to badger_example/templates/badger/notification/nomination_accepted/notice.html
diff --git a/badger/templates/badger_playdoh/notification/nomination_accepted/short.txt b/badger_example/templates/badger/notification/nomination_accepted/short.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_accepted/short.txt
rename to badger_example/templates/badger/notification/nomination_accepted/short.txt
diff --git a/badger/templates/badger_playdoh/notification/nomination_approved/full.html b/badger_example/templates/badger/notification/nomination_approved/full.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_approved/full.html
rename to badger_example/templates/badger/notification/nomination_approved/full.html
diff --git a/badger/templates/badger_playdoh/notification/nomination_approved/full.txt b/badger_example/templates/badger/notification/nomination_approved/full.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_approved/full.txt
rename to badger_example/templates/badger/notification/nomination_approved/full.txt
diff --git a/badger/templates/badger_playdoh/notification/nomination_approved/notice.html b/badger_example/templates/badger/notification/nomination_approved/notice.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_approved/notice.html
rename to badger_example/templates/badger/notification/nomination_approved/notice.html
diff --git a/badger/templates/badger_playdoh/notification/nomination_approved/short.txt b/badger_example/templates/badger/notification/nomination_approved/short.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_approved/short.txt
rename to badger_example/templates/badger/notification/nomination_approved/short.txt
diff --git a/badger/templates/badger_playdoh/notification/nomination_declined/full.html b/badger_example/templates/badger/notification/nomination_declined/full.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_declined/full.html
rename to badger_example/templates/badger/notification/nomination_declined/full.html
diff --git a/badger/templates/badger_playdoh/notification/nomination_declined/full.txt b/badger_example/templates/badger/notification/nomination_declined/full.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_declined/full.txt
rename to badger_example/templates/badger/notification/nomination_declined/full.txt
diff --git a/badger/templates/badger_playdoh/notification/nomination_declined/notice.html b/badger_example/templates/badger/notification/nomination_declined/notice.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_declined/notice.html
rename to badger_example/templates/badger/notification/nomination_declined/notice.html
diff --git a/badger/templates/badger_playdoh/notification/nomination_declined/short.txt b/badger_example/templates/badger/notification/nomination_declined/short.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_declined/short.txt
rename to badger_example/templates/badger/notification/nomination_declined/short.txt
diff --git a/badger/templates/badger_playdoh/notification/nomination_received/full.html b/badger_example/templates/badger/notification/nomination_received/full.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_received/full.html
rename to badger_example/templates/badger/notification/nomination_received/full.html
diff --git a/badger/templates/badger_playdoh/notification/nomination_received/full.txt b/badger_example/templates/badger/notification/nomination_received/full.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_received/full.txt
rename to badger_example/templates/badger/notification/nomination_received/full.txt
diff --git a/badger/templates/badger_playdoh/notification/nomination_received/notice.html b/badger_example/templates/badger/notification/nomination_received/notice.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_received/notice.html
rename to badger_example/templates/badger/notification/nomination_received/notice.html
diff --git a/badger/templates/badger_playdoh/notification/nomination_received/short.txt b/badger_example/templates/badger/notification/nomination_received/short.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_received/short.txt
rename to badger_example/templates/badger/notification/nomination_received/short.txt
diff --git a/badger/templates/badger_playdoh/notification/nomination_rejected/full.html b/badger_example/templates/badger/notification/nomination_rejected/full.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_rejected/full.html
rename to badger_example/templates/badger/notification/nomination_rejected/full.html
diff --git a/badger/templates/badger_playdoh/notification/nomination_rejected/full.txt b/badger_example/templates/badger/notification/nomination_rejected/full.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_rejected/full.txt
rename to badger_example/templates/badger/notification/nomination_rejected/full.txt
diff --git a/badger/templates/badger_playdoh/notification/nomination_rejected/notice.html b/badger_example/templates/badger/notification/nomination_rejected/notice.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_rejected/notice.html
rename to badger_example/templates/badger/notification/nomination_rejected/notice.html
diff --git a/badger/templates/badger_playdoh/notification/nomination_rejected/short.txt b/badger_example/templates/badger/notification/nomination_rejected/short.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_rejected/short.txt
rename to badger_example/templates/badger/notification/nomination_rejected/short.txt
diff --git a/badger/templates/badger_playdoh/notification/nomination_submitted/full.html b/badger_example/templates/badger/notification/nomination_submitted/full.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_submitted/full.html
rename to badger_example/templates/badger/notification/nomination_submitted/full.html
diff --git a/badger/templates/badger_playdoh/notification/nomination_submitted/full.txt b/badger_example/templates/badger/notification/nomination_submitted/full.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_submitted/full.txt
rename to badger_example/templates/badger/notification/nomination_submitted/full.txt
diff --git a/badger/templates/badger_playdoh/notification/nomination_submitted/notice.html b/badger_example/templates/badger/notification/nomination_submitted/notice.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_submitted/notice.html
rename to badger_example/templates/badger/notification/nomination_submitted/notice.html
diff --git a/badger/templates/badger_playdoh/notification/nomination_submitted/short.txt b/badger_example/templates/badger/notification/nomination_submitted/short.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/nomination_submitted/short.txt
rename to badger_example/templates/badger/notification/nomination_submitted/short.txt
diff --git a/badger/templates/badger_playdoh/notification/notice.html b/badger_example/templates/badger/notification/notice.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/notice.html
rename to badger_example/templates/badger/notification/notice.html
diff --git a/badger/templates/badger_playdoh/notification/notice_settings.html b/badger_example/templates/badger/notification/notice_settings.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/notice_settings.html
rename to badger_example/templates/badger/notification/notice_settings.html
diff --git a/badger/templates/badger_playdoh/notification/notices.html b/badger_example/templates/badger/notification/notices.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/notices.html
rename to badger_example/templates/badger/notification/notices.html
diff --git a/badger/templates/badger_playdoh/notification/short.txt b/badger_example/templates/badger/notification/short.txt
similarity index 100%
rename from badger/templates/badger_playdoh/notification/short.txt
rename to badger_example/templates/badger/notification/short.txt
diff --git a/badger/templates/badger_playdoh/notification/single.html b/badger_example/templates/badger/notification/single.html
similarity index 100%
rename from badger/templates/badger_playdoh/notification/single.html
rename to badger_example/templates/badger/notification/single.html
diff --git a/badger/templates/badger_playdoh/staff_tools.html b/badger_example/templates/badger/staff_tools.html
similarity index 84%
rename from badger/templates/badger_playdoh/staff_tools.html
rename to badger_example/templates/badger/staff_tools.html
index d0b671f..85908ab 100644
--- a/badger/templates/badger_playdoh/staff_tools.html
+++ b/badger_example/templates/badger/staff_tools.html
@@ -1,4 +1,4 @@
-{% extends "badger_playdoh/base.html" %}
+{% extends "badger/base.html" %}
{% block pageid %}staff_tools{% endblock %}
@@ -11,10 +11,10 @@
Grant multiple claim codes
diff --git a/badger_example/templates/base.html b/badger_example/templates/base.html
new file mode 100644
index 0000000..e404857
--- /dev/null
+++ b/badger_example/templates/base.html
@@ -0,0 +1,8 @@
+
+
+ {% block extrahead %}{% endblock %}
+
+
+ {% block content %}{% endblock %}
+
+
diff --git a/badger_example/urls.py b/badger_example/urls.py
new file mode 100644
index 0000000..5978c18
--- /dev/null
+++ b/badger_example/urls.py
@@ -0,0 +1,16 @@
+from django.conf.urls import patterns, include, url
+
+from django.contrib import admin
+admin.autodiscover()
+
+import badger
+badger.autodiscover()
+
+urlpatterns = patterns('',
+ # Examples:
+ # url(r'^$', 'badger_example.views.home', name='home'),
+ # url(r'^badger_example/', include('badger_example.foo.urls')),
+
+ url(r'^admin/', include(admin.site.urls)),
+ url(r'^badges/', include('badger.urls')),
+)
diff --git a/manage.py b/manage.py
new file mode 100755
index 0000000..3aaaca9
--- /dev/null
+++ b/manage.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python
+import os
+import sys
+
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_settings")
+
+def nose_collector():
+ import nose
+ return nose.collector()
+
+if __name__ == "__main__":
+ from django.core.management import execute_from_command_line
+ execute_from_command_line(sys.argv)
diff --git a/runtests.py b/runtests.py
index dcaa592..0ee304e 100644
--- a/runtests.py
+++ b/runtests.py
@@ -3,61 +3,7 @@ import os, sys
from django.conf import settings
import nose
-
-settings.configure(
- SITE_ID = 1,
- DEBUG = True,
- TEST_RUNNER = 'django_nose.NoseTestSuiteRunner',
- ROOT_URLCONF = 'badger.tests.urls',
- DATABASES = {
- 'default': {
- 'NAME': 'test-badger.db',
- 'ENGINE': 'django.db.backends.sqlite3',
- }
- },
- SUPPORTED_NONLOCALES = ['media', 'admin'],
- INSTALLED_APPS = [
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.admin',
- 'django.contrib.sites',
- 'django.contrib.messages',
- 'django_nose',
- 'tower',
- 'funfactory',
- 'badger',
- ],
- MIDDLEWARE_CLASSES = (
- 'django.middleware.common.CommonMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'badger.middleware.RecentAwardsMiddleware',
- ),
- TEMPLATE_DIRS = (
- 'badger/tests/badger_example/templates',
- ),
- TEMPLATE_LOADERS = (
- 'jingo.Loader',
- 'django.template.loaders.filesystem.Loader',
- 'django.template.loaders.app_directories.Loader',
- ),
- TEMPLATE_CONTEXT_PROCESSORS = (
- 'django.contrib.auth.context_processors.auth',
- 'django.core.context_processors.debug',
- 'django.core.context_processors.media',
- 'django.core.context_processors.request',
- 'session_csrf.context_processor',
- 'django.contrib.messages.context_processors.messages',
- 'funfactory.context_processors.i18n',
- 'funfactory.context_processors.globals',
- ),
- MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage',
- BADGER_TEMPLATE_BASE = 'badger_playdoh',
- LANGUAGE_URL_MAP = {'en-US': 'en_US'}
-)
-
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_settings")
def runtests():
from django.core.management import call_command
diff --git a/setup.py b/setup.py
index fc6d3d0..fafd11e 100755
--- a/setup.py
+++ b/setup.py
@@ -33,19 +33,10 @@ setup(
'PIL',
],
tests_require=[
- 'django-setuptest',
- 'funfactory',
- 'tower',
- 'django-session-csrf',
- 'jinja2',
- 'jingo',
'nose',
'django-nose',
'pyquery',
'feedparser',
- 'django-runtests',
],
- #test_suite='runtests.collector',
- #test_suite='nose.collector',
- test_suite='runtests.runtests',
+ test_suite='manage.nose_collector',
)
diff --git a/test_settings.py b/test_settings.py
new file mode 100644
index 0000000..ebe8c14
--- /dev/null
+++ b/test_settings.py
@@ -0,0 +1,160 @@
+# Django settings for badger_example project.
+
+DEBUG = True
+TEMPLATE_DEBUG = DEBUG
+
+SITE_ID = 1
+
+ADMINS = (
+ # ('Your Name', 'your_email@example.com'),
+)
+
+TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
+
+MANAGERS = ADMINS
+
+DATABASES = {
+ 'default': {
+ 'NAME': 'test-badger.db',
+ 'ENGINE': 'django.db.backends.sqlite3',
+ }
+}
+
+# Local time zone for this installation. Choices can be found here:
+# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
+# although not all choices may be available on all operating systems.
+# In a Windows environment this must be set to your system time zone.
+TIME_ZONE = 'America/Chicago'
+
+# Language code for this installation. All choices can be found here:
+# http://www.i18nguy.com/unicode/language-identifiers.html
+LANGUAGE_CODE = 'en-us'
+
+SITE_ID = 1
+
+# If you set this to False, Django will make some optimizations so as not
+# to load the internationalization machinery.
+USE_I18N = True
+
+# If you set this to False, Django will not format dates, numbers and
+# calendars according to the current locale.
+USE_L10N = True
+
+# If you set this to False, Django will not use timezone-aware datetimes.
+USE_TZ = False # True
+
+# Absolute filesystem path to the directory that will hold user-uploaded files.
+# Example: "/home/media/media.lawrence.com/media/"
+MEDIA_ROOT = ''
+
+# URL that handles the media served from MEDIA_ROOT. Make sure to use a
+# trailing slash.
+# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
+MEDIA_URL = ''
+
+# Absolute path to the directory static files should be collected to.
+# Don't put anything in this directory yourself; store your static files
+# in apps' "static/" subdirectories and in STATICFILES_DIRS.
+# Example: "/home/media/media.lawrence.com/static/"
+STATIC_ROOT = ''
+
+# URL prefix for static files.
+# Example: "http://media.lawrence.com/static/"
+STATIC_URL = '/static/'
+
+# Additional locations of static files
+STATICFILES_DIRS = (
+ # Put strings here, like "/home/html/static" or "C:/www/django/static".
+ # Always use forward slashes, even on Windows.
+ # Don't forget to use absolute paths, not relative paths.
+)
+
+# List of finder classes that know how to find static files in
+# various locations.
+STATICFILES_FINDERS = (
+ 'django.contrib.staticfiles.finders.FileSystemFinder',
+ 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
+# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
+)
+
+# Make this unique, and don't share it with anybody.
+SECRET_KEY = 'e-=ohaa)s7s3+qeye9^l2!qb&^-ak5o4sty69=vhv@fnxjn7_q'
+
+# List of callables that know how to import templates from various sources.
+TEMPLATE_LOADERS = (
+ #'jingo.Loader',
+ 'django.template.loaders.filesystem.Loader',
+ 'django.template.loaders.app_directories.Loader',
+# 'django.template.loaders.eggs.Loader',
+)
+
+TEMPLATE_CONTEXT_PROCESSORS = (
+ 'django.contrib.auth.context_processors.auth',
+ 'django.core.context_processors.debug',
+ 'django.core.context_processors.media',
+ 'django.core.context_processors.request',
+ 'django.contrib.messages.context_processors.messages',
+)
+
+MIDDLEWARE_CLASSES = (
+ 'django.middleware.common.CommonMiddleware',
+ 'django.contrib.sessions.middleware.SessionMiddleware',
+ 'django.middleware.csrf.CsrfViewMiddleware',
+ 'django.contrib.auth.middleware.AuthenticationMiddleware',
+ 'django.contrib.messages.middleware.MessageMiddleware',
+ 'badger.middleware.RecentAwardsMiddleware',
+)
+
+ROOT_URLCONF = 'badger_example.urls'
+
+TEMPLATE_DIRS = (
+ # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
+ # Always use forward slashes, even on Windows.
+ # Don't forget to use absolute paths, not relative paths.
+)
+
+INSTALLED_APPS = [
+ 'django.contrib.auth',
+ 'django.contrib.contenttypes',
+ 'django.contrib.sessions',
+ 'django.contrib.sites',
+ 'django.contrib.messages',
+ 'django.contrib.staticfiles',
+ 'django.contrib.admin',
+ 'django_nose',
+ 'south',
+ 'badger_example',
+ 'badger',
+]
+
+MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage'
+BADGER_TEMPLATE_BASE = 'badger'
+
+# A sample logging configuration. The only tangible logging
+# performed by this configuration is to send an email to
+# the site admins on every HTTP 500 error when DEBUG=False.
+# See http://docs.djangoproject.com/en/dev/topics/logging for
+# more details on how to customize your logging configuration.
+LOGGING = {
+ 'version': 1,
+ 'disable_existing_loggers': False,
+ 'filters': {
+ 'require_debug_false': {
+ '()': 'django.utils.log.RequireDebugFalse'
+ }
+ },
+ 'handlers': {
+ 'mail_admins': {
+ 'level': 'ERROR',
+ 'filters': ['require_debug_false'],
+ 'class': 'django.utils.log.AdminEmailHandler'
+ }
+ },
+ 'loggers': {
+ 'django.request': {
+ 'handlers': ['mail_admins'],
+ 'level': 'ERROR',
+ 'propagate': True,
+ },
+ }
+}