Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lab-1-wang-alec-185292-willowisp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Alec
lab-1-wang-alec-185292-willowisp
Commits
bfb8004c
Commit
bfb8004c
authored
Mar 07, 2020
by
Alec Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unnecessary imports from urls.py files
parent
102e763b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
6 deletions
+2
-6
urls.cpython-38.pyc
heroes/__pycache__/urls.cpython-38.pyc
+0
-0
urls.py
heroes/urls.py
+1
-3
urls.cpython-38.pyc
willowisp/__pycache__/urls.cpython-38.pyc
+0
-0
urls.py
willowisp/urls.py
+1
-3
No files found.
heroes/__pycache__/urls.cpython-38.pyc
View file @
bfb8004c
No preview for this file type
heroes/urls.py
View file @
bfb8004c
from
django.conf
import
settings
from
django.contrib
import
admin
from
django.contrib
import
admin
from
django.conf.urls
import
include
,
url
from
django.conf.urls
import
include
,
url
from
django.conf.urls.static
import
static
from
.views
import
*
from
.views
import
*
urlpatterns
=
[
urlpatterns
=
[
...
@@ -10,4 +8,4 @@ urlpatterns = [
...
@@ -10,4 +8,4 @@ urlpatterns = [
url
(
r'^hero/cloud$'
,
hero_cloud
,
name
=
"hero_cloud"
),
url
(
r'^hero/cloud$'
,
hero_cloud
,
name
=
"hero_cloud"
),
url
(
r'^hero/sunflowey$'
,
hero_sunflowey
,
name
=
"hero_sunflowey"
),
url
(
r'^hero/sunflowey$'
,
hero_sunflowey
,
name
=
"hero_sunflowey"
),
url
(
r'^hero/jester$'
,
hero_jester
,
name
=
"hero_jester"
),
url
(
r'^hero/jester$'
,
hero_jester
,
name
=
"hero_jester"
),
]
+
static
(
settings
.
STATIC_URL
,
document_root
=
settings
.
STATIC_ROOT
)
]
willowisp/__pycache__/urls.cpython-38.pyc
View file @
bfb8004c
No preview for this file type
willowisp/urls.py
View file @
bfb8004c
...
@@ -13,12 +13,10 @@ Including another URLconf
...
@@ -13,12 +13,10 @@ Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
"""
from
django.conf
import
settings
from
django.contrib
import
admin
from
django.contrib
import
admin
from
django.conf.urls
import
include
,
url
from
django.conf.urls
import
include
,
url
from
django.conf.urls.static
import
static
urlpatterns
=
[
urlpatterns
=
[
url
(
r'^admin/'
,
admin
.
site
.
urls
),
url
(
r'^admin/'
,
admin
.
site
.
urls
),
url
(
r''
,
include
(
'heroes.urls'
)),
url
(
r''
,
include
(
'heroes.urls'
)),
]
+
static
(
settings
.
STATIC_URL
,
document_root
=
settings
.
STATIC_ROOT
)
]
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