Skip to content

Commit

Permalink
Update urls.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfs authored Sep 10, 2017
1 parent 5eb4def commit d68217d
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions myproject/urls.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
"""myproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
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.urls import url
from django.contrib import admin

from boards import views

urlpatterns = [
url(r'^$', views.home),
url(r'^$', views.home, name='home'),
url(r'^admin/', admin.site.urls),
]

0 comments on commit d68217d

Please sign in to comment.