{"action":"created","issue":{"url":"https://api.github.com/repos/educloudalliance/educloud-bazaar/issues/63","labels_url":"https://api.github.com/repos/educloudalliance/educloud-bazaar/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/educloudalliance/educloud-bazaar/issues/63/comments","events_url":"https://api.github.com/repos/educloudalliance/educloud-bazaar/issues/63/events","html_url":"https://github.com/educloudalliance/educloud-bazaar/issues/63","id":52646556,"number":63,"title":"CMS graphical interface can not be accessed ","user":{"login":"preriasusi","id":7766712,"avatar_url":"https://avatars.githubusercontent.com/u/7766712?v=3","gravatar_id":"","url":"https://api.github.com/users/preriasusi","html_url":"https://github.com/preriasusi","followers_url":"https://api.github.com/users/preriasusi/followers","following_url":"https://api.github.com/users/preriasusi/following{/other_user}","gists_url":"https://api.github.com/users/preriasusi/gists{/gist_id}","starred_url":"https://api.github.com/users/preriasusi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/preriasusi/subscriptions","organizations_url":"https://api.github.com/users/preriasusi/orgs","repos_url":"https://api.github.com/users/preriasusi/repos","events_url":"https://api.github.com/users/preriasusi/events{/privacy}","received_events_url":"https://api.github.com/users/preriasusi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-22T12:46:50Z","updated_at":"2015-01-27T18:56:52Z","closed_at":null,"body":"There used to be a way for a CMS to access graphical UI in 'bazaar.educloudalliance.org/panel/'. Now that link is forwarding to front page. Also signing in to Bazaar as CMS is not possible, since everything is forwarding to Educloud SSO.\r\n"},"comment":{"url":"https://api.github.com/repos/educloudalliance/educloud-bazaar/issues/comments/71705492","html_url":"https://github.com/educloudalliance/educloud-bazaar/issues/63#issuecomment-71705492","issue_url":"https://api.github.com/repos/educloudalliance/educloud-bazaar/issues/63","id":71705492,"user":{"login":"Sturgelose","id":244191,"avatar_url":"https://avatars.githubusercontent.com/u/244191?v=3","gravatar_id":"","url":"https://api.github.com/users/Sturgelose","html_url":"https://github.com/Sturgelose","followers_url":"https://api.github.com/users/Sturgelose/followers","following_url":"https://api.github.com/users/Sturgelose/following{/other_user}","gists_url":"https://api.github.com/users/Sturgelose/gists{/gist_id}","starred_url":"https://api.github.com/users/Sturgelose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sturgelose/subscriptions","organizations_url":"https://api.github.com/users/Sturgelose/orgs","repos_url":"https://api.github.com/users/Sturgelose/repos","events_url":"https://api.github.com/users/Sturgelose/events{/privacy}","received_events_url":"https://api.github.com/users/Sturgelose/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T18:56:52Z","updated_at":"2015-01-27T18:56:52Z","body":"In order to fix the issue, the idea was create a parallel page which handled the old login. \r\n\r\nIn order to do that, I have created a new URL in ^/accounts/local which handles the local login. However this wasn't working as the costumer app wasn't properly done. \r\nThe costumer app was done downloading the code and adding some more code inside. However, Oscar won't handle the new views this way. The reason is that the app had to be inherited and then overridden some parts in order to work properly. \r\n```python\r\nfrom oscar.core.application import Application \r\n\r\nclass CustomerApplication(Application):\r\n```\r\nshould be replaced with\r\n```python\r\nfrom oscar.apps.customer.app import CustomerApplication as CoreCustomerApplication \r\n\r\nclass CustomerApplication(CoreCustomerApplication):\r\n```\r\n\r\nFinally, in order the app to replace the original customer Oscar app, it must be set in settings.py\r\n\r\n```python\r\nINSTALLED_APPS = [\r\n                     ...\r\n                     'apps.customer.notifications',\r\n                     'apps.customer.wishlists',\r\n                     'apps.customer.alerts',\r\n                 ] + get_core_apps(\r\n    ['apps.catalogue', 'apps.search', 'apps.order', 'apps.customer', 'apps.checkout'])\r\n```\r\n\r\nBecause the previous existing \"apps.catalogue.*\", Oscar didn't understand the *.\r\n\r\nFinally I added the URL in the costumer/app.py file:\r\n```python\r\nurl(r'^local/$', self.login_view.as_view(template_name='customer/local_registration.html'), name='login'),\r\n```\r\nWhich forces the account/login path to use a specific template instead of the default one."}}