Skip to content

Commit ce12f8e

Browse files
committed
Updated urls.py for Django 1.7.
1 parent 70c7b12 commit ce12f8e

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

django_urls/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ Every page on the Internet needs its own URL. This way your application knows wh
1515
Let's open up the `mysite/urls.py` file and see what it looks like:
1616

1717
from django.conf.urls import patterns, include, url
18-
1918
from django.contrib import admin
20-
admin.autodiscover()
2119

2220
urlpatterns = patterns('',
2321
# Examples:
@@ -52,9 +50,7 @@ Go ahead, delete the commented lines (lines starting with `#`) and add a line th
5250
Your `mysite/urls.py` file should now look like this:
5351

5452
from django.conf.urls import patterns, include, url
55-
5653
from django.contrib import admin
57-
admin.autodiscover()
5854

5955
urlpatterns = patterns('',
6056
url(r'^admin/', include(admin.site.urls)),
@@ -93,4 +89,3 @@ There is no "It works" anymore, huh? Don't worry, it's just an error page, nothi
9389
You can read that there is __no attribute 'post_list'__. Is *post_list* reminding you of anything? This is how we called our view! This means that everything is in place, we just didn't create our *view* yet. No worries, we will get there.
9490

9591
> If you want to know more about Django URLconfs, look at the official documentation: https://docs.djangoproject.com/en/1.7/topics/http/urls/
96-

0 commit comments

Comments
 (0)