Skip to content

Commit

Permalink
added karma-css
Browse files Browse the repository at this point in the history
  • Loading branch information
bigmassa committed Oct 20, 2017
1 parent 55683a3 commit 24e21ea
Show file tree
Hide file tree
Showing 11 changed files with 2,013 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
/dist/
/docs/_build/
/htmlcov/
/node_modules/
/wagtailstreamforms.egg-info/
7 changes: 7 additions & 0 deletions example/scss/_variables.scss
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
*/
13 changes: 13 additions & 0 deletions example/scss/karma.scss
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";
34 changes: 16 additions & 18 deletions example/settings.py
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
Expand Down Expand Up @@ -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': {
Expand All @@ -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'),
}
}


# Email

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

Expand Down Expand Up @@ -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/"


Expand Down
Loading

0 comments on commit 24e21ea

Please sign in to comment.