Git Product home page Git Product logo

django-test's Introduction

수요일 Django Test

# Django project

django-test/
	.git
	.gitignore
	.python-version
	
	wed_test/		<django project>
		config/
		post/		<django app>
		template/
			post/	<django post template>

	media/			<django media storage>
		post/
			<post image>		
- Post model
	title
	photo (media/post/ 경로로 사진 업로드)
	content
	created_date
  1. Github repository 생성 (django-test)
  2. 환경 세팅(pyenv, git, pycharm)
  3. django setting file 설정 (template dir, media root) - commit: First commit
  4. post app 만들기
  5. Post Model 생성 및 admin에서 3개의 object를 만들기(object의 title이 보이도록 설정) - commit: post app 추가, Post model 생성
  6. post_list view, template 생성 및 url(post/) 연결 - commit: post_list 기능 추가
  7. post_detail view, template 생성 및 url(post/1/) 연결 - commit: post_detail 기능 추가
  8. post_create view, template 생성 및 url(post_create/) 연결 - commit: post_create 기능 추가
  9. post_delete view 생성(POST요청이 오는 경우 post object 삭제, GET인 경우 post_list로 redirect), url(post_delete/1/) 연결, post_list template와 post_detail template에 해당하는 Post object를 삭제 할 수 있는 버튼 추가 - commit: post_delete 기능 추가
  10. 과제 제출 시트에 오늘 날짜로 해당 Repository url 입력

가상환경은 있던걸 사용해도 상관 없음.
CSS 신경 안써도 됨 django template tag(extends, include), Form 사용은 자유.
기존에 진행하던 Project는 참고 금지.
오류사항이 발생하면 옆사람에게 물어보거나, django document, google에 검색해서 해결

django-test's People

Contributors

gyong1211 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.