| 37 | | it maps URL roots to applications. |
|---|
| | 39 | it maps URL roots to applications. In the end, you should have a |
|---|
| | 40 | ``urls.py`` file that looks like this: |
|---|
| | 41 | |
|---|
| | 42 | .. parsed-literal:: |
|---|
| | 43 | |
|---|
| | 44 | from django.conf.urls.defaults import * |
|---|
| | 45 | |
|---|
| | 46 | # Uncomment the next two lines to enable the admin: |
|---|
| | 47 | **from django.contrib import admin** |
|---|
| | 48 | **admin.autodiscover()** |
|---|
| | 49 | |
|---|
| | 50 | urlpatterns = patterns('', |
|---|
| | 51 | # Example: |
|---|
| | 52 | # (r'^{{ project_name }}/', include('{{ project_name }}.foo.urls')), |
|---|
| | 53 | |
|---|
| | 54 | # Uncomment the next line to enable admin documentation: |
|---|
| | 55 | # (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|---|
| | 56 | |
|---|
| | 57 | # Uncomment the next line for to enable the admin: |
|---|
| | 58 | **(r'^admin/(.*)', admin.site.root),** |
|---|
| | 59 | ) |
|---|
| | 60 | |
|---|
| | 61 | (The bold lines are the ones that needed to be uncommented.) |
|---|