{"action":"created","issue":{"url":"https://api.github.com/repos/divio/django-cms/issues/5271","repository_url":"https://api.github.com/repos/divio/django-cms","labels_url":"https://api.github.com/repos/divio/django-cms/issues/5271/labels{/name}","comments_url":"https://api.github.com/repos/divio/django-cms/issues/5271/comments","events_url":"https://api.github.com/repos/divio/django-cms/issues/5271/events","html_url":"https://github.com/divio/django-cms/issues/5271","id":154300965,"number":5271,"title":"Page with non-existent main language version does not work properly","user":{"login":"petrklus","id":1115667,"avatar_url":"https://avatars.githubusercontent.com/u/1115667?v=3","gravatar_id":"","url":"https://api.github.com/users/petrklus","html_url":"https://github.com/petrklus","followers_url":"https://api.github.com/users/petrklus/followers","following_url":"https://api.github.com/users/petrklus/following{/other_user}","gists_url":"https://api.github.com/users/petrklus/gists{/gist_id}","starred_url":"https://api.github.com/users/petrklus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrklus/subscriptions","organizations_url":"https://api.github.com/users/petrklus/orgs","repos_url":"https://api.github.com/users/petrklus/repos","events_url":"https://api.github.com/users/petrklus/events{/privacy}","received_events_url":"https://api.github.com/users/petrklus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/divio/django-cms/labels/kind:%20bug","name":"kind: bug","color":"c7def8"},{"url":"https://api.github.com/repos/divio/django-cms/labels/status:%20accepted","name":"status: accepted","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-11T17:40:19Z","updated_at":"2016-05-17T07:18:47Z","closed_at":null,"body":"When clicking \"view on site\" for pages with non-existing main configuration, error is raised:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1115667/15190380/e6209316-17af-11e6-85b6-2b4559a793ff.png)\r\n\r\n    Reverse for 'pages-details-by-slug' with arguments '()' and keyword arguments '{'slug': ''}' not found. 2 pattern(s) tried: [u'de/(?P<slug>[0-9A-Za-z-_.//]+)/$', u'de/(?P<slug>[0-9A-Za-z-_.//]+)/$']\r\n\r\n\r\nFull traceback:\r\n\r\n```\r\nEnvironment:\r\n\r\n\r\nRequest Method: GET\r\nRequest URL: http://localhost:8000/en-gb/spanish-test/?edit&language=en-gb\r\n\r\nDjango Version: 1.8.9\r\nPython Version: 2.7.11\r\nInstalled Applications:\r\n('djangocms_admin_style',\r\n 'django.contrib.auth',\r\n 'django.contrib.contenttypes',\r\n 'django.contrib.sessions',\r\n 'django.contrib.admin',\r\n 'django.contrib.sites',\r\n 'django.contrib.gis',\r\n 'django.contrib.sitemaps',\r\n 'django.contrib.staticfiles',\r\n 'django.contrib.messages',\r\n 'raven.contrib.django.raven_compat',\r\n 'storages',\r\n 'cnk_custom_user',\r\n 'cms',\r\n 'menus',\r\n 'sekizai',\r\n 'treebeard',\r\n 'djangocms_text_ckeditor',\r\n 'djangocms_style',\r\n 'djangocms_column',\r\n 'filer',\r\n 'robots',\r\n 'django_user_agents',\r\n 'easy_thumbnails',\r\n 'cnk_ft1_cms.custom_app_names.CMSPluginFilerImageAppconfig',\r\n 'cmsplugin_filer_file',\r\n 'cmsplugin_filer_folder',\r\n 'cmsplugin_filer_teaser',\r\n 'cmsplugin_filer_utils',\r\n 'cmsplugin_filer_video',\r\n 'cnk_plugins_blocks',\r\n 'cnk_djangocms_landingpages',\r\n 'cnk_djangocms_resources',\r\n 'cnk_world_regions',\r\n 'djangocms_inherit',\r\n 'djangocms_link',\r\n 'aldryn_redirects',\r\n 'aldryn_segmentation',\r\n 'country_segment',\r\n 'probabilistic_segment',\r\n 'aldryn_apphooks_config',\r\n 'parler',\r\n 'taggit',\r\n 'taggit_autosuggest',\r\n 'meta',\r\n 'meta_mixin',\r\n 'djangocms_blog',\r\n 'djangocms_page_meta',\r\n 'djangocms_youtube',\r\n 'cnk_ft158_cmsplugins',\r\n 'cmsdraftpreview',\r\n 'cnk_ft1_cms',\r\n 'debug_toolbar')\r\nInstalled Middleware:\r\n['debug_toolbar.middleware.DebugToolbarMiddleware',\r\n 'django.middleware.cache.UpdateCacheMiddleware',\r\n 'cms.middleware.utils.ApphookReloadMiddleware',\r\n 'django.contrib.sessions.middleware.SessionMiddleware',\r\n 'django.middleware.csrf.CsrfViewMiddleware',\r\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\r\n 'django.contrib.messages.middleware.MessageMiddleware',\r\n 'django.middleware.locale.LocaleMiddleware',\r\n 'django.middleware.common.CommonMiddleware',\r\n 'django.middleware.clickjacking.XFrameOptionsMiddleware',\r\n 'cms.middleware.user.CurrentUserMiddleware',\r\n 'cms.middleware.page.CurrentPageMiddleware',\r\n 'cms.middleware.toolbar.ToolbarMiddleware',\r\n 'cms.middleware.language.LanguageCookieMiddleware',\r\n 'aldryn_redirects.middleware.RedirectFallbackMiddleware',\r\n 'country_segment.middleware.ResolveCountryCodeMiddleware',\r\n 'django_user_agents.middleware.UserAgentMiddleware',\r\n 'django.middleware.cache.FetchFromCacheMiddleware']\r\n\r\n\r\nTemplate error:\r\nIn template /Volumes/CerneCuneExt/cloud/Dropbox (Personal)/work/repos/ft1_28_corporate_cms/cnk_ft1_cms/cnk_ft1_cms/templates/base.html, error at line 62\r\n   Reverse for 'pages-details-by-slug' with arguments '()' and keyword arguments '{'slug': ''}' not found. 2 pattern(s) tried: [u'de/(?P<slug>[0-9A-Za-z-_.//]+)/$', u'de/(?P<slug>[0-9A-Za-z-_.//]+)/$']\r\n\r\n   52 :   (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\r\n\r\n\r\n\r\n   53 :   m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\r\n\r\n\r\n\r\n   54 :   })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');\r\n\r\n\r\n\r\n   55 :   ga('create', 'UA-68835568-7', 'auto');\r\n\r\n\r\n\r\n   56 :   ga('send', 'pageview');\r\n\r\n\r\n\r\n   57 : </script>\r\n\r\n\r\n\r\n   58 : {% endif %}\r\n\r\n\r\n\r\n   59 : </head>\r\n\r\n\r\n\r\n   60 : <body>\r\n\r\n\r\n\r\n   61 :     \r\n\r\n\r\n\r\n   62 :      {% cms_toolbar %} \r\n\r\n\r\n\r\n   63 :     \r\n\r\n\r\n\r\nTraceback:\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/core/handlers/base.py\" in get_response\r\n  164.                 response = response.render()\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/template/response.py\" in render\r\n  158.             self.content = self.rendered_content\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/template/response.py\" in rendered_content\r\n  135.         content = template.render(context, self._request)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/template/backends/django.py\" in render\r\n  74.         return self.template.render(context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/template/base.py\" in render\r\n  210.                     return self._render(context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/test/utils.py\" in instrumented_test_render\r\n  96.     return self.nodelist.render(context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/template/base.py\" in render\r\n  905.                 bit = self.render_node(node, context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/template/debug.py\" in render_node\r\n  79.             return node.render(context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/template/loader_tags.py\" in render\r\n  135.         return compiled_parent._render(context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/test/utils.py\" in instrumented_test_render\r\n  96.     return self.nodelist.render(context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/template/base.py\" in render\r\n  905.                 bit = self.render_node(node, context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/template/debug.py\" in render_node\r\n  79.             return node.render(context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/classytags/core.py\" in render\r\n  146.         return self.render_tag(context, **kwargs)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/sekizai/templatetags/sekizai_tags.py\" in render_tag\r\n  83.         rendered_contents = nodelist.render(context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/template/base.py\" in render\r\n  905.                 bit = self.render_node(node, context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/template/debug.py\" in render_node\r\n  79.             return node.render(context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/classytags/core.py\" in render\r\n  146.         return self.render_tag(context, **kwargs)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/sekizai/templatetags/sekizai_tags.py\" in render_tag\r\n  83.         rendered_contents = nodelist.render(context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/template/base.py\" in render\r\n  905.                 bit = self.render_node(node, context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/template/debug.py\" in render_node\r\n  79.             return node.render(context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/classytags/core.py\" in render\r\n  146.         return self.render_tag(context, **kwargs)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/sekizai/templatetags/sekizai_tags.py\" in render_tag\r\n  83.         rendered_contents = nodelist.render(context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/template/base.py\" in render\r\n  905.                 bit = self.render_node(node, context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/template/debug.py\" in render_node\r\n  79.             return node.render(context)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/classytags/core.py\" in render\r\n  146.         return self.render_tag(context, **kwargs)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/cms/templatetags/cms_tags.py\" in render_tag\r\n  663.             toolbar.populate()\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/cms/toolbar/toolbar.py\" in populate\r\n  302.         self._call_toolbar('populate')\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/cms/toolbar/toolbar.py\" in _call_toolbar\r\n  351.                 result = getattr(toolbar, func_name)()\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/cms/cms_toolbars.py\" in populate\r\n  139.             self.add_language_menu()\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/cms/cms_toolbars.py\" in add_language_menu\r\n  228.                     url = DefaultLanguageChanger(self.request)(code)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/menus/utils.py\" in __call__\r\n  137.         return '%s%s' % (self.get_page_path(lang), self.app_path)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/menus/utils.py\" in get_page_path\r\n  107.                         return page.get_absolute_url(language=lang, fallback=True)\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/cms/models/pagemodel.py\" in get_absolute_url\r\n  160.             return reverse('pages-details-by-slug', kwargs={\"slug\": path})\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/core/urlresolvers.py\" in reverse\r\n  578.     return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))\r\nFile \"/Users/petr/virtualenvs/ft1_28_corporate_cms/lib/python2.7/site-packages/django/core/urlresolvers.py\" in _reverse_with_prefix\r\n  495.                              (lookup_view_s, args, kwargs, len(patterns), patterns))\r\n\r\nException Type: NoReverseMatch at /en-gb/spanish-test/\r\nException Value: Reverse for 'pages-details-by-slug' with arguments '()' and keyword arguments '{'slug': ''}' not found. 2 pattern(s) tried: [u'de/(?P<slug>[0-9A-Za-z-_.//]+)/$', u'de/(?P<slug>[0-9A-Za-z-_.//]+)/$']\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/divio/django-cms/issues/comments/219638419","html_url":"https://github.com/divio/django-cms/issues/5271#issuecomment-219638419","issue_url":"https://api.github.com/repos/divio/django-cms/issues/5271","id":219638419,"user":{"login":"FinalAngel","id":270307,"avatar_url":"https://avatars.githubusercontent.com/u/270307?v=3","gravatar_id":"","url":"https://api.github.com/users/FinalAngel","html_url":"https://github.com/FinalAngel","followers_url":"https://api.github.com/users/FinalAngel/followers","following_url":"https://api.github.com/users/FinalAngel/following{/other_user}","gists_url":"https://api.github.com/users/FinalAngel/gists{/gist_id}","starred_url":"https://api.github.com/users/FinalAngel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FinalAngel/subscriptions","organizations_url":"https://api.github.com/users/FinalAngel/orgs","repos_url":"https://api.github.com/users/FinalAngel/repos","events_url":"https://api.github.com/users/FinalAngel/events{/privacy}","received_events_url":"https://api.github.com/users/FinalAngel/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T07:18:47Z","updated_at":"2016-05-17T07:18:47Z","body":"@petrklus it's on our radar but I can't provide a deadline, you're welcome to propose a patch :)"}}