Changeset 793
- Timestamp:
- 10/06/05 12:22:23 (3 years ago)
- Files:
-
- django/trunk/django/bin/django-admin.py (modified) (2 diffs)
- django/trunk/docs/django-admin.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/bin/django-admin.py
r692 r793 54 54 parser.add_option('--settings', 55 55 help='Python path to settings module, e.g. "myproject.settings.main". If this isn\'t provided, the DJANGO_SETTINGS_MODULE environment variable will be used.') 56 parser.add_option('--pythonpath', 57 help='Lets you manually add a directory the Python path, e.g. "/home/djangoprojects/myproject".') 56 58 options, args = parser.parse_args() 57 59 … … 59 61 if options.settings: 60 62 os.environ['DJANGO_SETTINGS_MODULE'] = options.settings 63 if options.pythonpath: 64 sys.path.insert(0, options.pythonpath) 61 65 62 66 # Run the appropriate action. Unfortunately, optparse can't handle django/trunk/docs/django-admin.txt
r692 r793 194 194 ``django-admin.py`` will use the DJANGO_SETTINGS_MODULE environment variable. 195 195 196 --pythonpath 197 ============ 198 199 Example usage:: 200 201 django-admin.py init --pythonpath='/home/djangoprojects/myproject' 202 203 Adds the given filesystem path to the Python path. If this isn't provided, 204 ``django-admin.py`` will use the ``PYTHONPATH`` environment variable. 205 196 206 --help 197 207 ======
