[mezzanine-users] HOST_THEMES working example?

2014-01-22 Thread Radomir Wojcik
Themes tree of mez project: ├── lzone_theme_app │ ├── __init__.py │ ├── __init__.pyc │ ├── static │ │ ├── css │ │ │ ├── bootstrap.css │ │ │ ├── bootswatch.less │ │ │ ├── custom.less │ │ │ └── variables.less │ │ ├── img │ │ │ ├── favicon.ico │

Re: [mezzanine-users] HOST_THEMES working example?

2014-01-22 Thread Radomir Wojcik
to be importable the name has to be valid i.e. no periods and the __init__.py file is required. Is there anything else I should check? -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails

Re: [mezzanine-users] HOST_THEMES working example?

2014-01-22 Thread Stephen McDonald
I'd suggest checking the debugging instructions I provided on the github issue and following through with those. On Thu, Jan 23, 2014 at 7:31 AM, Radomir Wojcik radzh...@gmail.com wrote: to be importable the name has to be valid i.e. no periods and the __init__.py file is required. Is there

Re: [mezzanine-users] HOST_THEMES working example?

2014-01-22 Thread Jeff Pittman
Radomir, the code searches through HOST_THEMES and returns on the first match, so you must be hitting it with a host of 127.0.0.1? I put print statements in the code the other day and could get it to match on the second entry. I was testing with a production test case, so I had real domains to

Re: [mezzanine-users] HOST_THEMES working example?

2014-01-22 Thread Radomir Wojcik
I am hitting with both 127.0.0.1 and localhost, the page content changes correctly but not the theme. I will try the debug instructions next. I think HOST_THEMES should do what you want but since I haven't ever got it working I will stay out of the discussion until I fix it. I can try

Re: [mezzanine-users] HOST_THEMES working example?

2014-01-22 Thread Radomir Wojcik
Is there any way someone could create a quick example project with this working using localhost and 127.0.0.1 ? As simple as just changing the tag line in base.html for each theme would suffice. -- You received this message because you are subscribed to the Google Groups Mezzanine Users

Re: [mezzanine-users] HOST_THEMES working example?

2014-01-22 Thread Radomir Wojcik
I'm not using index.html though, I can get rid of that file I just want to get base.html going, that one doesn't extend anything. Couldn't find the template loader, is this it: https://github.com/pconerly/pc/blob/master/mezzanine/template/loader.py ? -- You received this message because

Re: [mezzanine-users] HOST_THEMES working example?

2014-01-22 Thread Radomir Wojcik
The TemplateForHostMiddleware is there in my settings but when debugging I added some print statements to see if it is hit and it doesn't look like it is using my configuration.. I can create a compact example on bitbucket and share it, hopefully you guys can help me fix it and it can be used

Re: [mezzanine-users] HOST_THEMES working example?

2014-01-22 Thread Josh Cartmell
You can see the code that I worked on for the template loader at: https://bitbucket.org/stephenmcd/mezzanine/pull-request/35/site_theme-loader Take another read through that thread I posted, the only way you will get base.html to work with the HOST_THEMES is if you directly render base.html from

Re: [mezzanine-users] HOST_THEMES working example?

2014-01-22 Thread Radomir Wojcik
Thanks Josh! It looks interesting, I will try it out tomorrow :) -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [mezzanine-users] HOST_THEMES working example?

2014-01-22 Thread Josh Cartmell
No problem, you don't need to use the particular fork of Mezzanine either, it should be easy enough to pull the loader out and add it to your own. On Wed, Jan 22, 2014 at 7:08 PM, Radomir Wojcik radzh...@gmail.com wrote: Thanks Josh! It looks interesting, I will try it out tomorrow :) --