This is the urls.py with the admin bits uncommented from the default
urls.py file.

On Jun 13, 8:18 pm, Daniel Roseman <[email protected]> wrote:
> On Monday, June 13, 2011 11:56:18 AM UTC+1, Gagan (GPS) wrote:
>
> > I am having some difficulty accessing the admin of a project I am
> > trying to create.
>
> > My urls.py is the default with admin enabled:
>
> > from django.conf.urls.defaults import patterns, include, url
>
> > from django.contrib import admin
> > admin.autodiscover()
>
> > urlpatterns = patterns('',
> >     # Examples:
> >     # url(r'^$', '{{ project_name }}.views.home', name='home'),
> >     # url(r'^{{ project_name }}/',
> > include('{{ project_name }}.foo.urls')),
>
> >     # Uncomment the admin/doc line below to enable admin
> > documentation:
> >     # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
>
> >     url(r'^admin/', include(admin.site.urls)),
> > )
>
> This is not the default admin. You seem for some reason to have put some
> template variable syntax in a Python file - I can't imagine why. Obviously,
> this is not valid Python syntax.
> --
> DR.

-- 
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.

Reply via email to