Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
CTB
ctb-platform-backend-antigo
Commits
37770afb
Commit
37770afb
authored
May 20, 2019
by
Bruno Martin
Browse files
add discussion urls to root
parent
f2b841b0
Pipeline
#7451
passed with stages
in 1 minute and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
config/urls.py
config/urls.py
+3
-0
No files found.
config/urls.py
View file @
37770afb
...
...
@@ -51,6 +51,9 @@ urlpatterns = [
]
+
static
(
settings
.
MEDIA_URL
,
document_root
=
settings
.
MEDIA_ROOT
)
if
'discussion'
in
settings
.
INSTALLED_APPS
:
urlpatterns
+=
[
url
(
r
'^discussion/'
,
include
(
'discussion.urls'
,
namespace
=
'discussion'
)),]
if
settings
.
DEBUG
:
# This allows the error pages to be debugged during development, just visit
# these url in browser to see how these error pages look like.
...
...
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