| | 34 | |
|---|
| | 35 | .. admonition:: Where should this code live? |
|---|
| | 36 | |
|---|
| | 37 | If your background is in PHP, you're probably used to putting code under the |
|---|
| | 38 | Web server's document root (in a place such as ``/var/www``). With Django, |
|---|
| | 39 | you don't do that. It's not a good idea to put any of this Python code within |
|---|
| | 40 | your Web server's document root, because it risks the possibility that |
|---|
| | 41 | people may be able to view your code over the Web. That's not good for |
|---|
| | 42 | security. |
|---|
| | 43 | |
|---|
| | 44 | Put your code in some directory **outside** of the document root, such as |
|---|
| | 45 | ``/home/mycode``. |
|---|