summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki/NOTE-relocatable.txt
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-11-11 12:25:59 -0500
committerChris McDonough <chrism@plope.com>2011-11-11 12:25:59 -0500
commitc8e2f8e35c99b4f35d53ed0bb73e737e97ef345c (patch)
tree117cd5f89699c22bbb112bcf1a1d71b26037de15 /docs/tutorials/wiki/NOTE-relocatable.txt
parent9da33516637075b5a41b2e8bf500297a4cb71166 (diff)
parent41de98e3287b8ddd457c24ea952839261b3b462f (diff)
downloadpyramid-c8e2f8e35c99b4f35d53ed0bb73e737e97ef345c.tar.gz
pyramid-c8e2f8e35c99b4f35d53ed0bb73e737e97ef345c.tar.bz2
pyramid-c8e2f8e35c99b4f35d53ed0bb73e737e97ef345c.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/tutorials/wiki/NOTE-relocatable.txt')
-rw-r--r--docs/tutorials/wiki/NOTE-relocatable.txt13
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..cec2639f3
--- /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
+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.