Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
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
cea1b5f4
authored
Jul 31, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
circle: allow adding site-local templates + static files
parent
a29ad2f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
circle/circle/settings/base.py
+6
-1
No files found.
circle/circle/settings/base.py
View file @
cea1b5f4
...
...
@@ -19,7 +19,7 @@
# flake8: noqa
from
os
import
environ
from
os.path
import
(
abspath
,
basename
,
dirname
,
join
,
normpath
,
isfile
,
expanduser
)
ex
ists
,
ex
panduser
)
from
sys
import
path
from
subprocess
import
check_output
from
uuid
import
getnode
...
...
@@ -161,6 +161,10 @@ STATICFILES_FINDERS = (
)
########## END STATIC FILE CONFIGURATION
p
=
join
(
dirname
(
SITE_ROOT
),
'site-circle/static'
)
if
exists
(
p
):
STATICFILES_DIRS
=
(
p
,
)
########## SECRET CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
...
...
@@ -208,6 +212,7 @@ TEMPLATE_LOADERS = (
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-dirs
TEMPLATE_DIRS
=
(
normpath
(
join
(
SITE_ROOT
,
'templates'
)),
join
(
dirname
(
SITE_ROOT
),
'site-circle/templates'
),
)
########## END TEMPLATE CONFIGURATION
...
...
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