mediagoblin-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GMG-Devel] flatpagesfile setup


From: ayleph
Subject: Re: [GMG-Devel] flatpagesfile setup
Date: Thu, 16 Apr 2015 12:34:56 -0700
User-agent: Mutt/1.5.23 (2014-03-12)

On Thu, Apr 16, 2015 at 01:58:47PM -0500, jimbo wrote:
> Hi,
> 
> I'm attempting to setup the flatpagesfile plugin for a new mg install.
> 
> I've followed the directions in this guide:
> http://mediagoblin.readthedocs.org/en/stable/plugindocs/flatpagesfile.html#flatpagesfile-chapter
> 
> But it is not clear ro me from this guide exactly where the suggested
> "local_templates" directory should be created.

Hi jimbo.

mediagoblin.ini includes a configuration directive for "local_templates" which 
by default points to %(data_basedir)s/templates/.

%(data_basedir) is also configured in mediagoblin.ini. In my case, I have the 
following configuration.

mediagoblin.ini:
data_basedir = "/var/lib/mediagoblin"
local_templates = %(data_basedir)s/templates/
[[mediagoblin.plugins.flatpagesfile]]
about-view = '/about', about.html

My about page is located on my filesystem at 
/var/lib/mediagoblin/templates/flatpagesfile/about.html

If your data_basedir configured for %(here)s/user_dev then your files should be 
located at /path/to/mediagoblin/user_dev/templates/flatpagesfile/

Hope this helps,

-- 
ayleph


reply via email to

[Prev in Thread] Current Thread [Next in Thread]