TypeError : __init __ ()에 예기치 않은 키워드 인수 'show_preview'가 있습니다.

그리고 시작

Django 1.9에서이 오류가 발생합니다.

in PostForm
    content = forms.CharField(widget=PagedownWidget(show_preview=False))
TypeError: __init__() got an unexpected keyword argument 'show_preview'

forms.py

class PostForm(forms.ModelForm):
    content = forms.CharField(widget=PagedownWidget(show_preview=False))
    publish = forms.DateField(widget=forms.SelectDateWidget)
    class Meta:
        model = Post
        fields = [
            "title",
            "content",
            "image",
            "draft",
            "publish",
        ]

가상 환경에 설치된 종속성 $ pip 동결

certifi==2019.11.28
Django==1.9
django-crispy-forms==1.8.1
django-filter==2.2.0
django-markdown-deux==1.0.5
django-pagedown==2.0.3
djangorestframework==3.11.0
Markdown==3.1.1
markdown2==2.3.1
olefile==0.46
Pillow==6.2.1
아라 칼 아부

사용 attrs- (장고 문서) 매개 변수 위젯에 값을 전달하는

widget=PagedownWidget(attrs={"show_preview":False})

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

TypeError : __init __ ()에 예기치 않은 키워드 인수 'camera'가 있습니다.

분류에서Dev

TypeError : __init __ ()에 예기치 않은 키워드 인수 'requote'가 있습니다.

분류에서Dev

TypeError : __init __ ()에 예기치 않은 키워드 인수 오류가 있습니다.

분류에서Dev

TypeError : __init __ ()에 예기치 않은 키워드 인수 'shape'가 있습니다.

분류에서Dev

Firebase 가져 오기 요청 : TypeError : __init __ ()에 예기치 않은 키워드 인수 'strict'가 있습니다.

분류에서Dev

InlineFormSet에 요청 사용자 추가 : TypeError : __init __ ()에 예기치 않은 키워드 인수 'user'가 있습니다.

분류에서Dev

도움이 필요하다 !!!! TypeError : __init __ ()에 예기치 않은 키워드 인수 'num_workers'가 있습니다.

분류에서Dev

TypeError : __init __ ()에 Python의 CatBoost에 대해 예기치 않은 키워드 인수 'early_stopping_rounds'가 있습니다.

분류에서Dev

TypeError : __init __ ()에 예기치 않은 키워드 인수 '선택'이 있습니다.

분류에서Dev

IBM Cloud-Watson NLC-TypeError : __init __ ()에 예기치 않은 키워드 인수 'iam_apikey'가 있습니다.

분류에서Dev

TypeError : __init __ ()에 예기치 않은 키워드 인수 '유효성 검사자'가 있습니다.

분류에서Dev

TypeError 해결 방법 : __init __ ()에 예기치 않은 키워드 인수 'attrs'Django가 있습니다.

분류에서Dev

TypeError : __init __ ()에 예기치 않은 키워드 인수 'categorical_features'가 있습니다. One Hot Encoder

분류에서Dev

TypeError : __init __ ()에 예기치 않은 키워드 인수 'task_id'가 있습니다.

분류에서Dev

TypeError : __init __ ()에 예기치 않은 키워드 인수 'restrict_xpath'가 있습니다.

분류에서Dev

Flask.json_encode, TypeError : __init __ ()에 예기치 않은 키워드 인수가 있습니다.

분류에서Dev

__init __ ()에 예기치 않은 키워드 인수 '필수'가 있습니다.

분류에서Dev

__init __ ()에 예기치 않은 키워드 인수 'stop_words'가 있습니다.

분류에서Dev

Tinfoleak 1.5 : __init __ ()에 예기치 않은 키워드 인수 'secure'가 있습니다.

분류에서Dev

__init __ ()에 예기치 않은 키워드 인수가 있습니다.

분류에서Dev

__init __ ()에 예기치 않은 키워드 인수 'y'가 있습니다.

분류에서Dev

django __init __ ()에 예기치 않은 키워드 인수 'content'가 있습니다.

분류에서Dev

__init __ ()에 예기치 않은 키워드 인수 'password'django가 있습니다.

분류에서Dev

TypeError : function ()에 예기치 않은 키워드 인수 'njobs'가 있습니다.

분류에서Dev

TypeError : Movie ()에 예기치 않은 키워드 인수 'actors'가 있습니다.

분류에서Dev

Graphql이있는 AIOHTTP : TypeError : __init __ ()에 예기치 않은 키워드 인수 'resolve'가 있습니다. 왜이 문제입니까?

분류에서Dev

TypeError : SMOTE를 사용할 때 __init __ ()에 예기치 않은 키워드 인수 '비율'이 있습니다.

분류에서Dev

Django 양식 비밀번호 TypeError : __init __ ()에 예기치 않은 키워드 인수 'widget'이 있습니다.

분류에서Dev

TypeError : __init __ ()에 예기치 않은 키워드 인수 'test_fraction'이 있습니다.

Related 관련 기사

  1. 1

    TypeError : __init __ ()에 예기치 않은 키워드 인수 'camera'가 있습니다.

  2. 2

    TypeError : __init __ ()에 예기치 않은 키워드 인수 'requote'가 있습니다.

  3. 3

    TypeError : __init __ ()에 예기치 않은 키워드 인수 오류가 있습니다.

  4. 4

    TypeError : __init __ ()에 예기치 않은 키워드 인수 'shape'가 있습니다.

  5. 5

    Firebase 가져 오기 요청 : TypeError : __init __ ()에 예기치 않은 키워드 인수 'strict'가 있습니다.

  6. 6

    InlineFormSet에 요청 사용자 추가 : TypeError : __init __ ()에 예기치 않은 키워드 인수 'user'가 있습니다.

  7. 7

    도움이 필요하다 !!!! TypeError : __init __ ()에 예기치 않은 키워드 인수 'num_workers'가 있습니다.

  8. 8

    TypeError : __init __ ()에 Python의 CatBoost에 대해 예기치 않은 키워드 인수 'early_stopping_rounds'가 있습니다.

  9. 9

    TypeError : __init __ ()에 예기치 않은 키워드 인수 '선택'이 있습니다.

  10. 10

    IBM Cloud-Watson NLC-TypeError : __init __ ()에 예기치 않은 키워드 인수 'iam_apikey'가 있습니다.

  11. 11

    TypeError : __init __ ()에 예기치 않은 키워드 인수 '유효성 검사자'가 있습니다.

  12. 12

    TypeError 해결 방법 : __init __ ()에 예기치 않은 키워드 인수 'attrs'Django가 있습니다.

  13. 13

    TypeError : __init __ ()에 예기치 않은 키워드 인수 'categorical_features'가 있습니다. One Hot Encoder

  14. 14

    TypeError : __init __ ()에 예기치 않은 키워드 인수 'task_id'가 있습니다.

  15. 15

    TypeError : __init __ ()에 예기치 않은 키워드 인수 'restrict_xpath'가 있습니다.

  16. 16

    Flask.json_encode, TypeError : __init __ ()에 예기치 않은 키워드 인수가 있습니다.

  17. 17

    __init __ ()에 예기치 않은 키워드 인수 '필수'가 있습니다.

  18. 18

    __init __ ()에 예기치 않은 키워드 인수 'stop_words'가 있습니다.

  19. 19

    Tinfoleak 1.5 : __init __ ()에 예기치 않은 키워드 인수 'secure'가 있습니다.

  20. 20

    __init __ ()에 예기치 않은 키워드 인수가 있습니다.

  21. 21

    __init __ ()에 예기치 않은 키워드 인수 'y'가 있습니다.

  22. 22

    django __init __ ()에 예기치 않은 키워드 인수 'content'가 있습니다.

  23. 23

    __init __ ()에 예기치 않은 키워드 인수 'password'django가 있습니다.

  24. 24

    TypeError : function ()에 예기치 않은 키워드 인수 'njobs'가 있습니다.

  25. 25

    TypeError : Movie ()에 예기치 않은 키워드 인수 'actors'가 있습니다.

  26. 26

    Graphql이있는 AIOHTTP : TypeError : __init __ ()에 예기치 않은 키워드 인수 'resolve'가 있습니다. 왜이 문제입니까?

  27. 27

    TypeError : SMOTE를 사용할 때 __init __ ()에 예기치 않은 키워드 인수 '비율'이 있습니다.

  28. 28

    Django 양식 비밀번호 TypeError : __init __ ()에 예기치 않은 키워드 인수 'widget'이 있습니다.

  29. 29

    TypeError : __init __ ()에 예기치 않은 키워드 인수 'test_fraction'이 있습니다.

뜨겁다태그

보관