Re: Django admin site and DEBUG flag.

2011-08-19 Thread william ratcliff
Actually, you might want to just use the following: http://betterthangrep.com/ to search through the entire project--this program has saved me a lot of time! William On Fri, Aug 19, 2011 at 4:36 AM, Reinout van Rees wrote: > On 19-08-11 10:27, KC LEE wrote: > >> urlpatterns = patterns('', >> >>

Re: Django admin site and DEBUG flag.

2011-08-19 Thread Reinout van Rees
On 19-08-11 10:27, KC LEE wrote: 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

Re: Django admin site and DEBUG flag.

2011-08-19 Thread KC LEE
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 wrote: > My urls.py looks like this, > > # -*- coding: utf-8 -*- > > from django.conf.urls.defaults import * > from django.conf import s

Re: Django admin site and DEBUG flag.

2011-08-19 Thread KC LEE
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.f

Re: Django admin site and DEBUG flag.

2011-08-19 Thread Reinout van Rees
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:"

Re: django admin site and debug

2011-05-09 Thread bitgandtter
i try your advices but didnt work i dont know why because the admin pattern should handle this urls On May 4, 3:01 pm, Ivan <492...@gmail.com> wrote: > Try to replace your patern '^admin/' this '^admin/$', or swap > ( r'^admin/', include( admin.site.urls ) ) > and ( r'', include( 'role.company.url

Re: django admin site and debug

2011-05-04 Thread Ivan
Try to replace your patern '^admin/' this '^admin/$', or swap ( r'^admin/', include( admin.site.urls ) ) and ( r'', include( 'role.company.urls' ) ) > my urlconf look like this > > from django.conf.urls.defaults import patterns, include > > # Uncomment the next two lines to enable the admin: > fro

Re: django admin site and debug

2011-05-04 Thread bitgandtter
its really rear this error the aplication its runing in mod_python in a shared web hosting python 2.5.1 and work perfect the only thing is that when i change the DEBUG flag to false the administration interface keep working and autenticate all fine but throwme the 404 error when i try to access the

Re: django admin site and debug

2011-05-04 Thread 492587
Check your admin.autodiscover () in urls.py it should be after all models import -- 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

Re: django admin site and debug

2011-05-03 Thread vikalp sahni
are you using it on any webserver or on django management server (manage.py runserver) at some port?? it can happen if in any of your urls.py you have mentioned something specefic to DEBUG variable. But its quite a strage behaviour. more inputs on your installation or how you are running will be