Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e8da56dd
authored
Jul 04, 2017
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
settings: change settings format, exclude circle module from test (it brokes some test)
parent
7758d797
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
32 deletions
+43
-32
circle/circle/settings/base.py
+33
-28
circle/circle/settings/local.py
+4
-2
circle/circle/settings/test.py
+6
-2
No files found.
circle/circle/settings/base.py
View file @
e8da56dd
...
@@ -166,15 +166,14 @@ if exists(p):
...
@@ -166,15 +166,14 @@ if exists(p):
STATICFILES_DIRS
.
append
(
p
)
STATICFILES_DIRS
.
append
(
p
)
STATICFILES_STORAGE
=
'pipeline.storage.PipelineCachedStorage'
STATICFILES_STORAGE
=
'pipeline.storage.PipelineCachedStorage'
PIPELINE_COMPILERS
=
(
'pipeline.compilers.less.LessCompiler'
,
PIPELINE
=
{
)
'COMPILERS'
:
(
'pipeline.compilers.less.LessCompiler'
,),
PIPELINE_CSS_COMPRESSOR
=
'pipeline.compressors.yuglify.YuglifyCompressor'
'LESS_ARGUMENTS'
:
u'--include-path={}'
.
format
(
':'
.
join
(
STATICFILES_DIRS
)),
# PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.slimit.SlimItCompressor'
'CSS_COMPRESSOR'
:
'pipeline.compressors.yuglify.YuglifyCompressor'
,
PIPELINE_JS_COMPRESSOR
=
None
'JS_COMPRESSOR'
:
None
,
PIPELINE_DISABLE_WRAPPER
=
True
'DISABLE_WRAPPER'
:
True
,
PIPELINE_LESS_ARGUMENTS
=
u'--include-path={}'
.
format
(
':'
.
join
(
STATICFILES_DIRS
))
'STYLESHEETS'
:
{
PIPELINE_CSS
=
{
"all"
:
{
"source_filenames"
:
(
"all"
:
{
"source_filenames"
:
(
"compile_bootstrap.less"
,
"compile_bootstrap.less"
,
"bootstrap/dist/css/bootstrap-theme.css"
,
"bootstrap/dist/css/bootstrap-theme.css"
,
...
@@ -188,8 +187,8 @@ PIPELINE_CSS = {
...
@@ -188,8 +187,8 @@ PIPELINE_CSS = {
),
),
"output_filename"
:
"all.css"
,
"output_filename"
:
"all.css"
,
}
}
}
},
PIPELINE_JS
=
{
'JAVASCRIPT'
:
{
"all"
:
{
"source_filenames"
:
(
"all"
:
{
"source_filenames"
:
(
# "jquery/dist/jquery.js", # included separately
# "jquery/dist/jquery.js", # included separately
"bootbox/bootbox.js"
,
"bootbox/bootbox.js"
,
...
@@ -251,10 +250,10 @@ PIPELINE_JS = {
...
@@ -251,10 +250,10 @@ PIPELINE_JS = {
),
),
"output_filename"
:
"datastore.js"
,
"output_filename"
:
"datastore.js"
,
},
},
},
}
}
########## SECRET CONFIGURATION
########## SECRET CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
# See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
# Note: This key should only be used for development and testing.
# Note: This key should only be used for development and testing.
...
@@ -278,26 +277,31 @@ FIXTURE_DIRS = (
...
@@ -278,26 +277,31 @@ FIXTURE_DIRS = (
########## TEMPLATE CONFIGURATION
########## TEMPLATE CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-context-processors
TEMPLATE_CONTEXT_PROCESSORS
=
(
# See: https://docs.djangoproject.com/en/dev/ref/settings/#TEMPLATES
TEMPLATES
=
[{
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'DIRS'
:
(
normpath
(
join
(
SITE_ROOT
,
'../../site-circle/templates'
)),
normpath
(
join
(
SITE_ROOT
,
'templates'
)),
),
'APP_DIRS'
:
True
,
'OPTIONS'
:
{
'context_processors'
:
(
'django.contrib.auth.context_processors.auth'
,
'django.contrib.auth.context_processors.auth'
,
'django.cor
e.context_processors.debug'
,
'django.templat
e.context_processors.debug'
,
'django.cor
e.context_processors.i18n'
,
'django.templat
e.context_processors.i18n'
,
'django.cor
e.context_processors.media'
,
'django.templat
e.context_processors.media'
,
'django.cor
e.context_processors.static'
,
'django.templat
e.context_processors.static'
,
'django.cor
e.context_processors.tz'
,
'django.templat
e.context_processors.tz'
,
'django.contrib.messages.context_processors.messages'
,
'django.contrib.messages.context_processors.messages'
,
'django.cor
e.context_processors.request'
,
'django.templat
e.context_processors.request'
,
'dashboard.context_processors.notifications'
,
'dashboard.context_processors.notifications'
,
'dashboard.context_processors.extract_settings'
,
'dashboard.context_processors.extract_settings'
,
'dashboard.context_processors.broadcast_messages'
,
'dashboard.context_processors.broadcast_messages'
,
)
),
},
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-dirs
}]
TEMPLATE_DIRS
=
(
normpath
(
join
(
SITE_ROOT
,
'../../site-circle/templates'
)),
normpath
(
join
(
SITE_ROOT
,
'templates'
)),
)
########## END TEMPLATE CONFIGURATION
########## END TEMPLATE CONFIGURATION
...
@@ -347,7 +351,8 @@ THIRD_PARTY_APPS = (
...
@@ -347,7 +351,8 @@ THIRD_PARTY_APPS = (
'taggit'
,
'taggit'
,
'statici18n'
,
'statici18n'
,
'django_sshkey'
,
'django_sshkey'
,
'autocomplete_light'
,
'dal'
,
'dal_select2'
,
'pipeline'
,
'pipeline'
,
)
)
...
...
circle/circle/settings/local.py
View file @
e8da56dd
...
@@ -27,7 +27,7 @@ from base import * # noqa
...
@@ -27,7 +27,7 @@ from base import * # noqa
DEBUG
=
True
DEBUG
=
True
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-debug
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-debug
TEMPLATE
_DEBUG
=
DEBUG
TEMPLATE
S
[
0
][
'OPTIONS'
][
'debug'
]
=
DEBUG
########## END DEBUG CONFIGURATION
########## END DEBUG CONFIGURATION
SECURE_PROXY_SSL_HEADER
=
(
'HTTP_X_FORWARDED_PROTOCOL'
,
'https'
)
SECURE_PROXY_SSL_HEADER
=
(
'HTTP_X_FORWARDED_PROTOCOL'
,
'https'
)
...
@@ -110,8 +110,10 @@ if DEBUG:
...
@@ -110,8 +110,10 @@ if DEBUG:
from
django.dispatch
import
Signal
from
django.dispatch
import
Signal
Signal
.
send_robust
=
Signal
.
send
Signal
.
send_robust
=
Signal
.
send
PIPELINE
_COMPILERS
=
(
PIPELINE
[
"COMPILERS"
]
=
(
'dashboard.compilers.DummyLessCompiler'
,
'dashboard.compilers.DummyLessCompiler'
,
)
)
ADMIN_ENABLED
=
True
ADMIN_ENABLED
=
True
ALLOWED_HOSTS
=
[
'*'
]
circle/circle/settings/test.py
View file @
e8da56dd
...
@@ -38,7 +38,11 @@ INSTALLED_APPS += (
...
@@ -38,7 +38,11 @@ INSTALLED_APPS += (
'django_nose'
,
'django_nose'
,
)
)
TEST_RUNNER
=
'django_nose.NoseTestSuiteRunner'
TEST_RUNNER
=
'django_nose.NoseTestSuiteRunner'
NOSE_ARGS
=
[
'--with-doctest'
,
'--exclude-dir=dashboard/tests/selenium'
]
NOSE_ARGS
=
[
'--with-doctest'
,
'--exclude-dir=dashboard/tests/selenium'
,
'--exclude=circle'
]
PASSWORD_HASHERS
=
[
'django.contrib.auth.hashers.MD5PasswordHasher'
]
PASSWORD_HASHERS
=
[
'django.contrib.auth.hashers.MD5PasswordHasher'
]
CACHES
=
{
CACHES
=
{
...
@@ -59,7 +63,7 @@ for i in LOCAL_APPS:
...
@@ -59,7 +63,7 @@ for i in LOCAL_APPS:
# don't print SQL queries
# don't print SQL queries
LOGGING
[
'handlers'
][
'null'
]
=
{
'level'
:
"DEBUG"
,
LOGGING
[
'handlers'
][
'null'
]
=
{
'level'
:
"DEBUG"
,
'class'
:
"
django.utils.lo
g.NullHandler"
}
'class'
:
"
loggin
g.NullHandler"
}
LOGGING
[
'loggers'
][
'django.db.backends'
]
=
{
LOGGING
[
'loggers'
][
'django.db.backends'
]
=
{
'handlers'
:
[
'null'
],
'handlers'
:
[
'null'
],
'propagate'
:
False
,
'propagate'
:
False
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment