Tuesday, July 17, 2012

Re: Directory indexes are not allowed here. for Grappilli

from django.conf.urls.defaults import *

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

urlpatterns = patterns('',
# Example:
#(r'^index/', include('myapp.views.index')),

# Uncomment the admin/doc line below to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
(r'^grappelli/', include('grappelli.urls')),
)
urlpatterns += patterns('django.views.static',
(r'^static/(?P<path>.*)$',
'serve', {
'document_root': 'F:/Projects/testing/myapp/Template/media',
'show_indexes': True }),
)
check my url.py

On Tuesday, July 17, 2012 10:46:51 PM UTC+5:30, chhots wrote:
exactly i am not getting this sentence what is that...

i m getting on it on ubuntu os.

On Monday, July 16, 2012 10:51:16 PM UTC+5:30, Thomas Orozco wrote:

What is your actual problem here?

Do you not understand the message? Do you have a reason for which you'd want this directory indexed?

Le 16 juil. 2012 13:24, "chhots" <chhotusingh@neevtech.com> a écrit :

Page not found (404)

Request Method: GET
Request URL: http://localhost:8080/static/grappelli/

Directory indexes are not allowed here.

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.     

Plz help


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Osk9n9mFErAJ.
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 view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/L-Y1neIxGPIJ.
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.

No comments:

Post a Comment