점프 투 장고 문의드립니다.
(mysite) c:\projects\mysite> python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\hum10\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\hum10\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
self._target(self._args, self._kwargs)
File "C:\venvs\mysite\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(args, **kwargs)
File "C:\venvs\mysite\lib\site-packages\django\core\management\commands\runserver.py", line 118, in inner_run
self.check(display_num_errors=True)
File "C:\venvs\mysite\lib\site-packages\django\core\management\base.py", line 392, in check
all_issues = checks.run_checks(
File "C:\venvs\mysite\lib\site-packages\django\core\checks\registry.py", line 70, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "C:\venvs\mysite\lib\site-packages\django\core\checks\urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "C:\venvs\mysite\lib\site-packages\django\core\checks\urls.py", line 23, in check_resolver
return check_method()
File "C:\venvs\mysite\lib\site-packages\django\urls\resolvers.py", line 408, in check
for pattern in self.url_patterns:
File "C:\venvs\mysite\lib\site-packages\django\utils\functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "C:\venvs\mysite\lib\site-packages\django\urls\resolvers.py", line 589, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "C:\venvs\mysite\lib\site-packages\django\utils\functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "C:\venvs\mysite\lib\site-packages\django\urls\resolvers.py", line 582, in urlconf_module
return import_module(self.urlconf_name)
File "C:\Users\hum10\AppData\Local\Programs\Python\Python310\lib\importlib__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
File "
File "
File "
File "
File "
File "c:\projects\mysite\config\urls.py", line 24, in
path('pybo/', include('pybo.urls')),
File "C:\venvs\mysite\lib\site-packages\django\urls\conf.py", line 34, in include
urlconf_module = import_module(urlconf_module)
File "C:\Users\hum10\AppData\Local\Programs\Python\Python310\lib\importlib__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
File "
File "
File "
File "
File "
File "c:\projects\mysite\pybo\urls.py", line 3, in
from .views import base_views, question_views, answer_views, comment_views, vote_views
File "c:\projects\mysite\pybo\views\question_views.py", line 6, in
from ..forms import QuestionForm
File "c:\projects\mysite\pybo\forms.py", line 25, in
class CommentForm(forms.ModelForm):
File "C:\venvs\mysite\lib\site-packages\django\forms\models.py", line 268, in new
raise FieldError(message)
django.core.exceptions.FieldError: Unknown field(s) (contnet) specified for Comment
cmd로 runserver하려고 보니까 이런식으로 에러메시지가 나옵니다.
혹시 무엇이 문제인지 알 수 있을까요?
RATO 님 620
2022년 9월 10일 3:29 오후