diff options
| author | kenmanheimer <ken.manheimer@gmail.com> | 2011-11-08 14:08:35 -0800 |
|---|---|---|
| committer | kenmanheimer <ken.manheimer@gmail.com> | 2011-11-08 14:08:35 -0800 |
| commit | 4db74575da249c401db9ab30a3a4f4c07a96acfb (patch) | |
| tree | 8cdc34ef3345d5f043aa6bce9696d87a94cef7dc /docs/tutorials | |
| parent | 4466bb20f3dada4d7fde0aff0a49213d8eb177ab (diff) | |
| download | pyramid-4db74575da249c401db9ab30a3a4f4c07a96acfb.tar.gz pyramid-4db74575da249c401db9ab30a3a4f4c07a96acfb.tar.bz2 pyramid-4db74575da249c401db9ab30a3a4f4c07a96acfb.zip | |
Explain relative naming policies necessary to allow varying the package
name without breaking operation.
Diffstat (limited to 'docs/tutorials')
| -rw-r--r-- | docs/tutorials/wiki/NOTE-relocatable.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/tutorials/wiki/NOTE-relocatable.txt b/docs/tutorials/wiki/NOTE-relocatable.txt new file mode 100644 index 000000000..7e42cf573 --- /dev/null +++ b/docs/tutorials/wiki/NOTE-relocatable.txt @@ -0,0 +1,13 @@ +We specifically use relative package references where possible so this demo +works even if the user names their package (in the 'bin/paster create -t +pyramid_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. |
