본문 바로가기

Python_WEB/Django_Tutorial

(11)
[Django]Blog Creation Tutorial(Translation/Correction) 3 원문> https://matthewdaly.co.uk/blog/2012/03/24/yet-another-tutorial-for-building-a-blog-using-python-and-django-part-3/ Yet Another Tutorial for Building a Blog Using Python and Django - Part 3 - Matthew Daly's Blog 24th March 2012 6:23 pm Yet Another Tutorial for Building a Blog Using Python and Django - Part 3 Welcome back! In this installment, we’ll make some changes to our URL structure for b..
[Django]Blog Creation Tutorial(Translation/Correction) 2 원문> https://matthewdaly.co.uk/blog/2012/03/19/yet-another-tutorial-for-building-a-blog-using-python-and-django-part-2/ Yet Another Tutorial for Building a Blog Using Python and Django – Part 2 - Matthew Daly's Blog 19th March 2012 3:18 pm Yet Another Tutorial for Building a Blog Using Python and Django – Part 2 In the first part of this tutorial, we got the core elements of our blogging applicat..
[Django]Blog Creation Tutorial(Translation/Correction) 1 원문> https://matthewdaly.co.uk/blog/2012/02/24/yet-another-tutorial-for-building-a-blog-using-python-and-django-part-1/ Yet Another Tutorial for Building a Blog Using Python and Django - Part 1 - Matthew Daly's Blog 24th February 2012 4:17 pm Yet Another Tutorial for Building a Blog Using Python and Django - Part 1 While I’m extremely fond of Perl for quick hacks and scripts, and have used PHP a ..
[Django]Survey WEB Application Tutorial 7 1. style.css 설정 ''' polls/static/polls/style.css ''' li a { color: green; } 2. 정적 파일의 절대 URL 생성 ''' polls/templates/polls/index.html ''' {% load static %} 3. 배경 이미지 추가 ''' polls/static/polls/style.css ''' body { background: white url("images/background.gif") no-repeat; } 폴더 위치 : polls/static/polls/images/ 4. 관리자 폼 커스터마이징 ''' polls/admin.py ''' from django.contrib import admin from .models import..
[Django]Survey WEB Application Tutorial 6 1. 테스트 소개 - 테스트를 통해 시간을 절약 https://docs.djangoproject.com/ko/3.0/intro/tutorial05/#tests-will-save-you-time 첫 번째 장고 앱 작성하기, part 5 | Django 문서 | Django Django The web framework for perfectionists with deadlines. Overview Download Documentation News Community Code Issues About ♥ Donate docs.djangoproject.com - 테스트는 문제를 그저 식별하는 것이 아니라 예방합니다. https://docs.djangoproject.com/ko/3.0/intro/tutorial05/#..
[Django]Survey WEB Application Tutorial 5 1. Form 포함 ''' polls/templates/polls/detail.html ''' {{ question.question_text }} {% if error_message %}{{ error_message }}{% endif %} {% csrf_token %} {% for choice in question.choice_set.all %} {{ choice.choice_text }} {% endfor %} - 위의 템플릿은 각 질문 선택 항목에 대한 라디오 버튼을 표시합니다. 각 라디오 버튼의 value는 연관된 질문 선택 항목의 ID입니다. 각 라디오 버튼의 name은 "choice"입니다. 즉, 누군가가 라디오 버튼 중 하나를 선택하여 폼을 제출하면, POST 데이터 인 choice=#을 보..
[Django]'polls" is not a registered namespace Error Django Tutorial 도중 발생한 namespace Error가 있다. 이를 해결 하기 위한 방법이 있다. Error Massge> NoReverseMatch at 'polls" is not a registered namespace Request Method: Request URL: Django Version: Exception Type: Exception Value: 'polls" is not a registered namespace Exception Location: Python Executable: Python Version: Python Path: Server time: Error during template rendering In template , error at line 5 'poll..
[Django]Survey WEB Application Tutorial 4 1. 설계 계획 수립 질문 "색인" 페이지 -- 최근의 질문들을 표시합니다. 질문 "세부" 페이지 -- 질문 내용과, 투표할 수 있는 서식을 표시합니다. 질문 "결과" 페이지 -- 특정 질문에 대한 결과를 표시합니다 투표 기능 -- 특정 질문에 대해 특정 선택을 할 수 있는 투표 기능을 제공합니다. 2. 뷰 추가 ''' polls/views.py ''' def detail(request, question_id): return HttpResponse("You're looking at question %s." % question_id) def results(request, question_id): response = "You're looking at the results of question %s." ret..