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('',
>>
>> (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')),
>>
>>
> Looks alright. Only noticeable thing: that 'social/' one is the only one
> called with url(). Might be worth a try to remove that url() call around it
> to let it match the rest. Shouldn't matter, but... ;-)
>
>
> You said that admin/* and admin/users/* and admin/groups/* *did* work?
> Which ones don't? If it is for instance /admin/issues/*, look at that issues
> app and see if there's an 'if settings.DEBUG' somewhere in there.
>
>
>
> Reinout
>
> --
> Reinout van Reeshttp://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+unsubscribe@**
> googlegroups.com .
> 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 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.



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')),
 (r'^accounts/', include('accounts.urls')),
 (r'^issue/', include('issue.urls')),
 (r'^notification/', include('notification.urls')),



Looks alright. Only noticeable thing: that 'social/' one is the only one 
called with url(). Might be worth a try to remove that url() call around 
it to let it match the rest. Shouldn't matter, but... ;-)



You said that admin/* and admin/users/* and admin/groups/* *did* work? 
Which ones don't? If it is for instance /admin/issues/*, look at that 
issues app and see if there's an 'if settings.DEBUG' somewhere in there.



Reinout

--
Reinout van Reeshttp://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.



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 <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[0-9A-Za-z]+)/(?P.+)/$',
> '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.



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.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[0-9A-Za-z]+)/(?P.+)/$',
'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.



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:" around where 
the admin site is mounted in your urls.



Reinout

--
Reinout van Reeshttp://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.



Django admin site and DEBUG flag.

2011-08-18 Thread KC LEE
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)

Anyone help?

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



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.urls' ) )
>
>
>
>
>
>
>
> > my urlconf look like this
>
> > from django.conf.urls.defaults import patterns, include
>
> > # Uncomment the next two lines to enable the admin:
> > from django.contrib import admin
> > admin.autodiscover()
>
> > urlpatterns = patterns( '',
> >     ( r'^admin/', include( admin.site.urls ) ),
> >     ( r'', include( 'role.company.urls' ) ),
> >  )
>
> > and in the role.company.urls i dont put anything about debug or url
> > that can override the admin ones

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



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:
> from django.contrib import admin
> admin.autodiscover()
>
> urlpatterns = patterns( '',
>     ( r'^admin/', include( admin.site.urls ) ),
>     ( r'', include( 'role.company.urls' ) ),
>  )
>
> and in the role.company.urls i dont put anything about debug or url
> that can override the admin ones

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



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 pages that admin my tables.

my urlconf look like this

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

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

urlpatterns = patterns( '',
( r'^admin/', include( admin.site.urls ) ),
( r'', include( 'role.company.urls' ) ),
 )

and in the role.company.urls i dont put anything about debug or url
that can override the admin ones

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



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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 able to put
more light on it.

Also just check if its 404 or 500 error when you put debug false.

Regards,
//Vikalp

On Wed, May 4, 2011 at 7:30 AM, Yasmany Cubela Medina
wrote:

>  i have the django admin site enabled and it work at perfect with debug
> flag set to true, but when i change to false throwme the page not found
> template in the edit pages of any module in the admin interface.
>
>
> any help
>
>
>
> 
>
> El ayer es un recuerdo, el mañana es un misterio y el ahora es un
> regalo...por eso se llama presente.
>
>
> Ing. Yasmany Cubela Medina:
>
> Linux user 446757
>
> Ubuntu user 13464
>
> --
> 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.
>

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



django admin site and debug

2011-05-03 Thread Yasmany Cubela Medina
i have the django admin site enabled and it work at perfect with debug flag set 
to true, but when i change to false throwme the page not found template in the 
edit pages of any module in the admin interface.

any help



El ayer es un recuerdo, el mañana es un misterio y el ahora es un regalo...por 
eso se llama presente.

Ing. Yasmany Cubela Medina:
Linux user 446757
Ubuntu user 13464

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