I'm trying to replicate the blog model and admin so i can create a second
blog.
To do this i have literally copy and pasted from
http://mezzanine.readthedocs.org/en/latest/_modules/mezzanine/blog/models.html
and swapped all 'BlogPost' for my custom 'Ite' and any 'blog_post' to
'ite_post'. i dont need the commenting or rating so got rid of anything
relevant. All this lives in 'my_cms/models.py'
So far so good. copied the relevant admin stuff
from
https://raw.githubusercontent.com/stephenmcd/mezzanine/master/mezzanine/blog/admin.py
and now i have the admin all set up working fine.
I just need to wrap my head round how to set up the urls..
having trouble in the blog model with the line:
url_name = "blog_post_detail"
If i change this to what i would like as a new url: 'ite_post_detail' and
enter a new 'Ite post' it saves fine but when i try to 'view on site'
obviously it goes off to the original blog and a page that doesn't exist.
I assume i'll just have to set up my templates in the same format as the
blog (but with new names: ite_post_detail, ite_post_list)
but don't know where to start in urls.py?
Any help or links greatly appreciated
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.