My problem is identical to this,

https://groups.google.com/group/django-users/browse_thread/thread/62af38b39713f5e7/279df4fba31fd292

On Aug 19, 5:27 pm, KC LEE <leekc...@gmail.com> wrote:
> My urls.py looks like this,
>
> # -*- coding: utf-8 -*-
>
> from django.conf.urls.defaults import *
> from django.conf import settings
> from django.views.generic.simple import direct_to_template
>
> from django.contrib import admin
> admin.autodiscover()
>
> urlpatterns = patterns('',
>
>     (r'^$', 'accounts.views.front_page'),
>     url(r'social/', include('social_auth.urls')),
>
>     (r'^admin/', include(admin.site.urls)),
>
>     (r'^regions/', include('region.urls')),
>
>     (r'^messages/', include('pimfy_messages.urls')),
>     (r'^accounts/', include('accounts.urls')),
>     (r'^issue/', include('issue.urls')),
>     (r'^notification/', include('notification.urls')),
>
>     (r'^password_forgot/$',
> 'django.contrib.auth.views.password_reset'),
>     (r'^password_forgot/done/$',
> 'django.contrib.auth.views.password_reset_done'),
>     (r'^password_reset/(?P<uidb64>[0-9A-Za-z]+)/(?P<token>.+)/$',
> 'django.contrib.auth.views.password_reset_confirm'),
>     (r'^password_reset/done/$',
> 'django.contrib.auth.views.password_reset_complete'),
>
> )
>
> On Aug 19, 4:36 pm, Reinout van Rees <rein...@vanrees.org> wrote:
>
>
>
>
>
>
>
> > On 19-08-11 05:28, KC LEE wrote:
>
> > > When I set DEBUG flag true, Django admin site works fine.
>
> > > But when I change it to false, it throws me the page not found in
> > > Django admin site (except main page of admin site, Groups page, and
> > > Users page)
>
> > This sounds like your urls.py has an "if settings.DEBUG:" around where
> > the admin site is mounted in your urls.
>
> > Reinout
>
> > --
> > Reinout van Rees                    http://reinout.vanrees.org/
> > rein...@vanrees.org            http://www.nelen-schuurmans.nl/
> > "If you're not sure what to do, make something. -- Paul Graham"

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

Reply via email to