일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- AWS
- redshift
- airflow
- 자료구조
- 데브코스
- http
- dockerfile
- Docker
- sql
- HADOOP
- airflow.cfg
- 운영체제
- 데이터 웨어하우스
- TIL
- 종류
- 정리
- 컴퓨터 네트워크
- TCP
- 데이터베이스
- 데이터엔지니어링
- PYTHON
- Go
- S3
- 데이터 파이프라인
- 데이터 엔지니어링
- 가상환경
- 컴퓨터네트워크
- 파이썬
- linux
- Django
- Today
- Total
목록Django (10)
홍카나의 공부방
User Django의 Settings.py에 있는 django.contrib.admin과 django.contrib.auth 덕분에 기본적인 운영자 생성,인증 과정이 가능했다. shell에서 이를 더 자세히 살펴볼 수 있다. 위와 같은 'User'를 사용자가 임의로 만든 app에서도 사용할 수 있도록 model에 추가할 수 있다. 다음은 특정 app의 models.py 코드 예시다. from django.db import models from time import timezone from datetime import timedelta # Create your models here. class Question(models.Model): question_text = models.CharField(max_l..
View와 Template의 기본 사용 예시 # views.py: from django.shortcuts import render from django.http import HttpResponse from polls.models import Question def index(request): # 쿼리셋을 정리하기 위한 method = order_by. 내림차순이 default latest_question_list = Question.objects.order_by('-pub_date')[:5] context = {'first_question': latest_question_list[0]} return render(request, 'polls/index.html', context=context) # 템플릿 ..
Django 초기 설정 과정 https://hongcana.tistory.com/29 [Django] 장고 명령어 정리(치트시트) - 1 Windows 기준 - django-admin startproject {project 명} => 프로젝트 폴더 및 manage.py 생성 - (Git 설정) .gitignore 설정 체크 => gitignore.io에 들어가서 Django 검색 입력 후 필요에 따라 복붙하고 이용. => git add .gitignor hongcana.tistory.com https://hongcana.tistory.com/30 [Django] 새로운 프로젝트 만들 때 초기 설정 확인 과정 1. 가상환경 만들기 2. pip install django 3. django-admin으로 프로..