I think you'll just need to add a new URL config in your app or Mezzanine
similar to the one in mezzanine/urls.py You'll see there:
# Mezzanine's Blog app.
blog_installed = "mezzanine.blog" in settings.INSTALLED_APPS
if blog_installed:
BLOG_SLUG = settings.BLOG_SLUG.rstrip("/")
blog_patterns = patterns("",
("^%s" % BLOG_SLUG, include("mezzanine.blog.urls")),
)
urlpatterns += blog_patterns
So you'll need to add a new base URL that includes your new ite blog app
urls.py file at the URL that you want. If you haven't already I would
recommend that you add the new blog "app" as a separate app in your
project, which will make updating mezzanine in the future much easier.
On Friday, November 13, 2015 at 8:36:50 AM UTC-7, Joseph Mohan wrote:
>
> 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.