Changeset 789
- Timestamp:
- 10/06/05 09:30:35 (3 years ago)
- Files:
-
- django/trunk/django/core/management.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/management.py
r784 r789 17 17 # Use django.__path__[0] because we don't know which directory django into 18 18 # which has been installed. 19 PROJECT_TEMPLATE_DIR = os.path.join(django.__path__[0], 'conf /%s_template')20 ADMIN_TEMPLATE_DIR = os.path.join(django.__path__[0], 'conf /admin_templates')19 PROJECT_TEMPLATE_DIR = os.path.join(django.__path__[0], 'conf', '%s_template') 20 ADMIN_TEMPLATE_DIR = os.path.join(django.__path__[0], 'conf', 'admin_templates') 21 21 22 22 def _get_packages_insert(app_label): … … 161 161 app_label = mod._MODELS[0]._meta.app_label 162 162 output.append(_get_packages_insert(app_label)) 163 app_dir = os.path.normpath(os.path.join(os.path.dirname(mod.__file__), '.. /sql'))163 app_dir = os.path.normpath(os.path.join(os.path.dirname(mod.__file__), '..', 'sql')) 164 164 for klass in mod._MODELS: 165 165 opts = klass._meta … … 377 377 # Populate TEMPLATE_DIRS for the admin templates, based on where Django is 378 378 # installed. 379 admin_settings_file = os.path.join(directory, project_name, 'settings /admin.py')379 admin_settings_file = os.path.join(directory, project_name, 'settings', 'admin.py') 380 380 settings_contents = open(admin_settings_file, 'r').read() 381 381 fp = open(admin_settings_file, 'w') … … 384 384 fp.close() 385 385 # Create a random SECRET_KEY hash, and put it in the main settings. 386 main_settings_file = os.path.join(directory, project_name, 'settings /main.py')386 main_settings_file = os.path.join(directory, project_name, 'settings', 'main.py') 387 387 settings_contents = open(main_settings_file, 'r').read() 388 388 fp = open(main_settings_file, 'w') … … 398 398 # Determine the project_name a bit naively -- by looking at the name of 399 399 # the parent directory. 400 project_dir = os.path.normpath(os.path.join(directory, '.. /'))400 project_dir = os.path.normpath(os.path.join(directory, '..')) 401 401 project_name = os.path.basename(project_dir) 402 402 _start_helper('app', app_name, directory, project_name)
