Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoor committed Feb 14, 2014
1 parent afc2468 commit c19b963
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .coverage.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[report]
omit=*/migrations/*,fabfile.py,sass.py,*settings.py,*wsgi*,*tests*
75 changes: 75 additions & 0 deletions conf/dev_local_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
#use for local development
import os

BASE_DIR = os.path.dirname(os.path.dirname(__file__))
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))

project = lambda: os.path.dirname(os.path.realpath(__file__))
location = lambda x: os.path.join(str(project()), str(x))

DEBUG = True

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.staticfiles',
'django.contrib.sites',
'localflavor',
'south',
'contactBox',
)

SITE_ID = 1

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': '',
'USER': '',
'PASSWORD': '',
'HOST': "127.0.0.1",
'PORT': '3306',
},
}

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.6/howto/static-files/
STATIC_ROOT = location(os.path.join("site_media", "static"))

# Additional directories which hold static files
STATICFILES_DIRS = [
location("static"),
]

STATICFILES_FINDERS = (
"django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder",
"compressor.finders.CompressorFinder",
)

# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/home/media/media.lawrence.com/media/"
MEDIA_ROOT = location(os.path.join("site_media", "media"))

# 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 = '/media/'

# URL prefix for static files.
# Example: "http://media.lawrence.com/static/"
STATIC_URL = "/static/"

ADMIN_MEDIA_ROOT = location(os.path.join("static", "admin"))

EMAIL_USE_TLS = True
EMAIL_HOST = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_HOST_USER = ''
EMAIL_PORT = 587
DEFAULT_FROM_EMAIL = ''
SERVER_EMAIL = ''

EMAIL_FROM = DEFAULT_FROM_EMAIL
12 changes: 12 additions & 0 deletions test_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,15 @@
from local_settings import *
except ImportError:
pass


import sys
TESTING = ('test' in sys.argv)
TEST_CHARSET = 'utf8'

if TESTING:
try:
from test_settings import * # pyflakes:ignore
update_settings_for_tests(locals())
except ImportError:
pass

0 comments on commit c19b963

Please sign in to comment.