-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters