Changeset 2328
- Timestamp:
- 02/17/06 12:33:09 (3 years ago)
- Files:
-
- django/trunk/django/core/management.py (modified) (2 diffs)
- django/trunk/django/__init__.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/management.py
r2272 r2328 63 63 # field as the field to which it points. 64 64 get_rel_data_type = lambda f: (f.get_internal_type() in ('AutoField', 'PositiveIntegerField', 'PositiveSmallIntegerField')) and 'IntegerField' or f.get_internal_type() 65 66 def get_version(): 67 "Returns the version as a human-format string." 68 from django import VERSION 69 v = '.'.join([str(i) for i in VERSION[:-1]]) 70 if VERSION[3]: 71 v += ' (%s)' % VERSION[3] 72 return v 65 73 66 74 def get_sql_create(mod): … … 901 909 def execute_from_command_line(action_mapping=DEFAULT_ACTION_MAPPING): 902 910 # Parse the command-line arguments. optparse handles the dirty work. 903 parser = DjangoOptionParser( get_usage(action_mapping))911 parser = DjangoOptionParser(usage=get_usage(action_mapping), version=get_version()) 904 912 parser.add_option('--settings', 905 913 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.') django/trunk/django/__init__.py
r3 r2328 1 VERSION = (0, 9, 1, 'SVN')
