Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 384ca79

Browse files
author
Stephen Toon
committed
Updated name of common context processors function.
1 parent 75fc935 commit 384ca79

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

SPPM/settings/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# >> GLOBAL VARIABLES
2222
# =============================================================================
2323
# 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
2525

2626
# Quick-start development settings - unsuitable for production
2727
# See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/
@@ -80,7 +80,7 @@
8080
'django.template.context_processors.request',
8181
'django.contrib.auth.context_processors.auth',
8282
'django.contrib.messages.context_processors.messages',
83-
'project_manager.common.context_processors.common_urls',
83+
'project_manager.common.context_processors.add_common_context_processors',
8484
],
8585
},
8686
},

project_manager/common/context_processors.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
# >> ALL DECLARATION
1212
# =============================================================================
1313
__all__ = (
14-
'common_urls',
14+
'add_common_context_processors',
1515
)
1616

1717

1818
# =============================================================================
1919
# >> FUNCTIONS
2020
# =============================================================================
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."""
2323
return {
2424
'DOWNLOAD_URL': settings.DOWNLOAD_URL,
2525
'FORUM_URL': settings.FORUM_URL,

0 commit comments

Comments
 (0)