본문 바로가기

반응형

Django

(37)
Django Project Setup https://docs.djangoproject.com/en/4.0/intro/tutorial02/ 이미지 썸네일 삭제 Writing your first Django app, part 2 | Django documentation | Django Writing your first Django app, part 2 ¶ This tutorial begins where Tutorial 1 left off. We’ll set up the database, create your first model, and get a quick introduction to Django’s automatically-generated admin site. Where to get help: If you’re having trouble ..
Django App 만들기 Project를 만든 후에는 Project 내에서 동작하게 될 기능들을 만들어야하는데 이러한 기능들의 단위를 app이라고 할 수 있다. Project는 app이 모여서 하나의 특정한 website가 된다. app은 project 내의 어느 곳이든 생성 가능하다. Helloworld를 화면에 보여주는 app을 작성해 보자. 1. app 생성 python manage.py startapp HelloWorld $ ls HelloWorld SunnyBlog db.sqlite3 manage.py - HelloWorld App에 자동 생성 된 파일들 SunnyBlog/HelloWorld$ ls __init__.py admin.py apps.py migrations models.py tests.py views.py ..
Django 프로젝트 만들기 및 서버 기동 1. Django 프로젝트 만들기 https://docs.djangoproject.com/en/4.0/intro/tutorial01/ Writing your first Django app, part 1 | Django documentation | Django Writing your first Django app, part 1 ¶ Let’s learn by example. Throughout this tutorial, we’ll walk you through the creation of a basic poll application. It’ll consist of two parts: A public site that lets people view polls and vote in them. An admin s..
Django, 가상환경 설치 1. Django 설치 https://docs.djangoproject.com/en/4.0/intro/install/ Quick install guide | Django documentation | Django Quick install guide ¶ Before you can use Django, you’ll need to get it installed. We have a complete installation guide that covers all the possibilities; this guide will guide you to a minimal installation that’ll work while you walk through the introduction. Install Python ¶ Be..
Django sqlite3 기초 https://docs.djangoproject.com/en/4.0/intro/tutorial02/ 1. 기본 설치되는 sqlite3의 shell에 입장하기 $ python manage.py dbshell 2. 존재하는 table 확인하기 $ python manage.py dbshell SQLite version 3.36.0 2021-06-18 18:58:49 Enter ".help" for usage hints. sqlite> .tables auth_group auth_user_user_permissions auth_group_permissions django_admin_log auth_permission django_content_type auth_user django_migrations auth_u..

반응형