[mezzanine-users] admin.StackedInline not working in mezzanine

2015-05-29 Thread Ernesto Palafox
Hi to all! I am working on a slider, i try it in django 1.7 and it works, but when i install it to mezzanine(Mezzanine 3.1.10) the StackedInline doesnt work. It doesnt show any information about my Slide model, does nothing when i click on it. (Image) here is my admin.py: # -*- encoding: utf-

[mezzanine-users] Re: admin.StackedInline not working in mezzanine

2015-05-29 Thread Mathias Ettinger
Hello, To integrate your models gracefully into mezzanine, your may want to have them extend mezzanine.pages.models.Page and extend the mezzanine.pages.admin.PageAdmin as their modeladmin. For your specific question about inlines, try mezzanine.core.admin.TabularDynamicInlineAdmin or mezzanin

[mezzanine-users] Re: mezzanine on elastic beanstalk

2015-05-29 Thread Brad Bode
Old question, but I figured it's worth answering. In your settings file you have to set the Root URL configuration file. Right now it looks like this: ROOT_URLCONF = "%s.urls" % PROJECT_DIRNAME Change it to this: ROOT_URLCONF = "urls" Because Elastic Beanstalk doesn't use the project name as th

Re: [mezzanine-users] Theming best practice: Bootstrap or bare-bones?

2015-05-29 Thread Simon Griffee
Thanks, Mathias. I've gone ahead and tried making something *without* using Bootstrap to begin with. If people like this I will make a version that uses Bootstrap, too. My reasoning for this is that I want to : 1. Focus on the simplest code when learning something and… 2. Improve performance by r

Re: [mezzanine-users] Theming best practice: Bootstrap or bare-bones?

2015-05-29 Thread Graham
Hi Simon If I do pip install mezzanine-robotonotebook Below is the stack trace It is looking for something at https://pypi.python.org/simple/mezzanine-robotonotebook/ like what you may find here for example https://pypi.python.org/simple/mezzanine/ I am not sure if that is related to the error

Re: [mezzanine-users] Theming best practice: Bootstrap or bare-bones?

2015-05-29 Thread Graham
Hi Simon I have had a look at this blog post http://peterdowns.com/posts/first-time-with-pypi.html It says that you need a setup.py file which I am not seeing on your repo... cheers g On 30/05/15 13:22, Simon Griffee wrote: Thanks, Mathias. I've gone ahead and tried making something *without

Re: [mezzanine-users] Theming best practice: Bootstrap or bare-bones?

2015-05-29 Thread Simon Griffee
Hi Graham, Those are the instructions I followed, and they seem to have worked — my package is listed on PyPI and from what I can see the `setup.py` file should be inside the same folder containing the package, and not in the package itself. This brings up the question of whether there is a 'best

[mezzanine-users] Re: Design to extend cartridge with global location selection

2015-05-29 Thread Mathias Ettinger
Hi, I’d rather not use a variation option to store the location: - it can be costly to retrieve every one of them when filtering products for a given category; - it will display on the product page and can be redundant if you have a dropdown elsewhere. Instead, I’d rather use EXTRA_MODEL_FIEL

Re: [mezzanine-users] Re: Design to extend cartridge with global location selection

2015-05-29 Thread Stephen McDonald
Might even be able to do something simple using locations as categories. On Fri, May 29, 2015 at 11:12 PM, Mathias Ettinger < mathias.ettin...@gmail.com> wrote: > Hi, > > I’d rather not use a variation option to store the location: > - it can be costly to retrieve every one of them when filterin

Re: [mezzanine-users] Theming best practice: Bootstrap or bare-bones?

2015-05-29 Thread Stephen McDonald
I'd suggest finding some open source Django apps and studying their structure on Github. Also following the tutorial you linked to before more closely, you've steered away from it it seems. - The virtualenv directory isn't relevant - You've split out a "package" directory and the git repo, with du

Re: [mezzanine-users] Theming best practice: Bootstrap or bare-bones?

2015-05-29 Thread Stephen McDonald
You've also got files in there that shouldn't be in the repo: https://github.com/hypertexthero/mezzanine-robotonotebook/blob/master/templates/.DS_Store That tutorial doesn't seem to deal with including non-Python files in your package, which you'll need to do to include your templates and other st

Re: [mezzanine-users] Theming best practice: Bootstrap or bare-bones?

2015-05-29 Thread Stephen McDonald
BTW don't feel disheartened, I never found a complete and thorough tutorial documenting this either (that's not to say there isn't one). The official docs are incredibly dense too. I just worked it all out through trial and error. The good thing is that once you get everything working, you never r

Re: [mezzanine-users] Re: Design to extend cartridge with global location selection

2015-05-29 Thread Mathias Ettinger
Indeed, Category can be the (already existing and SQL cheaper version of the) ManyToMany field I was referring to. You can use the PAGE_MENU_TEMPLATES checkboxes to make sure they don't appear in the menu if you don't want them to. Le samedi 30 mai 2015 08:17:57 UTC+2, Stephen McDonald a écri

Re: [mezzanine-users] Re: Design to extend cartridge with global location selection

2015-05-29 Thread Stephen McDonald
Yeah, great idea hiding the menu items. Then all you'd need is a couple of small view functions, like the one that sets the session variable, and one that does the redirect to the relevant location category by looking at the session variable - that might end up having a Link page in your menu call