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
cafadff8
authored
Oct 28, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
circle: update settings
parent
10adcce0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
17 deletions
+16
-17
circle/circle/settings/base.py
+15
-16
circle/circle/settings/local.py
+1
-1
No files found.
circle/circle/settings/base.py
View file @
cafadff8
...
...
@@ -50,20 +50,20 @@ def get_env_variable(var_name, default=None):
########## PATH CONFIGURATION
# Absolute filesystem path to the Django project directory:
DJANGO_ROOT
=
dirname
(
dirname
(
abspath
(
__file__
)))
BASE_DIR
=
dirname
(
dirname
(
abspath
(
__file__
)))
# Absolute filesystem path to the top-level project folder:
SITE_ROOT
=
dirname
(
DJANGO_ROOT
)
SITE_ROOT
=
dirname
(
BASE_DIR
)
# Site name:
SITE_NAME
=
basename
(
DJANGO_ROOT
)
SITE_NAME
=
basename
(
BASE_DIR
)
# Url to site: (e.g. http://localhost:8080/)
DJANGO_URL
=
get_env_variable
(
'DJANGO_URL'
,
'/'
)
# Add our project to our pythonpath, this way we don't need to type our project
# name in our dotted import paths:
path
.
append
(
DJANGO_ROOT
)
path
.
append
(
BASE_DIR
)
########## END PATH CONFIGURATION
...
...
@@ -78,14 +78,9 @@ TEMPLATE_DEBUG = DEBUG
########## MANAGER CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#admins
ADMINS
=
(
(
'Root'
,
'root@localhost'
),
)
EMAIL_SUBJECT_PREFIX
=
get_env_variable
(
'DJANGO_SUBJECT_PREFIX'
,
'[CIRCLE] '
)
# See: https://docs.djangoproject.com/en/dev/ref/settings/#managers
MANAGERS
=
ADMINS
########## END MANAGER CONFIGURATION
...
...
@@ -283,12 +278,6 @@ TEMPLATE_CONTEXT_PROCESSORS = (
'dashboard.context_processors.extract_settings'
,
)
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-loaders
TEMPLATE_LOADERS
=
(
'django.template.loaders.filesystem.Loader'
,
'django.template.loaders.app_directories.Loader'
,
)
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-dirs
TEMPLATE_DIRS
=
(
normpath
(
join
(
SITE_ROOT
,
'../../site-circle/templates'
)),
...
...
@@ -337,7 +326,6 @@ DJANGO_APPS = (
)
THIRD_PARTY_APPS
=
(
'south'
,
'django_tables2'
,
'crispy_forms'
,
'djcelery'
,
...
...
@@ -349,6 +337,11 @@ THIRD_PARTY_APPS = (
'pipeline'
,
)
import
django
if
django
.
get_version
()
<
'1.7'
:
THIRD_PARTY_APPS
+=
'south'
,
# Apps specific for this project go here.
LOCAL_APPS
=
(
'common'
,
...
...
@@ -533,8 +526,14 @@ LOCALE_PATHS = (join(SITE_ROOT, 'locale'), )
COMPANY_NAME
=
"BME IK 2014"
SOUTH_MIGRATION_MODULES
=
{
'taggit'
:
'taggit.south_migrations'
,
'vm'
:
'vm.south_migrations'
,
'firewall'
:
'firewall.south_migrations'
,
'acl'
:
'acl.south_migrations'
,
'dashboard'
:
'dashboard.south_migrations'
,
'storage'
:
'storage.south_migrations'
,
}
graphite_host
=
environ
.
get
(
"GRAPHITE_HOST"
,
None
)
graphite_port
=
environ
.
get
(
"GRAPHITE_PORT"
,
None
)
if
graphite_host
and
graphite_port
:
...
...
circle/circle/settings/local.py
View file @
cafadff8
...
...
@@ -43,7 +43,7 @@ EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': normpath(join(
DJANGO_ROOT
, 'default.db')),
# 'NAME': normpath(join(
BASE_DIR
, 'default.db')),
# 'USER': '',
# 'PASSWORD': '',
# 'HOST': '',
...
...
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