Skip to content

Commit 6302c43

Browse files
committed
document project hook directories
1 parent 427c466 commit 6302c43

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/source/projects.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@ site, combine the :ref:`templates-bitbucket` and
3131

3232
$ mkproject -t bitbucket -t django my_site
3333

34+
Project Hook Files
35+
==================
36+
37+
The project directory can include additional hook files for the
38+
`postactivate` and `predeactivate` hooks. Placing hook scripts in the
39+
project hook directory, `.virtualenvwrapper`, allows them to be
40+
checked into version control and shared more easily.
41+
42+
When the :ref:`scripts-postactivate` hook runs, it looks for
43+
`.virtualenvwrapper/postactivate` within the project directory and if
44+
it is found it sources the file.
45+
46+
When the :ref:`scripts-predeactivate` hook runs, it looks for
47+
`.virtualenvwrapper/predeactivate` within the project directory and if
48+
it is found it sources the file.
49+
3450
.. seealso::
3551

3652
* :ref:`extensions-templates`

0 commit comments

Comments
 (0)