멋쟁이 사자처럼 10기/중앙해커톤

오류들// 그리고 참고한 자료들 총정리

cha2y0ung 2022. 8. 26. 18:05
728x90

ValueError: Related model u'app.model' cannot be resolved

 

ValueError: Related model u'app.model' cannot be resolved

I have two applications (ook and eek say) and I want to use a foreign key to a model in ook from a model in eek. Both are in INSTALLED_APPS with ook first. In ook.models.py, i have: class Fubar(m...

stackoverflow.com

'User' object has no attribute 'user'

 

'User' object has no attribute 'user'

I have a User model class User(AbstractBaseUser): username = None first_name = models.CharField(max_length=100, null=True, blank=True) last_name = models.CharField(max_length=200, null=...

stackoverflow.com

'User' object is not iterable

 

'User' object is not iterable

I am trying to get all tweets from specific user, but while I am iterating threw tweets in template I get 'User' object is not iterable Views tweets = User.objects.get(username__iexact='username')

stackoverflow.com

login - 'AnonymousUser' object has no attribute '_meta'

 

login - 'AnonymousUser' object has no attribute '_meta'

If password is not correct I am getting this kind of error, I don't know why. I can usually register, log in, log out, but when password is incorrect something wrong is happening. I am using

stackoverflow.com

python - 장고에서 User matching query does not exist 에러 어떻게 해결할 | Hashcode

 

장고에서 User matching query does not exist 에러 어떻게 해결할 수 있을지 질문합니다.

장고에서 django rest framework 를 이용하는데 제가 django-freindship 이라는 파이썬 패키지를 적용하고자 했습니다. 그러다가 구글에서 https://pypi.python.org/pypi/fh-drf-friendship/0.1.1 이런 패키지가 있길래 쓰

hashcode.co.kr

AttributeError in Django

 

AttributeError in Django

I am trying to get the author object which is imported from another model in the views and display it as a form but when I run the code the code is showing 'WSGIRequest' object has no attribute 'au...

stackoverflow.com

Return the current user with Django Rest Framework

 

Return the current user with Django Rest Framework

I am currently developing an API using Django. However, I would like to create a view that returns the current User with the following endpoint: /users/current/. To do so, I created a list view and

stackoverflow.com

Django REST framework queryset object has no attribute pk

 

Django REST framework queryset object has no attribute pk

I am building a larger Django-based web app, but I have a blocking issue with an API view that should return some data. I the application I have a model (mail.models.Message) and a matching serial...

stackoverflow.com

AssertionError: Expected a `Response`, `HttpResponse` or `HttpStreamingResponse` to be returned from view, but received `<class 'NoneType'>`

 

AssertionError: Expected a `Response`, `HttpResponse` or `HttpStreamingResponse` to be returned from view, but received `<class

I have the following model - class Userdetails(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(max_length=200, blank=True, null=True) userno = models.CharField(

stackoverflow.com

lazy reference: doesn't provide model user?

 

lazy reference: doesn't provide model user?

Currently I'm using Django 1.11 and Python 3.6. I'm attempting to create a custom user model with a new application that authenticates with LDAP, but i'm greeted with the following error message. ...

stackoverflow.com

 

내가 참고하고 공부한 링크들

PUT 와 PATCH 차이 (tistory.com)

 

PUT 와 PATCH 차이

들어가며 이 질문을 생각하게 된 시작은 이렇습니다. 일반적으로 데이터를 관리하는 기본 연산을 CRUD로 부르잖아요. 각 연산을 하나씩 제가 알고 있는 http method 에 연결하다보니 이런 질문이 떠

pointer81.tistory.com

 

Django Rest Framework authentication: the easy way | Guguweb

 

Django Rest Framework authentication: the easy way

Django Rest Framework authentication in your web application should be easy and secure. Forget JWT and use the good-old Django sessions in this step-by-step tutorial.

www.guguweb.com

10.5 회원 가입 및 로그인 연동하기 - Django Rest Framework : 네이버 블로그 (naver.com)

 

10.5 회원 가입 및 로그인 연동하기 - Django Rest Framework

10.5 회원 가입 및 로그인 연동하기 - Django Rest Framework 이 챕터의 진행 위해서는 우선 8장의 Ang...

blog.naver.com

 

[D.R.F] 커스텀 유저 구현하기 - 회원가입, 로그인 (tistory.com)

 

[D.R.F] 커스텀 유저 구현하기 - 회원가입, 로그인

안녕하세요 (._. )> 오늘은 Django RESTful API로 회원정보를 관리(회원가입/로그인) 해보도록 하겠습니다. Django에서는 기본적으로 사용자 모델인 User 모델을 제공하고 있습니다. 하지만 임의로 원하는

wisdom-990629.tistory.com

Django Session-based Auth for Single Page Apps | TestDriven.io

 

Django Session-based Auth for Single Page Apps

This article looks at how to add session-based authentication to a Single-Page Application (SPA) powered by Django and React.

testdriven.io

쿠키와 세션. 인증 정복하기 (1/3) | by toy-crane | Medium (toycrane.xyz)

 

쿠키와 세션

인증 정복하기 (1/3)

blog.toycrane.xyz

Making queries | Django documentation | Django (djangoproject.com)

 

Making queries | Django documentation | Django

Django The web framework for perfectionists with deadlines. Overview Download Documentation News Community Code Issues About ♥ Donate

docs.djangoproject.com

Views - Django REST framework (django-rest-framework.org)

 

Views - Django REST framework

 

www.django-rest-framework.org

Get user object using userid in django

 

Get user object using userid in django

Hello i am new to django, i am creating an authentication system using django. Once a user is logged in i am storing the value in a session. user = authenticate(username=username, password=pass...

stackoverflow.com

[django] Django에서 현재 로그인 한 사용자의 사용자 ID를 얻는 방법은 무엇입니까? - 리뷰나라 (daplus.net)

 

[django] Django에서 현재 로그인 한 사용자의 사용자 ID를 얻는 방법은 무엇입니까? - 리뷰나라

현재 로그인 한 사용자의 ID를 얻는 방법은 무엇입니까? 에서 models.py: class Game(models.model): name = models.CharField(max_length=255) owner = models.ForeignKey(User, related_name='game_user', verbose_name='Owner') 에서 views.py: g

daplus.net

장고(Django) 로그인 , 로그아웃 기능 만들기 (tistory.com)

 

장고(Django) 로그인 , 로그아웃 기능 만들기

2019/12/28 - [장고 (django)] - (django) 장고 - 회원가입 기능 구현하기 (MVC) (django) 장고 - 회원가입 기능 구현하기 (MVC) *비밀번호란과 비밀번호 확인 란을 다르게 입력했을때 *아무것도 입력하지 않고

infinitt.tistory.com

Django and React Integration. Session Auth, CORS | Medium

 

Django and React Integration

With Session Authentication, CORS & CSRF Token Mechanism

priyanshuguptaofficial.medium.com

DRF로 api 서버 개발(1) - 회원기능 (velog.io)

 

DRF로 api 서버 개발(1) - 회원기능

DRF로 서버 개발 회원가입, 로그인 api 개발

velog.io

[django] django rest framework 로그인 과정 | 장고 로그인 | 인증 | 토근 발행 (tistory.com)

 

[django] django rest framework 로그인 과정 | 장고 로그인 | 인증 | 토근 발행

django 는 기능이 참 너무 많다 ^^; 지금은 서버는 django로, 프론트는 angular를 붙여서 간단한 웹을 만들어 보려고 한다. 웹 만들때 항상 회원가입/로그인 기능은 맨 앞에 구현한다. 어떻게 구현하면

paigeblog.tistory.com

[DRF] TokenAuthentication (유저마다 토큰을 발급해서 유저를 식별해보자) (tistory.com)

 

[DRF] TokenAuthentication (유저마다 토큰을 발급해서 유저를 식별해보자)

[1] DRF가 지원해주는 Authentication 종류 Django Rest Framework - Authentication 을 보면 이렇게 네가지의 Authentication을 지원해주고 있습니다. Basic은 username이랑 password로 인증하는데 테스트에서..

eunjin3786.tistory.com

django rest framework - token authentication logout

 

django rest framework - token authentication logout

I have implemented the Token Authentication according to the django rest framework Docs. Form what I read, the Token Authentication of DRF is quite simple - one token per user, the token doesn't

stackoverflow.com

DRF - JWT 로그인 authentication (velog.io)

 

DRF - JWT 로그인 authentication

DRF를 기반으로 jwt로 로그인 기능 구현이전 포스트에서 구현했었던 장고 기본 User를 Custom 한 Custom User Model을 통해 로그인을 구현한다.패키지 설치settings.pyrest_framework_jwt.authentication.JSONWeb

velog.io

[Django] JWT#2, 장고 JWT토큰 사용하기, payload, Pyjwt, 장고 로그인 유지 — DevForYou (tistory.com)

 

[Django] JWT#2, 장고 JWT토큰 사용하기, payload, Pyjwt, 장고 로그인 유지

[Django] JWT#1, Serializer을 이용하여 password 암호화하여 데이터베이스(DB) 저장하기, 비밀번호 암호화 JWT을 통하여 회원가입 로그인 로그아웃을 토큰을 통하여 하는 방법을 알아내기 위해, 꽤 많은 구

devforyou.tistory.com

Django rest framework_3. 회원관리(로그인, 회원가입) (tistory.com)

 

Django rest framework_3. 회원관리(로그인, 회원가입)

0. 들어가면서 Django rest framework_1, 2를 보고 오는 것을 추천하다. 이제 앞에서 포스트맨으로 확인을 했으니 check의 Create에 없는 User를 완성하기 위해 accounts 부분을 건드려 보자. 1. 주의사항 아래의

han-py.tistory.com

Change Password and Update Profile — Django Rest Framework | by Emre Cevik | Python | Django & Rest | Medium

 

Change Password and Update Profile — Django Rest Framework

Build a Product Review Backend with DRF — Part 9

medium.com

[Django] DRF jwt 인증방식을 이용한 로그인, 회원가입 구현하기 :: 기억을 기록으로 (tistory.com)

 

[Django] DRF jwt 인증방식을 이용한 로그인, 회원가입 구현하기

JWT(Json Web Token)란?  JWT란 모바일이나 웹의 사용자 인증을 위해 사용하는 암호화된 토큰을 의미합니다. JWT는 클라이언트에서 Http 리퀘스트 헤더에 JSON 토큰을 넣어 보내면 서버는 헤더에 포함되

hayeon1549.tistory.com

Django REST framework (DRF) JWT로 로그인 및 회원가입 API 구현 (dj-rest-auth) | minwoo.kim

 

Django REST framework (DRF) JWT로 로그인 및 회원가입 API 구현 (dj-rest-auth)

Django, Django REST framework을 이용하여, 로그인 및 회원가입을 구현해보도록 하겠습니다. 최대한 직접 구현하지 않고, 빠르게 구현하는 데 초점을 맞추었습니다. Django와 관련된 package들을 활용하여

minwoo.kim

Django Rest Framework custom JWT authentication - EgCoder

 

Django Rest Framework custom JWT authentication

This article is not a tutorial or a guide, it is more like a request for code review and validate the implementation from more experienced Django developers, so please don’t use this code unless you are able to review and validate yourself Introduction W

egcoder.com

 

 

 

CORS 오류 관련,,

내가 찾은 CORS Error의 올바른 해결법 (tistory.com)

 

내가 찾은 CORS Error의 올바른 해결법

CORS Error에 대해서 알아보자! * 이 글은 Flask로 예시를 보여주지만 딱히 Flask를 몰라도 이해하는데 아무 상관이 없을 겁니다! Flask 자체가 간결하고 간단하기 때문에 모르는 사람도 어떤 코드인지

coding-groot.tistory.com

react - django, cors 문제. django-cors-headers를 깔아도 문제가 발생할 때 (tistory.com)

 

react - django, cors 문제. django-cors-headers를 깔아도 문제가 발생할 때

리액트를 조금만 하다 보면 지옥의 CORS문제와 만나게 된다. CORS는 Cross-Origin Resource Sharing의 약자로 프론트엔드가 백엔드로 요청할 때 프론트와 백엔드의 도메인이 다르면 발생하는 문제다. 근데

cholol.tistory.com

[Django] 장고 CORS 크로스 도메인 이슈 (tistory.com)

 

[Django] 장고 CORS 크로스 도메인 이슈

Django로 API 서버를 만드는데 cors에러가 떴다 ... Cross Domain 이슈가 발생한건데, 이 문제는 왜 발생하는 걸까 ? CORS CORS는 Cross Origin Resource Sharing의 약자로 도메인 또는 포트가 다른 서버의 자원을..

oen-blog.tistory.com

Internal Server error, 서버 500 에러는 어떤 경우에 발생하나요? (webisfree.com)

 

Internal Server error, 서버 500 에러는 어떤 경우에 발생하나요?

웹서버를 구동하거나 사이트를 방문하면 다음과 같은 에러 메시지를 가끔씩 볼 수 있습니다. 500 Server error. 이런 서버 메시지는 어떻게 왜 발생하는지 알아봅니다.

webisfree.com

클라이언트와 서버 양 입장에서 로그인 과정 이해하기 (feat. session, JWT,소셜로그인) (velog.io)

 

클라이언트와 서버 양 입장에서 로그인 과정 이해하기 (feat. session, JWT,소셜로그인)

로그인 기능을 구현하기 위해서 클라이언트와 서버는 각각 어떤 일을 해야할까요?

velog.io

 

 

 

 

Profile문제 해결하고 싶어서 찾아본 자료들

drf-registration/profile.py at master · huychau/drf-registration (github.com)

 

GitHub - huychau/drf-registration: Simple user registration package based on Django Rest Framework. DRF Registration - The easy

Simple user registration package based on Django Rest Framework. DRF Registration - The easy way to generate registration RESTful APIs - GitHub - huychau/drf-registration: Simple user registration ...

github.com

amanbagrecha/drf_userprofile at 2262dd585a9efd92ec520832f5571fe1e8902e5f (github.com)

 

GitHub - amanbagrecha/drf_userprofile: crud application

crud application. Contribute to amanbagrecha/drf_userprofile development by creating an account on GitHub.

github.com

DRF 10 - UserProfile API (velog.io)

 

DRF 10 - UserProfile API

아래 사례는 Udemy의 "The complete Guide to Django Restframework and Vue JS" 강의 중 Section4 의 : Django REST Framework - Level Three 내용으로서 UserProfile API 작성사례

velog.io

Django rest framework get user profile data for logged in user

 

Django rest framework get user profile data for logged in user

I have created Models UserProfile, serilzers and ModelViewSet like below. From below models I want to fetch loged in User profile details like state, city and adress etc class UserProfile(models.M...

stackoverflow.com

 

 

'멋쟁이 사자처럼 10기 > 중앙해커톤' 카테고리의 다른 글

너낼역 백엔드 개발 과정  (0) 2022.08.26