IT/프로젝트

[프로젝트/캡스톤] 메이저인 static 파일, 404, 405 오류

토끼개발자 조르디 2024. 5. 10. 11:34

 

 

 

** 도움받은 글 **

 

https://velog.io/@duo22088/Django-Media-file-%EB%8B%A4%EB%A3%A8%EA%B8%B0

 

(Django) Media file 다루기

장고에서 어떻게 static 파일을 서빙하는지 알아봅시다.

velog.io

 

https://stackoverflow.com/questions/33639630/django-rest-framework-only-display-text-no-css

 

Django Rest Framework only display text - no css

I setup setup a local web server to run on our local network. Django Rest Framework displays correctly on my localhost but if i access it from a different computer on the LAN it only displays text ...

stackoverflow.com

 

https://stackoverflow.com/questions/49001385/after-change-the-wsgi-py-django-rest-framework-can-not-load-the-styles-and-sc

 

After change the `wsgi.py`, Django-Rest-Framework can not load the Styles and Scripts

I use Django-Rest-Framework, but get bellow error when I open the DRF APIs: The styles and Scripts can not load: GET http://localhost:8000/static/rest_framework/css/bootstrap.min.css net::ERR_ABO...

stackoverflow.com

 

https://www.doitdjango.com/board/qna/49/

 

gunicorn 적용 후 static 파일 적용에 문제가 있어서 질문드립니다. - 자유게시판

gunicorn 적용 후 static 파일 적용에 문제가 있어서 질문드립니다. 3 years ago kdhnate222 p585 gunicorn 설치 후에 yml, requirements, settings, urls 파일 마지막으로 collectstatic 명령어까지 적용해 폴더내에 _static

www.doitdjango.com

 

https://yoon1seok.tistory.com/53

 

/static 404 에러(css, js오류) | 아파치 장고 static 파일 모으기 (장고, 아파치)- [Linux]

문제 백엔드를 장고-아파치로 서버를 두고, 프론트를 리액트로 구현중 1) 아파치 서버에서 /etc/apache2/sites-enabled/000-edfault.conf Alias /static /home/django/venv/lib/python3.6/site-packages/rest_framework/static 등으로

yoon1seok.tistory.com

 

https://stackoverflow.com/questions/25375448/django-rest-framework-missing-static-directory

 

Django Rest Framework - Missing Static Directory

I have recently started a Digital Ocean server with a pre-installed Django image on Ubuntu 14.04. I wanted to create an API, and have decided on the Django Rest Framework. I installed the Django Rest

stackoverflow.com

 

https://kante-kante.tistory.com/22

 

[TIP] 파이썬 Django에서 css파일 적용이 안되거나 static 정보가 로드되지 않는 경우 해결법

Django에서 CSS 파일 정보가 적용되지 않는 경우 또는 static과 비슷한 폴더에 css파일을 넣어두었는데 적용되지 않는 경우가 있다. 이에 대해 간단한 해결법을 적어보려 한다. 1. 크롬 or 엣지 브라우

kante-kante.tistory.com

 

https://eunjin3786.tistory.com/240

 

[PythonAnywhere] 장고 admin 페이지 CSS가 안먹을때

[1] 문제 pythonanywhere 배포 후, admin으로 접속하면 화면이 이렇게 나온다. 원래 admin 페이지가 이렇게 나와야하는데 CSS가 안먹었다. [2] 원인 크롬 > 개발자 도구로 들어가보면,,콘솔에 시뻘건 에러들

eunjin3786.tistory.com