LoginSignup
2
4

More than 5 years have passed since last update.

PythonとDjangoで作るWebアプリケーション(mac)

Last updated at Posted at 2018-01-20

the-python-programming-language-explained.gif

はじめに

今回はゼロからwebアプリ制作をはじめるにあたって、PythonとDjangoを使ってブラウザ表示までを行っていきます。

Pythonの魅力について

なぜ機械学習にPythonが選ばれるのか

Pythonでできることって!?

最近話題の言語【Python】でできる10のこと

それではwebアプリケーションのベースを作っていきます。

Pythonインストール

Anacondaインストール

仮想環境構築

$ conda create -n ○○○ # ○○○は自由に設定(半角英数字)

return⇨y/n?⇨y

$ source activate ○○○

Djangoインストール

(○○○)・・・> conda install django

⇨y/n?⇨y

パッケージインストール
  > pip install django

プロジェクト作成

> django admin startproject △△△ #△△△は任意で設定
> cd △△△
開発サーバー起動
> cd ..
> python manage.py runserver

ブラウザ確認

127.0.0.1:8000

そうすると・・・

68747470733a2f2f71696974612d696d6167652d73746f72652e73332e616d617a6f6e6177732e636f6d2f302f38373636362f39306231653936382d306331312d346432312d323139302d3839366462313162386166662e706e67.png

これでベースは出来ました。
OK!!

2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4