수강이 제한됩니다.
다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 미해결파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
cmder 오류
ㅇ마지막에 github에 저장하려고 하는데 저상태에서 아무 반응이 없어요..
- 미해결파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
cmder에서 python을 치면 Warning
섹션3.장고기초 중 첫번째 강의 github에 프로젝트 만들기 수업 11분경 수업을 따라하면서 python을 치니 저는 Warning: This Python interpreter is in a conda environment, but the environment has not been activated. Libraries may fail to load. To activate this environment please see https://conda.io/activation 이 떠서 경고문구에 게시되어있는 주소에 들어가 해결방법을 보고 C:\Anaconda3\Scripts\activate base 이 문장을 쓰면 해결된다고 하여 cmder창에 썼더니 문제해결이 되지 않았습니다 anaconda prompt에 들어가서 이 문장을 치니 anaconda prompt창 내에서는 해결이 되었지만 cmder에서 해결되지 않았고 anaconda powershell prompt 라는 프로프트가 하나 더 있길래 여기서도 이 문장을 치니 이 프롬프트에서 해결은 되었지만 cmder에서는 해결되지 않았습니다 어떻게 해야하나요??
- 파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
cmder 깔자마자 질문
삭제된 글입니다
- 해결됨파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
템플릿이 뜨지 않습니다.
bootstrip grid 강의를 따라하고 있었는데 이전까지는 문제가 없었는데 (템플릿이 적용되어 화면이 떴었습니다. 그런데 어느순간부터인지) 페이지를 새로 고침했는데 위의 사진처럼 템플릿이 적용되지 않습니다. 강사님의 강의를 다시 돌려보며 틀린 것이 있나 확인해봤는데 다 똑같은데 어떤 것이 문제가 되어 템플릿이 적용되지 않는 것일까요?
- 미해결파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
on_delete must be callable 오류 질문
from django.db import models from django.contrib.auth.models import User # Create your models here. class Post(models.Model): title = models.CharField(max_length=30) content = models.TextField() created = models.DateTimeField() author = models.ForeignKey(User, on_delete=True) blog 모델 소스 File "C:\Users\한글\AppData\Local\Programs\Python\Python38\lib\site-packages\django\db\models\fields\related.py", line 801, in __init__ raise TypeError('on_delete must be callable.') TypeError: on_delete must be callable. 오류메세지 계속 강의대로 하는데 python manage.py makemigrations blog 명령어가 먹히지 않습니다 ㅠ
- 미해결파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
git add . 실행이 되지 않습니다.
git add . 를 눌러도 파일이 업로드 되지 않습니다. 해결 방법이 있을까요?
- 미해결파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
django설치 관련 질문드립니다
pip3 install django 명령어 입력시 화면과 같은 오류가 뜹니다 어떻게 해결이 가능할까요?
- 파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
오류가 계속 나요
삭제된 글입니다
- 미해결파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
cmder 처음 사용
cmder 처음 사용할 때 cannotopen 이라고 뜨면서 강사님과 같은 화면이 아닙니다. 그리고 git clone 하고 주소를 붙여넣었을 때 강사님과 다르게 창이 뜨지 않고 문자로 유저네임과 패스워드를 입력하라고 했고 유저네임까지는 입력이 되더니, 패스워드는 아예 입력조차 되지 않습니다. 그래서 그 다음이후 강좌는 따라가지도 못하고 있습니다. 무슨 문제 일까요..?
- 해결됨파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
static의 css와 js 적용 문제
강의 따라하던 도중 새로고침을 했는데 갑자기 아래와 같이 css와 js 파일을 찾을 수 없다고 나옵니다.. 이처럼 source 란에 css 파일의 텍스트를 복붙하면 정상적으로 적용은 됩니다. css 파일 지웠다가 다시 생성도 해보고 경로도 확인했는데 왜 갑자기 연결이 안 되는지 모르겠어요..
- 해결됨파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
ERROR: test_post_list (blog.tests.TestView)
C:\github\django_my_website (master -> origin) (venv) λ python manage.py test Creating test database for alias 'default'... System check identified no issues (0 silenced). E ====================================================================== ERROR: test_post_list (blog.tests.TestView) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\github\django_my_website\blog\tests.py", line 9, in test_post_list response = self.client.get('/blog/') File "C:\github\django_my_website\venv\lib\site-packages\django\test\client.py", line 535, in get response = super().get(path, data=data, secure=secure, **extra) File "C:\github\django_my_website\venv\lib\site-packages\django\test\client.py", line 347, in get **extra, File "C:\github\django_my_website\venv\lib\site-packages\django\test\client.py", line 422, in generic return self.request(**r) File "C:\github\django_my_website\venv\lib\site-packages\django\test\client.py", line 503, in request raise exc_value File "C:\github\django_my_website\venv\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\github\django_my_website\venv\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\github\django_my_website\venv\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) TypeError: __init__() takes 1 positional argument but 2 were given ---------------------------------------------------------------------- Ran 1 test in 0.441s FAILED (errors=1) Destroying test database for alias 'default'... ========================================================= from django.test import TestCase, Clientfrom bs4 import BeautifulSoupclass TestView(TestCase): def setUp(self): self.client = Client() def test_post_list(self): response = self.client.get('/blog/') self.assertEqual(response.status_code, 200) soup = BeautifulSoup(response.content, 'html.parser') title = soup.title print(title) 'Post List 페이지 테스트 코드 작성하기 part A' 부분을 하던중 위 처럼 작성을 하고 test를 했는데 영상과 다르게 나왔습니다. 그런데 왜 그런지 모르겠습니다.
- 미해결파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
python manage.py migrate 오류
django를 제대로 설치한 후 영상과 똑같이 따라하였는데 오류가 발생합니다. 파이썬과 django의 버전이 맞지 않아서 오류가 나는 것일까요? Traceback (most recent call last): File "manage.py", line 10, in main from django.core.management import execute_from_command_line ModuleNotFoundError: No module named 'django' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "manage.py", line 21, in <module> main() File "manage.py", line 16, in main ) from exc ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
- 해결됨파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
Posts를 누르면 a server error occurred라고 나옵니다.
안녕하세요 Posts를 누르면 자꾸 a server error occurred. please contact the administrator가 뜨는데 제가 뭘 잘못한걸까요?
- 미해결파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
cmder ls 명령어 오류
cmder에서 ls 명령어를 입력하면 이런 오류가 뜨는데 왜 그런지 이유를 알 수 있을까요? winsock을 깔아야 하는 건가요?
- 파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
서버 오류가 뜹니다
삭제된 글입니다
- 파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
python manage.py runserver
삭제된 글입니다
- 미해결파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
cmder 입력 섹션 3-2
git add . 입력하고 싶은데 입력하는 부분이 안 뜨는데 왜 그런건가요? (7:30)
- 해결됨파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
섹션 1-1 cmder
메일주소와 이름을 입력했는데도 계속 입력하라고 뜨는데 어떻게 해야하나요?
- 미해결파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
bootstrap 적용
<블로그 오류화면> post_list.html 화면 섹션5의 첫번째 강의를 전부 따라하였지만 여전히 이러한 오류가 뜹니다. 어떻게 해야하나요?
- 미해결파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
Cmder에서 django 설치 오류
django를 설치하는 과정에서 pip install django를 입력하면 아래와 같은 오류가 발생합니다. C:\github\django_my_website (master -> origin) (venv) λ pip install django WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/django/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/django/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/django/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/django/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/django/ Could not fetch URL https://pypi.org/simple/django/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/django/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping ERROR: Could not find a version that satisfies the requirement django (from versions: none) ERROR: No matching distribution found for django WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping 아나콘다 설치 과정에서 Add Anaconda3 to my PATH environment variable 체크도 했습니다. Python 3.8.2가 이미 깔려있었던 상태였는데 문제가 될까봐 삭제 후, 아나콘다와 파이참 또한 삭제 후 재설치하여 다시 해봤는데도 위와 같은 결과가 나옵니다.