import 에러는 어떤 경우에 나는 건가요?ㅠㅠ
조회수 2368회
helloworld django강의를 듣던 중에 똑같이 따라했는데도 오류가 나서요.. helloworld에선 답변이 없어서 여기에다가도 물어봐요
from django.contrib import admin
from .models import Candidate
admin.site.Register(Candidate)
여기서 from .models~(candidate)부분까지 입력하기 전에는 Candidate를 import할 수 없다는 문장이 안떴는데 이걸 하고 나서 import 에러가 떠요 ㅠㅠ Candidate는.. 강의를 다시 봐도 틀린 부분은 없는 것 같아서요...왜 에러가 뜨는 걸까요..?
from django.db import models
# Create your models here.
class Candidate(models.Model):
name = models.CharField(max_length=10)
introduction = models.Textfield()
area = models.CharField(max_length=15)
party_number = models.IntegerField(defalut=1)
-
(•́ ✖ •̀)
알 수 없는 사용자
댓글 입력