Anyone use mod_security with Django?
Hi, I am running a website built with Django. For security, I am going to install mod_security on my web server. Anyone use mod_security with Django? Is mod_security useful? I heard that Django can defend many attacks (like csrf, XSS, SQL Injection... and so on...) -- 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.
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 flag.
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 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.
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 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 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.