Django

Code

Changeset 1676

Show
Ignore:
Timestamp:
12/15/05 17:44:33 (3 years ago)
Author:
adrian
Message:

Added 'Where should this code live?' section to tutorial01

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/tutorial01.txt

    r1465 r1676  
    3232``site-packages/django/bin``; consider symlinking to it from some place 
    3333on your path, such as /usr/local/bin.) 
     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``. 
    3446 
    3547A project is a collection of settings for an instance of Django -- including