> On Nov 9, 2015, at 10:54 , Jonathan Vanasco <[email protected]> wrote: > > You can have views in multiple files, and even different packages. > > `views.py` is just a "scaffold" or reference implementation. > > IIRC, Pyramid will automatically scan either `views.py` or a `views/` > package directory and subdirectories by default. (ie, everything with an > `__init__.py`)
This is not done by default. However most examples have config.scan() which
will scan all packages it finds.
>
> If you want to scan other packages/directories, you can even use dotted
> notation to explicitly scan them as well:
>
> config.scan("myapp.views_a")
>
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pylons-discuss.
> For more options, visit https://groups.google.com/d/optout.
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME cryptographic signature
