File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 21
21
# >> GLOBAL VARIABLES
22
22
# =============================================================================
23
23
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
24
- BASE_DIR = Path (__file__ ).parent .parent
24
+ BASE_DIR = Path (__file__ ).parent .parent . parent
25
25
26
26
# Quick-start development settings - unsuitable for production
27
27
# See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/
80
80
'django.template.context_processors.request' ,
81
81
'django.contrib.auth.context_processors.auth' ,
82
82
'django.contrib.messages.context_processors.messages' ,
83
- 'project_manager.common.context_processors.common_urls ' ,
83
+ 'project_manager.common.context_processors.add_common_context_processors ' ,
84
84
],
85
85
},
86
86
},
Original file line number Diff line number Diff line change 11
11
# >> ALL DECLARATION
12
12
# =============================================================================
13
13
__all__ = (
14
- 'common_urls ' ,
14
+ 'add_common_context_processors ' ,
15
15
)
16
16
17
17
18
18
# =============================================================================
19
19
# >> FUNCTIONS
20
20
# =============================================================================
21
- def common_urls (request ):
22
- """Expose common urls to templates ."""
21
+ def add_common_context_processors (request ):
22
+ """Expose some settings and other information to all contexts ."""
23
23
return {
24
24
'DOWNLOAD_URL' : settings .DOWNLOAD_URL ,
25
25
'FORUM_URL' : settings .FORUM_URL ,
You can’t perform that action at this time.
0 commit comments