File: NOTE-relocatable.txt

package info (click to toggle)
python-pyramid 1.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,112 kB
  • ctags: 8,169
  • sloc: python: 41,764; makefile: 111; sh: 17
file content (13 lines) | stat: -rw-r--r-- 492 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
We specifically use relative package references where possible so this demo
works even if the user names their package (in the '$VENV/bin/pcreate -s
zodb ...' step) something other than 'tutorial'.

Specifically:

- use relative imports
- use plain relative URLs for resources (like stylesheets and images) in
  page templates.

Direct uses of the package name, like in __init__.py 'config.scan()'
statements, are already adjusted by the paster/pcreate, so we don't have to
worry about them.