-
Notifications
You must be signed in to change notification settings - Fork 80
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
11 changed files
with
2,013 additions
and
18 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 |
---|---|---|
|
@@ -10,4 +10,5 @@ | |
/dist/ | ||
/docs/_build/ | ||
/htmlcov/ | ||
/node_modules/ | ||
/wagtailstreamforms.egg-info/ |
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,7 @@ | ||
// Variables | ||
//–––––––––––––––––––––––––––––––––––––––––––––––––– | ||
|
||
/* | ||
* start with a copy of the current varables file: | ||
* https://github.com/AccentDesign/karma-css/blob/master/scss/_variables.scss | ||
*/ |
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,13 @@ | ||
/*! Karma-CSS v1.5.0 MIT License | http://karmacss.com | https://github.com/accentdesign/karma-css */ | ||
|
||
|
||
@import "variables"; | ||
|
||
/* karma-css core */ | ||
@import "karma-css/scss/variables"; | ||
@import "karma-css/scss/import"; | ||
|
||
/* add your custom modules here */ | ||
|
||
/* karma-css utilities */ | ||
@import "karma-css/scss/utilities"; |
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 |
---|---|---|
@@ -1,17 +1,18 @@ | ||
import os | ||
from os import environ | ||
from os.path import dirname, abspath, join | ||
|
||
from django.core.urlresolvers import reverse_lazy | ||
|
||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||
SITE_DIR = dirname(abspath(__file__)) | ||
|
||
|
||
# Security | ||
|
||
SECRET_KEY = os.environ.get('SECRET_KEY', '') | ||
SECRET_KEY = environ.get('SECRET_KEY', '') | ||
|
||
DEBUG = True | ||
|
||
ALLOWED_HOSTS = [] + os.environ.get('ALLOWED_HOSTS', '').split(',') | ||
ALLOWED_HOSTS = [] + environ.get('ALLOWED_HOSTS', '').split(',') | ||
|
||
|
||
# Application definition | ||
|
@@ -70,7 +71,7 @@ | |
{ | ||
'BACKEND': 'django.template.backends.django.DjangoTemplates', | ||
'DIRS': [ | ||
os.path.join(BASE_DIR, 'templates'), | ||
join(SITE_DIR, 'templates'), | ||
], | ||
'APP_DIRS': True, | ||
'OPTIONS': { | ||
|
@@ -93,22 +94,22 @@ | |
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.postgresql_psycopg2', | ||
'HOST': os.environ.get('RDS_HOSTNAME'), | ||
'PORT': os.environ.get('RDS_PORT'), | ||
'NAME': os.environ.get('RDS_DB_NAME'), | ||
'USER': os.environ.get('RDS_USERNAME'), | ||
'PASSWORD': os.environ.get('RDS_PASSWORD'), | ||
'HOST': environ.get('RDS_HOSTNAME'), | ||
'PORT': environ.get('RDS_PORT'), | ||
'NAME': environ.get('RDS_DB_NAME'), | ||
'USER': environ.get('RDS_USERNAME'), | ||
'PASSWORD': environ.get('RDS_PASSWORD'), | ||
} | ||
} | ||
|
||
|
||
|
||
DEFAULT_FROM_EMAIL = 'Django <[email protected]>' | ||
EMAIL_HOST = os.environ.get('EMAIL_HOST') | ||
EMAIL_PORT = os.environ.get('EMAIL_PORT') | ||
EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER') | ||
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD') | ||
EMAIL_HOST = environ.get('EMAIL_HOST') | ||
EMAIL_PORT = environ.get('EMAIL_PORT') | ||
EMAIL_HOST_USER = environ.get('EMAIL_HOST_USER') | ||
EMAIL_HOST_PASSWORD = environ.get('EMAIL_HOST_PASSWORD') | ||
EMAIL_USE_TLS = False | ||
EMAIL_USE_SSL = False | ||
|
||
|
@@ -140,12 +141,9 @@ | |
# Static files (CSS, JavaScript, Images) | ||
|
||
STATICFILES_DIRS = [ | ||
os.path.join(BASE_DIR, "static"), | ||
join(SITE_DIR, "static"), | ||
] | ||
STATIC_ROOT = os.path.join(BASE_DIR, "public/static") | ||
STATIC_URL = "/static/" | ||
|
||
MEDIA_ROOT = os.path.join(BASE_DIR, "public/media") | ||
MEDIA_URL = "/media/" | ||
|
||
|
||
|
Oops, something went wrong.