Django-filebrowser is unavailable and 404 is called

Page Not Found (404) Request Method: GET URL:    http://beta.mysite.com/admin/filebrowser/

The requested administration page does not exist.

django-filebrowser requirements:

  • django 1.0+ (I have 1.1)
  • PIL (I installed python-imaging)
  • Grappelli (I installed the latest svn trunk, confirmed that it works)

For file browser I:

  • checked last svn put python path
  • copied via media to a static host
  • added filebrowser to settings.py, confirmed its collection because it once threw an exception that PIL was not installed before I installed it
  • I added the exact url string in urls.py: (r'^admin/filebrowser/', include('filebrowser.urls')),

One note: I did not change the filesbrowser settings.py parameter .

, grappelli , http://site.com/admin/filebrowser/ , url , heres urls.py:

    urlpatterns = patterns('',

        (r'^$', 'django.views.generic.simple.direct_to_template', {'template':'homepage.html'}),

        # Uncomment the next line to enable the admin:
        (r'^admin/filebrowser/', include('filebrowser.urls')),
        (r'^admin/', include(admin.site.urls)),


        # add this or you'll get some error:
        # Reverse for 'grp_bookmark_get' with arguments
        (r'^grappelli/', include('grappelli.urls')),

        (r'^search/$', 'site.search.views.search'),
        (r'', include('django.contrib.flatpages.urls')),

)
+3
1

apollo13 freenode/# django . /admin/filebrowser/browse.

+7

Source: https://habr.com/ru/post/1731698/


All Articles