Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
R
red-ci-cd
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
red-group-test
red-ci-cd
Commits
a0d80546
Commit
a0d80546
authored
Jan 16, 2020
by
John Red Medrano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing
parent
ff3b2c52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
config/urls.py
config/urls.py
+0
-16
No files found.
config/urls.py
View file @
a0d80546
...
...
@@ -13,7 +13,6 @@ Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
import
os
from
django.contrib
import
admin
from
django.urls
import
path
,
include
,
re_path
from
django.conf.urls
import
url
...
...
@@ -42,18 +41,3 @@ urlpatterns = [
if
settings
.
DEBUG
:
urlpatterns
+=
static
(
settings
.
MEDIA_URL
,
document_root
=
settings
.
MEDIA_ROOT
)
urlpatterns
+=
static
(
settings
.
STATIC_URL
,
document_root
=
settings
.
STATIC_ROOT
)
else
:
urlpatterns
+=
patterns
(
''
,
(
r'^static/(?P<path>.*)$'
,
'django.views.static.serve'
,
{
'document_root'
:
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'static'
)}
),
)
# if settings.DEBUG404:
# urlpatterns += patterns('',
# (r'^static/(?P<path>.*)$', 'django.views.static.serve',
# {'document_root': os.path.join(os.path.dirname(__file__), 'static')} ),
# )
\ No newline at end of file
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