분류 전체보기(845)
-
AttributeError at /gantt/gantt/'Gantt' object has no attribute 'get'Request Method: GETRequest URL: http://localhost/gantt/gantt/Django Version: 3.1.2Exception Type: AttributeErrorException Value:'Gantt' object has no attribute 'get'
views.py def gantt(request) : return HttpResponse('Hello World') urls.py urlpatterns = [ path('gantt/', views.Gantt, name='gantt'), ] http://localhost/gantt/gantt/ 호출시 에러 발생 urls.py에서 'views.Gantt''가 오타 'views.gantt'로 변경하면 해결됨
2021.01.16 -
static 파일(스크립트, 이미지 등) 처리
setting.py STATIC_URL = '/static/' STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')] 탬플릿 {% load static %}
2021.01.16 -
최신 버전 가져오기 2021.01.16
-
ID로 객체를 찾아서 값 가져오기, 셋팅하기
document.getElementById('id_form-1-name').value $('#id_form-1-name').val() document.getElementById('id_form-1-name').value = 'ㄴㄴㄴ' $('#id_form-1-name').val('ㄴㄴㄴ')
2021.01.16 -
브라우져에서 콘솔로 로그 출력
console.log('aaa')
2021.01.15 -
focus 객체 확인하기
document.activeElement.id
2021.01.15