Skip to content

Commit

Permalink
Introduce PREREQ_APPS in settings
Browse files Browse the repository at this point in the history
I think this makes the code easier to read.
  • Loading branch information
gisle committed Mar 14, 2011
1 parent d618a52 commit 141d2c9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"apiv1",
]

INSTALLED_APPS = [
PREREQ_APPS = [
# Django
"django.contrib.admin",
"django.contrib.auth",
Expand Down Expand Up @@ -191,7 +191,9 @@
"pinax.apps.account",
"pinax.apps.signup_codes",
"pinax.apps.analytics",
] + PROJECT_APPS
]

INSTALLED_APPS = PREREQ_APPS + PROJECT_APPS

FIXTURE_DIRS = [
os.path.join(PROJECT_ROOT, "fixtures"),
Expand Down Expand Up @@ -256,8 +258,10 @@
TEST_RUNNER = 'testrunner.OurCoverageRunner'

COVERAGE_MODULE_EXCLUDES = [
'tests$', 'settings$', 'urls$', 'locale$', 'migrations', 'fixtures',
] + INSTALLED_APPS[:-len(PROJECT_APPS)]
'tests$', 'settings$', 'urls$', 'locale$',
'migrations', 'fixtures',
]
COVERAGE_MODULE_EXCLUES += PREREQ_APPS
COVERAGE_REPORT_HTML_OUTPUT_DIR = "coverage"


Expand Down

0 comments on commit 141d2c9

Please sign in to comment.