Wrap-up

ν”„λ‘œμ νŠΈ 및 APP 초기 μ„€μ •

ν”„λ‘œμ νŠΈ λ§Œλ“€κΈ°

$ django-admin startproject [project name]

settings.py μ„€μ •

  • ALLOWED_HOST = ['*']

  • Locale

    • Timezone

    • Language

App λ§Œλ“€κΈ°

$ python manage.py startapp [app name]

settings.py μ„€μ •

  • INSTALLED_APPS에 app 등둝

Model μ •μ˜

  • models.py

ModelForm μ •μ˜

  • forms.py

μ½”λ“œ μž‘μ„± 흐름

url -> view -> template

views.py

  • ν•¨μˆ˜ ( 인자 -> λ°˜ν™˜ return)

OOPλž€?

S + V

Import

Project setup

Social Login

Installation

Google

settings.py

urls.py

GitHub

If you want more than just read-only access to public data, specify the scope as follows. See https://developer.github.com/v3/oauth/#scopes for details.

Pagination

django-bootstrap-pagination 으둜 Pagination 예쁘게 ν•˜κΈ°

Install

settings.py

template

Last updated

Was this helpful?