강의로 돌아가기
최준용

오류가 나오네요 도와주세요ㅠㅠ

python : Traceback (most recent call last):
위치 줄:1 문자:1

  • python manage.py makemigrations
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (Traceback (most recent call last)::String) [], RemoteExcep tion
    • FullyQualifiedErrorId : NativeCommandError

File manage.py, line 15, in
execute_from_command_line(sys.argv)
File C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management\__
init__.py
, line 371, in execute_from_command_line
utility.execute()
File C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management\__
init__.py
, line 347, in execute
django.setup()
File C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\django\__init__.py, line
24, in setup
apps.populate(settings.INSTALLED_APPS)
File C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\django\apps\registry.py,
line 112, in populate
app_config.import_models()
File C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\django\apps\config.py, l
ine 198, in import_models
self.models_module = import_module(models_module_name)
File C:\Users\user\AppData\Local\Programs\Python\Python36\lib\importlib\__init__.py, line 126, in im
port_module
return bootstrap._gcd_import(name[level:], package, level)
File , line 994, in _gcd_import
File , line 971, in _find_and_load
File , line 955, in _find_and_load_unlocked
File , line 665, in _load_unlocked
File , line 678, in exec_module
File , line 219, in _call_with_frames_removed
File C:\FirstDjango\mysite\elections\models.py, line 4, in
class Candidate(models.Model):
File C:\FirstDjango\mysite\elections\models.py, line 5, in Candidate
name = models.CharField(max_Length=10)
File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\django\db\models\fields_
_init
.py", line 1042, in __init_
super().init(*args, **kwargs)
TypeError: init() got an unexpected keyword argument 'max_Length'

라고 뜨는데 왜 그러는 걸까요?

  • joker0100
    max_Length 에서 L을 소문자 l로 바꿔주세요 ㅎㅎ joker0100 2018.08.20 19:23
0 개의 답변
답변 쓰기
이 입력폼은 마크다운 문법을 지원합니다. 마크다운 가이드 를 참고하세요.