Created
December 19, 2017 08:59
-
-
Save wang-zhijun/213422a8cb13fa2d899ab9e4a319c780 to your computer and use it in GitHub Desktop.
Django
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
# djangoをインストール | |
pip install Django | |
# djangoインストールされてるかチェック | |
python -m django --version | |
# ブロジェクトを作成する | |
django-admin startproject django_test | |
$ tree django_test/ | |
django_test/ | |
├── django_test | |
│ ├── __init__.py | |
│ ├── settings.py | |
│ ├── urls.py | |
│ └── wsgi.py | |
└── manage.py | |
1 directory, 5 files | |
# webserver起動、8000へアクセス | |
cd django_test && python manage.py runserver | |
# To create your app, make sure you’re in the same directory as manage.py and type this command | |
python manage.py startapp polls | |
https://docs.djangoproject.com/en/2.0/intro/tutorial01/#write-your-first-view | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment