Hi,
1)
uncomment the two lines to enable admin as it is said:
from django.contrib import admin
admin.autodiscover()
2) use:
url(r'^admin/', include(admin.site.urls)),
Regards,
Xavier Ordoquy,
Linovia.
Le 19 juin 2012 à 17:53, Sabbineni Navneet a écrit :
> This is my url.py file:
> from django.conf.urls.defaults import *
>
> # Uncomment the next two lines to enable the admin:
> #from django.contrib import admin
> #admin.autodiscover()
>
>
>
> urlpatterns = patterns('',
>
> (r'^admin/$', include('django.contrib.admin.urls')),
> )
> # Examples:
> # url(r'^$', 'mysite.views.home', name='home'),
> # url(r'^mysite/', include('mysite.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:
> Please help
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/RylRYGAjC-oJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.