0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

django memo

Last updated at Posted at 2016-11-24

##django の最初で詰まった話
インストールして最初のファイル作成でこけてた。

bash-3.2$ django-admin startproject myapp
bash: django-admin: command not found

コマンドがないと怒られる。

##MacのOS Xのパーミッション

あなたは、Mac OS Xを使用している場合は、あなたが実行しようとするとメッセージ"アクセス許可が拒否されました」表示されることがありdjango-admin。これは、プログラムとして実行することができます前に、OS XのようなUnixベースのシステムでは、ファイルは「実行可能」としてマークされなければならないからです。この、オープンTerminal.appを行うと、(使用してナビゲートするにはcd、ディレクトリにコマンドを)ジャンゴ管理者がインストールされ、その後のコマンドを実行します。sudo chmod +x django-admin

マックではパーミッションエラーが出るそうなので

bash-3.2$ sudo chmod +x django-admin
chmod: django-admin: No such file or directory

うーん いつの間にか使えるようになる。

bash-3.2$ django-admin.py startproject myapp

が正解のようです。動きました。

0
0
2

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?