Combine Wagtail with existing Django Project

969 views
Skip to first unread message

Magdalena Noffke

unread,
Aug 19, 2014, 10:53:16 AM8/19/14
to wag...@googlegroups.com
Hi there,

I just found out about Wagtail and would like to use for an existing project, but I am not sure if that will work. Maybe you can help me? 

What I want to do:
I already have an existing Django Project with some Apps. For this project I need to add several additional pages such as a contactpage, helppages and maybe a blog. All these pages should be editable by an editor. Now instead of building my own kind of cms I thought I could use one that builds upon django. Most important to me is, that I dont have to change my existing project. So is this possible with Wagtail?

Thanks 
Magda

 

Matthew Westcott

unread,
Aug 19, 2014, 5:00:34 PM8/19/14
to wag...@googlegroups.com
Hi Magda,

Yes, it's possible to use Wagtail for this... there are already a few sites 'in the wild' that are using Wagtail to manage specific sections, rather than the whole site.

Once you've installed the 'wagtail' package, you just need to add a few entries to INSTALLED_APPS (see https://github.com/torchbox/wagtaildemo/blob/master/wagtaildemo/settings/base.py#L150-167 ) and a couple of entries to urls.py <https://github.com/torchbox/wagtaildemo/blob/master/wagtaildemo/urls.py> - usually these would be placed at '/admin' and '/', but they can be placed anywhere that doesn't collide with other URL paths in your project, such as '/wagtail-admin' and '/pages'.

Right now there is a bug with generating page URLs when Wagtail is used at a non-root path (such as '/pages') - this will be fixed in the next release, which will be out in the next month or so. <http://wagtail.readthedocs.org/en/latest/releases/0.6.html#bug-fixes>

Regards,
- Matt
Reply all
Reply to author
Forward
0 new messages