Skip to content

Instantly share code, notes, and snippets.

@wang-zhijun
Created December 19, 2017 08:59
Show Gist options
  • Save wang-zhijun/213422a8cb13fa2d899ab9e4a319c780 to your computer and use it in GitHub Desktop.
Save wang-zhijun/213422a8cb13fa2d899ab9e4a319c780 to your computer and use it in GitHub Desktop.
Django
```
# 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