inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

오유라님의 게시글

오유라 오유라

@flamevert2409

수강평 작성수
3
평균평점
5.0

게시글 5

질문&답변

화면 에러화면이 자꾸 뜨네요..

127.0.0.1:8000/todo/vonly/ 아래줄 코드에 127.0.0.1:8000/todo/create 들어가는 url마다 이렇게 넣나요? from django.urls import path, include from .views import HomeView urlpatterns = { path('admin/', admin.site.urls), path('', HomeView.as_view(), name='home'), path('todo/', include('todo.urls')), } from django.urls import path from . import views app_name = 'todo' urlpatterns = [ path('vonly/', views.TodoVueOnlyTV.as_view(), name='vonly'), path('create/', views.TodoVueOnlyTV.as_view(), name='create'), ] 제가 url 정의하는 방법을 모릅니다. 강의에는 vonly 정하는 것만 나와있네요. 저는 todo/list, todo/create url 리다이렉션마다 에러가 나요 어떻게 코드를 작성해야 하나요?

좋아요수
0
댓글수
4
조회수
430

질문&답변

임포트가 잘 안되요~~~~

Microsoft Windows [Version 10.0.19045.3448] (c) Microsoft Corporation. All rights reserved. C:\Users\user\data>C:/Users/user/AppData/Local/Programs/Python/Python311/python.exe c:/Users/user/data/sel.py Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\common\driver_finder.py", line 38, in get_path path = SeleniumManager().driver_location(options) if path is None else path ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\common\selenium_manager.py", line 76, in driver_location browser = options.capabilities["browserName"] ^^^^^^^^^^^^^^^^^^^^ AttributeError: 'str' object has no attribute 'capabilities' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "c:\Users\user\data\sel.py", line 33, in File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in init super().__init__( File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 51, in init self.service.path = DriverFinder.get_path(self.service, options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\common\driver_finder.py", line 40, in get_path msg = f"Unable to obtain driver for {options.capabilities['browserName']} using Selenium Manager." ^^^^^^^^^^^^^^^^^^^^

좋아요수
1
댓글수
3
조회수
325

질문&답변

수업 자료 보내주세요

찾아보니 강사님이 올려주신 강의자료가 있었습니다.

좋아요수
0
댓글수
2
조회수
448