2013-05-10 2 views
1

설치된 찾을 수 없습니다 내 INSTALLED_APPS 같은이 :장고 내 장고 응용 프로그램에 대한이 같은 내 디렉토리 구조가 응용 프로그램

INSTALLED_APPS = (
    'django.contrib.auth', 
    'django.contrib.contenttypes', 
    'django.contrib.sessions', 
    'django.contrib.sites', 
    'django.contrib.messages', 
    'django.contrib.staticfiles', 
    'south', 
    'users' 
    # Uncomment the next line to enable the admin: 
    # 'django.contrib.admin', 
    # Uncomment the next line to enable admin documentation: 
    # 'django.contrib.admindocs', 
) 

장고는 응용 프로그램 사용자를 찾을 수 없습니다. 내가 도대체 ​​뭘 잘못하고있는 겁니까?

+1

스택 트레이스하세요? –

+1

어디에서 manage.py입니까? PythonPath의 내용은 무엇입니까? – Thomas

답변

2
models.py

변경 model.py, 또는 당신이 당신의 모듈에 대해 다른 이름을 사용하려는 경우 모델에 app_label 인수를 추가 메타 클래스 :

class YourModel(models.Model): 
    # fields... 

    class Meta: 
     app_label = 'users' 
관련 문제