반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- PANDAS
- array
- Mac
- Java
- dataframe
- Google Excel
- Apache
- Excel
- math
- matplotlib
- string
- list
- hive
- Python
- Kotlin
- google apps script
- Tkinter
- c#
- PostgreSQL
- gas
- Github
- PySpark
- 파이썬
- numpy
- Redshift
- GIT
- SQL
- django
- Google Spreadsheet
Archives
- Today
- Total
목록form (5)
달나라 노트
Python django project 1 - 게시판 만들기 ch.11 : 게시글 등록 기능 만들기
이번엔 게시글 등록 기능을 만들어봅시다. MTV 순서대로 코딩할 것이며 이번엔 좀 새로운 form이라는 것을 이용할 것입니다. 일단 Model부터 체크해보죠. 게시글 등록을 위해선 post app model과 게시글 작성자를 위한 user app model이 필요합니다. 우리는 이미 이 두 모델을 다 만들어놨죠. 그러면 이제 Template을 봅시다. pro/app/post/templates 디렉토리에 post_register.html을 만들고 아래처럼 작성합니다. {% extends 'base.html' %} {% block body %} Post Register {% csrf_token %} Post List Submit {% endblock %} 근데 뭔가 좀 이상합니다. form 태그에 있는 la..
Python django/Python django project 1
2020. 12. 21. 00:55