Commit bfb8004c authored by Alec Wang's avatar Alec Wang

removed unnecessary imports from urls.py files

parent 102e763b
from django.conf import settings
from django.contrib import admin
from django.conf.urls import include, url
from django.conf.urls.static import static
from .views import *
urlpatterns = [
......@@ -10,4 +8,4 @@ urlpatterns = [
url(r'^hero/cloud$', hero_cloud, name="hero_cloud"),
url(r'^hero/sunflowey$', hero_sunflowey, name="hero_sunflowey"),
url(r'^hero/jester$', hero_jester, name="hero_jester"),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
]
......@@ -13,12 +13,10 @@ Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.conf import settings
from django.contrib import admin
from django.conf.urls import include, url
from django.conf.urls.static import static
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'', include('heroes.urls')),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment