에러 50

KeyError at /user/password_reset_confirm/MjQ/set-password/ 에러 해결 기록

PasswordResetConfirmView를 상속하며 문제를 해결해 나아가는 과정 기록 원인은 맨 밑으로 또한 결과를 보시려면 url 기존의 코드 소개 views.py from django.contrib.auth.views import LoginView, LogoutView, PasswordResetView, PasswordResetDoneView, PasswordResetConfirmView from django.contrib.auth.tokens import default_token_generator from django.utils.decorators import method_decorator from django.utils.http import is_safe_url, urlsafe_base64_d..

에러 2020.08.27

django NoReverseMatch Reverse for '*' with arguments '('',)' not found. 1 pattern(s) tried: ['*/*/(?P<*>[0-9]+)$']

NoReverseMatch at /timeApp/notices/ Reverse for 'notices_detail' with arguments '('',)' not found. 1 pattern(s) tried: ['timeApp/notices_detail/(?P[0-9]+)$'] detail 페이지를 만드는 중 해당 오류가 나왔습니다. 결론부터 말하자면 url에 받을 notices_id를 찾을수 없다는 내용입니다. notices.html 조차 열리지 않았습니다. 왜냐하면 notices.html에서 notices의 모든 객체를 notices에 넣었기 때문입니다. 그래서 파라메터로 넘길 notices.id를 입력해봤자 값이 없기때문에 views와 url에서 모두 팅기는 것이었습니다. notice.id로 바..

에러 2020.07.25

django.core.exceptions.ImproperlyConfigured: WSGI application '....wsgi.application' could not be loaded; Error importing module.

django.core.exceptions.ImproperlyConfigured: WSGI application '....wsgi.application' could not be loaded; Error importing module. 새로운 컴퓨터에서 git clone를 하고 난 뒤 이런 오류가 나왔다. 모듈을 가져오다가 오류가 났다고 하는데 WSGI? 생각나는건 헤로쿠를 배포할때 설정했던것 같기도 했다. 그래서 혹시나 해서 pip install whitenoise 했더니 해결 완료

에러 2020.07.18

DataTables warning: table id=example - Ajax error. For more information about this error, please see http://datatables.net/tn/7

DataTables warning: table id=example - Ajax error. For more information about this error, please see http://datatables.net/tn/7 Java Spring를 하며 Datatable를 가져오다 생긴 오류이다. 해당 부분은 controller에서 데이터를 넘겨줄때 data란 키값으로 넘겨줘야하는데 그러지 않아서 생긴 오류이다. 수정중에있따.

에러 2020.07.17

Uncaught ReferenceError: $ is not defined

$가 실행이 안되는건 여러가지 이유가 있어서 입니다. 1. jquery 호출 순서가 뒤에있을때 2. jquery를 호출 안해줄때 저는 해당 소스를 head에 넣어주니 해결 되었습니다. 1번 참고 http://blog.naver.com/PostView.nhn?blogId=blacklotuz&logNo=221371811978 uncaught referenceerror $ is not defined 제이쿼리를 사용하다보면 간혹 이런 에러가 나올떄 있다. uncaught referenceerror $ is not defined 필자... blog.naver.com 2번 참고 https://hashcode.co.kr/questions/4387/uncaught-referenceerror-is-not-defined-..

에러 2020.07.13

fatal: unable to access '...': The requested URL returned error: 403

remote: Permission to integerJI/TIME_catcher_dev.git denied to susususujeong.fatal: unable to access 'https://github.com/integerJI/TIME_catcher_dev.git/': The requested URL returned error: 403 git에 커밋을 하려다 보니 해당 에러가 나왔다. 알고보니 지금 gitbash에 로그인되어있는 계정이 해당 github를 사용하지 않고 있어서다 gitbash에서 로그아웃 해준 뒤 해당 깃 허브 주소권한을 가지고 있는 계정으로 커밋을 해야 한다. 정리하면 1. gitbash에서 로그아웃 후 권한이 있는 계정으로 로그인 후 커밋 2. 권한이 없는 계정에 권한 부여 h..

에러 2020.07.13

django.utils.datastructures.MultiValueDictKeyError: 'user-password2'

def signup(request): form = UserCreationMultiForm(request.POST, request.FILES) if request.method == 'POST': if request.POST['user-password1'] == request.POST['user-password2']: if form.is_valid(): user = form['user'].save() profile = form['profile'].save(commit=False) profile.user = user profile.email = request.POST['profile-email'] profile.save() print('회원가입성공') return redirect('signin') else: ..

에러 2020.07.12

RuntimeWarning: DateTimeField Report.input_date received a naive datetime ... while time zone support is active.

RuntimeWarning: DateTimeField Report.input_date received a naive datetime ... while time zone support is active. 시간을 저장하는 부분에서 해당 에러가 나왔다. 이 오류는 settings.py에 있다. USE_TZ = True로 되어있기 때문이다 True를 False로 바꾸면 더이상 에러는 나오지 않는다. 자세한 분석은 https://brownbears.tistory.com/42 [Django] model 내 DateTimeField 사용시 RuntimeWarning: DateTimeField received a naive datetime 에러 장고에서 제공하는 모델을 사용하여 개발할 때, settings.py에 아래..

에러 2020.06.28

Class '...' has no 'objects' member pylint(no-member) / Unused variable 'timesave' pylint(unused-variable)

프로젝트를 진행하다 해당 오류가 나왔다. Class 'Timesave' has no 'objects' member pylint(no-member) django가 model클래스 내부에 object를 알아서 생성하는데 vscode의 lint가 이걸 알아차리지 못하여 발생하는 문제 이며 결론은 이 에러는 코드 에러가 아니라 vscode에서 뱉어주는 에러이다. https://aciddust.github.io/blog/post/Django-class-has-no-objects-member-%ED%95%B4%EA%B2%B0%EB%B0%A9%EB%B2%95/ Django, class has no objects member 해결방법 문제 vscode로 작업중인데 Class '~' has no 'object' memb..

에러 2020.06.24

heroku, aws SignatureDoesNotMatch 문제점

An error occurred (SignatureDoesNotMatch) when calling the PutObject operation: The request signature we calculated does not match the signature you provided. Check your key and signing method. 해당 오류가 나왔다. 얼마 전 key를 git에 노출하고 급하게 키를 지웠다. 그 후 .. 오늘 다시 키를 맞춰 주는 작업을 하는 중 해당 오류가 발생하였다... 테스트 시나리오 aws 계정 생성 후 iam에서 key를 새로 발급 내가 썻던 글을 보며 다시한번 키를 적용 heroku open으로 heroku 실행 근데 모든 이미지와 static파일들을 못가져오는 ..

에러 2020.06.18