#17432: url(r'^admin/', include('admin.site.urls')),
-------------------------------+--------------------------------------
     Reporter:  info@…         |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  contrib.admin  |                  Version:  1.3
     Severity:  Normal         |               Resolution:  needsinfo
     Keywords:  admin          |             Triage Stage:  Unreviewed
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  1              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by info@…):

 HI the line is in the default urls.py in the projectfolder

 default urls.py generated by the comand:

 {{{
 django-admin.py startproject FirstBlog
 }}}

 {{{
 from django.conf.urls.defaults import patterns, include, url

 # Uncomment the next two lines to enable the admin:
 # from django.contrib import admin
 # admin.autodiscover()

 urlpatterns = patterns('',
     # Examples:
     # url(r'^$', 'FirstBlog.blog.views.home', name='home'),
     # url(r'^FirstBlog/', include('FirstBlog.foo.urls')),

     # Uncomment the admin/doc line below to enable admin documentation:
     # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

     # Uncomment the next line to enable the admin:
     # url(r'^admin/', include('admin.site.urls')),
 )
 }}}

 this is how it shold look like

 {{{
 from django.conf.urls.defaults import patterns, include, url

 # Uncomment the next two lines to enable the admin:
 from django.contrib import admin
 admin.autodiscover()

 urlpatterns = patterns('',
     # Examples:
     url(r'^$', 'FirstBlog.blog.views.home', name='home'),
     # url(r'^FirstBlog/', include('FirstBlog.foo.urls')),

     # Uncomment the admin/doc line below to enable admin documentation:
     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

     # Uncomment the next line to enable the admin:
     url(r'^admin/', include(admin.site.urls)),
 )
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17432#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to