Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

MWS menu in dashboard not appearing #3

Open
natea opened this issue May 18, 2014 · 4 comments
Open

MWS menu in dashboard not appearing #3

natea opened this issue May 18, 2014 · 4 comments

Comments

@natea
Copy link

natea commented May 18, 2014

I've added these lines to my settings.py file, but the MWS menu item is not showing up when I go to the dashboard.

from oscar import get_core_apps
INSTALLED_APPS = INSTALLED_APPS + ['oscar_mws'] + get_core_apps([...])

from oscar.defaults import *
from oscar_mws.defaults import *

OSCAR_DASHBOARD_NAVIGATION += MWS_DASHBOARD_NAVIGATION

Is there something else that I'm missing?

@roadsideseb
Copy link
Contributor

That's a good question. As far as I can see, there's nothing wrong with the settings above. I've tried running the sandbox which pretty much includes the same settings and the menu item shows up without problems. Which versions of Django and Oscar are you using?

I remember having some issues previously with an older bug in Django that would load the settings module twice and cause unexpected behavious in OSCAR_DASHBOARD_NAVIGATION. Other than that, the only reason I can see for this, is that you your OSCAR_DASHBOARD_NAVIGATION is overwritten later in the file or by another import later on. How are you handling your settings?

@natea
Copy link
Author

natea commented May 19, 2014

I had a similar problem when I was trying to integrate django-oscar-paypal with my Oscar site, and the only way I could figure out how to get it working was to copy the sandbox directory and build from there. So I'll do the same with the MWS sandbox and see if I can get it working that way.

Here's my settings.py file:
https://gist.github.com/natea/40890a503faae448d968

@roadsideseb
Copy link
Contributor

I can't see anything obviously wrong with your settings above. The only thing that could have unexpected side effects is the from integration import * at the bottom. If you override the OSCAR_DASHBOARD_NAVIGATION in the integration module, the changes wouldn't take effect. Other than that, I'm not quite sure what the issue could be.

@natea
Copy link
Author

natea commented May 28, 2014

Yeah, I'm not sure what it is either. I have it sorta working with the Sandbox but haven't tried to get it working again with my existing Django Oscar site. I'll report back how that goes when I cross that bridge.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants