pcreate: setting dir for templates

17 views
Skip to first unread message

Ivan Sergio Borgonovo

unread,
Oct 27, 2014, 12:24:53 PM10/27/14
to pylons-...@googlegroups.com
Is there a way to specify another directory to pcreate where to find
templates?

thanks

--
Ivan Sergio Borgonovo
http://www.webthatworks.it

Ivan Sergio Borgonovo

unread,
Oct 27, 2014, 12:24:53 PM10/27/14
to pylons-...@googlegroups.com
Is there a way to specify another directory to pcreate where to find
templates?

I'd like to keep my templates separated from the pyramid bundled ones.

Tres Seaver

unread,
Oct 27, 2014, 12:36:26 PM10/27/14
to pylons-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/24/2014 06:05 AM, Ivan Sergio Borgonovo wrote:

> Is there a way to specify another directory to pcreate where to find
> templates?

Templates are looked up via setuptools "entry points" (in a group named
'pyramid.scaffold') -- you need to install a project distribution which
registers them into the virtualenv you are using. E.g., see:

https://github.com/Pylons/substanced/blob/master/setup.py#L93-L94


Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tse...@palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAlROdHIACgkQ+gerLs4ltQ4t9wCgltCKAUpQ5Y9xXTNy7c17vSm9
ShQAnirJdKuddASN7Wm59nIwESJH7by0
=MQRR
-----END PGP SIGNATURE-----

Bert JW Regeer

unread,
Oct 27, 2014, 1:00:07 PM10/27/14
to pylons-...@googlegroups.com
You can create your own scaffold package, see how I created mine:

https://github.com/bertjwregeer/pyramid_scaffoldx

This can then be installed into a virtualenv, and will be available under pcreate -l

Bert JW Regeer
> --
> You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
> To post to this group, send email to pylons-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/pylons-discuss.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages