2010-03-24 3 views
0

this tutorial과 함께 따라 장고를 배우려고합니다. 나는python manage.py runserver 실패

django-admin.py startproject mysite 

을 실행 장고 버전 1.1.1

을 이용하고 있고 그것은해야 파일을 만듭니다. 그런 다음 실행하여 서버를 시작하려고 시도합니다.

python manage.py runserver 

그러나 여기에 다음 오류가 발생합니다.

Traceback (most recent call last): 
    File "manage.py", line 11, in <module> 
    execute_manager(settings) 
    File "/Library/Python/2.6/site-packages/django/core/management/__init__.py", line 362, in execute_manager 
    utility.execute() 
    File "/Library/Python/2.6/site-packages/django/core/management/__init__.py", line 303, in execute 
    self.fetch_command(subcommand).run_from_argv(self.argv) 
    File "/Library/Python/2.6/site-packages/django/core/management/base.py", line 195, in run_from_argv 
    self.execute(*args, **options.__dict__) 
    File "/Library/Python/2.6/site-packages/django/core/management/base.py", line 213, in execute 
    translation.activate('en-us') 
    File "/Library/Python/2.6/site-packages/django/utils/translation/__init__.py", line 73, in activate 
    return real_activate(language) 
    File "/Library/Python/2.6/site-packages/django/utils/translation/__init__.py", line 43, in delayed_loader 
    return g['real_%s' % caller](*args, **kwargs) 
    File "/Library/Python/2.6/site-packages/django/utils/translation/trans_real.py", line 205, in activate 
    _active[currentThread()] = translation(language) 
    File "/Library/Python/2.6/site-packages/django/utils/translation/trans_real.py", line 194, in translation 
    default_translation = _fetch(settings.LANGUAGE_CODE) 
    File "/Library/Python/2.6/site-packages/django/utils/translation/trans_real.py", line 172, in _fetch 
    for localepath in settings.LOCALE_PATHS: 
    File "/Library/Python/2.6/site-packages/django/utils/functional.py", line 273, in __getattr__ 
    return getattr(self._wrapped, name) 
AttributeError: 'Settings' object has no attribute 'LOCALE_PATHS' 

지금, 나는 LOCALE_PATH의 atribute를 추가하고 내 settings.py 파일에 빈 튜플로 설정하지만 그것은 단지 등 다른 설정과 불평 할 수 있습니다. 내가 여기서 무엇을 놓치고 있니?

답변

0

정말 설명 할 수 없습니다. 프로젝트 디렉토리를 제거하고 다시 시작하십시오.

설정 파일을 사용하여 디렉토리 내에서 manage.py을 확실히 실행하고 있습니까?

+0

여러 번 추가 및 제거했습니다. 나는 확실히 설정 파일과 함께 디렉토리 내에서 manage.py를 실행하고있다. –

관련 문제