Re: [mezzanine-users] a small app : mezzanine-onepage

2015-05-19 Thread Luc Milland
thanks for the link, it's done : https://github.com/lucmilland/mezzanine-onepage/releases/tag/v1.1.0 . I struggled a bit, since I naively thought that I could get rid off the EXTRA_MODEL_FIELDS part, but of course not. Swappable Models would be the solution, here :) https://github.com/stephenmcd/m

Re: [mezzanine-users] a small app : mezzanine-onepage

2015-05-19 Thread luc
answering myself : this was a answer to Josh link about migration, of course. @stephen : looks interesting for ones who need to simplify the admin to users. But I don't see well how to use it in my app without being too restrictive. > -- You received this message because you are subscribed

Re: [mezzanine-users] Domains without "www" not working after deploy.

2015-05-19 Thread Stephen McDonald
I'd suggest having www never touch the Django app, and redirect all its requests via nginx: server { listen 80; server_name www.foo.com; rewrite ^(.*) http://foo.com$1 permanent; } On Mon, May 18, 2015 at 11:26 AM, taedori wrote: > Thanks for reply > Actual address is > > www.taed

Re: [mezzanine-users] Support for Different or Multiple Email Sending Addresses

2015-05-19 Thread Stephen McDonald
Yep, fixed a few months ago here: https://github.com/stephenmcd/cartridge/issues/225 Yet to be released - soon! On Mon, May 18, 2015 at 12:42 PM, Josh Cartmell wrote: > Hi vikraw, I'm wondering if this is something that was fixed in Cartridge > at some point. Take a look at the current invoic

[mezzanine-users] 404 - absolute link in the github README

2015-05-19 Thread Federico Bruni
Hi all If you go here: https://github.com/stephenmcd/mezzanine and click on Multi-lingual-sites you get a 404, as it searches in jupo.org, where there's still version 3.1.10 and that page is still missing. Better change this absolute link to readthedocs.org (where page is updated regularly)? h

Re: [mezzanine-users] 404 - absolute link in the github README

2015-05-19 Thread Stephen McDonald
Thanks - that'll automatically fix itself soon. On Tue, May 19, 2015 at 8:11 AM, Federico Bruni wrote: > Hi all > > If you go here: > https://github.com/stephenmcd/mezzanine > > and click on Multi-lingual-sites you get a 404, as it searches in jupo.org, > where there's still version 3.1.10 and t

Re: [mezzanine-users] a small app : mezzanine-onepage

2015-05-19 Thread Josh Cartmell
Nice one Luc! On Tue, May 19, 2015 at 3:44 AM, wrote: > answering myself : this was a answer to Josh link about migration, of > course. > > @stephen : looks interesting for ones who need to simplify the admin to > users. But I don't see well how to use it in my app without being too > restrictiv

Re: [mezzanine-users] Nested inline admins

2015-05-19 Thread Josh Cartmell
Hi Tom, I would do something like this: https://gist.github.com/joshcartme/6856ee5e35c7a6456d9e I just through that together so there probably are typos and missing imports, but it's a pattern I've used many times. If you follow that, you second level inline will have a link that says "Edit third

[mezzanine-users] How to create RichText migration

2015-05-19 Thread Maksym Mospanenko
I have a model that extends RichTextPage. How can I set default value for this field? "You are trying to add a non-nullable field 'richtextpage_ptr' to product without a default; we can't do that (the database needs something to populate existing rows)." Which is the right solution? -- You rec

Re: [mezzanine-users] How to create RichText migration

2015-05-19 Thread Ken Bolton
Hi Maksym, Can I ask you to read about Mezzanine's content architecture ? RichTextPage does not support subclassing. You are likely looking for model customization

Re: [mezzanine-users] How to create RichText migration

2015-05-19 Thread Maksym Mospanenko
I read docs but maybe didn't understand enough. Abstract class RichTextPage is Page and RichText mixin. I thought that I can use it as base for my model (only rich page and some fields). Why I have to use injection if I write my app with own models? вівторок, 19 травня 2015 р. 23:16:26 UTC+3 ко

Re: [mezzanine-users] How to create RichText migration

2015-05-19 Thread Ken Bolton
https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/pages/models.py#L37-L38 You can create a custom "copy" of RichTextPage by copying the code. Ask yourself this question, though: Do I want multiple types of RichTextPage-alike pages for my content editors to learn and understand, or do

Re: [mezzanine-users] How to create RichText migration

2015-05-19 Thread Maksym Mospanenko
I want page type with ImageField and ForeignKey to other type and others RichText pages (default). I don't want add extra fields to whole pages on the site - I only want one my content type. And I don't understand how it tied with migrations. My model doesn't have default values as fields from

Re: [mezzanine-users] A RESTful Web API for Mezzanine (mezzanine-api)

2015-05-19 Thread Geo
Thank you very much for your commit to add a link to the app and also for your informative reply Stephen, really appreciate it! The other API project that you mentioned in you links above seems to have just one main contributor and doesn't look to have been particularly active in the last half