mirror of
https://github.com/fspc/workstand.git
synced 2026-09-16 16:41:38 -04:00
Not sure why these aren't in master but here we go! (#34)
* Load webpack only in debug. * Second stab at buildfile. * Move button. * Add new line. * Linting. * Spelling mistake. * Clean up. * Use babel-polyfill. * Updated Configuration Files for Fresh Install
This commit is contained in:
@@ -142,7 +142,7 @@ COMPRESS_PRECOMPILERS = (
|
||||
WEBPACK_LOADER = {
|
||||
'DEFAULT': {
|
||||
'CACHE': False,
|
||||
'BUNDLE_DIR_NAME': 'bundles/', # must end with slash
|
||||
'BUNDLE_DIR_NAME': 'bundles/', # must end with slash
|
||||
'STATS_FILE': os.path.join(BASE_DIR, '../webpack-stats.json'),
|
||||
'POLL_INTERVAL': 0.1,
|
||||
'IGNORE': ['.+\.hot-update.js', '.+\.map']
|
||||
@@ -159,4 +159,4 @@ HAYSTACK_CONNECTIONS = {
|
||||
HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor'
|
||||
|
||||
LOGIN_REDIRECT_URL = 'home'
|
||||
LOGIN_URL = 'login'
|
||||
LOGIN_URL = 'login'
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import os
|
||||
import sys
|
||||
from .base import *
|
||||
from .base import * # noqa
|
||||
|
||||
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
@@ -10,8 +11,9 @@ DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = []
|
||||
|
||||
if 'test' in sys.argv or 'test_coverage' in sys.argv: #Covers regular testing and django-coverage
|
||||
DATABASES['default']['ENGINE'] = 'django.db.backends.sqlite3'
|
||||
# Covers regular testing and django-coverage
|
||||
if 'test' in sys.argv or 'test_coverage' in sys.argv:
|
||||
DATABASES['default']['ENGINE'] = 'django.db.backends.sqlite3' # noqa
|
||||
|
||||
LOGGING = {
|
||||
'version': 1,
|
||||
@@ -39,22 +41,16 @@ LOGGING = {
|
||||
},
|
||||
}
|
||||
|
||||
INSTALLED_APPS += [
|
||||
INSTALLED_APPS += [ # noqa
|
||||
'corsheaders',
|
||||
# 'debug_toolbar'
|
||||
]
|
||||
|
||||
MIDDLEWARE_CLASSES.insert(0, 'django.middleware.common.CommonMiddleware')
|
||||
MIDDLEWARE_CLASSES.insert(0, 'django.middleware.common.CommonMiddleware') # noqa
|
||||
|
||||
# MIDDLEWARE_CLASSES += [
|
||||
# 'debug_toolbar.middleware.DebugToolbarMiddleware'
|
||||
# ]
|
||||
|
||||
# Don't worry about IP addresses, just show the toolbar.
|
||||
DEBUG_TOOLBAR_CONFIG = {
|
||||
'SHOW_TOOLBAR_CALLBACK': lambda *args: True
|
||||
}
|
||||
|
||||
CORS_ORIGIN_ALLOW_ALL = True
|
||||
|
||||
ALLOWED_HOSTS = ['workstand.docker']
|
||||
ALLOWED_HOSTS = ['workstand.docker','localhost']
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from .base import *
|
||||
import os
|
||||
from .base import * # noqa
|
||||
|
||||
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
@@ -40,9 +41,9 @@ LOGGING = {
|
||||
WEBPACK_LOADER = {
|
||||
'DEFAULT': {
|
||||
'CACHE': True,
|
||||
'BUNDLE_DIR_NAME': 'dist/', # must end with slash
|
||||
'STATS_FILE': os.path.join(BASE_DIR, '../webpack-stats-prod.json'),
|
||||
'BUNDLE_DIR_NAME': 'dist/', # must end with slash
|
||||
'STATS_FILE': os.path.join(BASE_DIR, '../webpack-stats-prod.json'), # noqa
|
||||
'POLL_INTERVAL': 0.1,
|
||||
'IGNORE': ['.+\.hot-update.js', '.+\.map']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import csv
|
||||
import json
|
||||
import sys
|
||||
import os
|
||||
|
||||
import requests
|
||||
@@ -12,7 +10,6 @@ from core.models import Membership, Payment
|
||||
from registration.models import Member
|
||||
|
||||
|
||||
|
||||
def email_generator():
|
||||
url = 'http://randomword.setgetgo.com/get.php'
|
||||
local = []
|
||||
|
||||
Reference in New Issue
Block a user