Reverse for 'filer_folder_changelist' not found

1.1k views Asked by At

I am deploying site to divio server with django and django-cms. I do R&D but not found much information about this.

Facing Error: Reverse for 'filer_folder_changelist' not found. 'filer_folder_changelist' is not a valid view function or pattern name.

Exception Type: NoReverseMatch Exception Value: Reverse for 'filer_folder_changelist' not found. 'filer_folder_changelist' is not a valid view function or pattern name. Exception Location: /virtualenv/lib/python3.5/site-packages/django/urls/resolvers.py in _reverse_with_prefix, line 497 Python Executable: /virtualenv/bin/uwsgi

{% cms_toolbar %}

**urls.py:**

] + aldryn_addons.urls.patterns() + i18n_patterns(
    # test urls
    url(r'^admin-cms/', include(admin.site.urls)),  # NOQA
    url(r'^django-cms/', include('cms.urls')),
    url(r'^django-cms1/',include('aldryn_django_cms.urls')),
    url(r'^test4/$',views.test4,),
    # ends here ~ test urls
    # add your own i18n patterns here
    *aldryn_addons.urls.i18n_patterns()  # MUST be the last entry!
)

cms_toolbar.py

def populate(self):
    media_library = _('Media library')

    admin_menu = self.toolbar.get_or_create_menu(ADMIN_MENU_IDENTIFIER)
    admin_menu.add_sideframe_item(
        media_library,
        url=reverse('admin:filer_folder_changelist'),
        position=self.get_insert_position(admin_menu, media_library)
    )
2

There are 2 answers

8
Shubham Kandiyal On

I fixed this error by change settings.py.. Add below things in installed app in settings.py:

INSTALLED_APPS.extend([
    .....
    'djangocms_text_ckeditor',
    'filer',
    'easy_thumbnails',
    'djangocms_column',
    'djangocms_file',
    'djangocms_link',
    'djangocms_picture',
    'djangocms_style',
    'djangocms_snippet',
    'djangocms_googlemap',
    'djangocms_video',
    .....       
)]
0
ruddra On

Did some research and found this:

  1. Need to install django-admin-shortcuts
  2. Add shortcut to your settings.py:

      ADMIN_SHORTCUTS = [
        {
            'shortcuts': [
                {
                    'url_name': 'admin:filer_folder_changelist',
                    'title': _('Files'),
                },
    
            ]
        },
    ]
    

You can check out similar implementation in here. Hope it helps!!