LoginSignup
0
0

More than 1 year has passed since last update.

【Django】SNS app作成手順01-初期設定

Last updated at Posted at 2022-01-15

snspjというプロジェクトを作成する際のコマンドを記していく

----------初期設定----------

django-admin startproject snspj .

python3 manage.py startapp snsapp

----------Settings.pyの中身を編集----------

INSTALLED_APPS の中へ追記
'snsapp.apps.SnsappConfig'

TEMPLATESの'DIRS’:の後に追記

[BASE_DIR / ‘templates'],

—————snsappフォルダにもurls.pyを追加----------

—————snspj-urls.pyの内容をsnsapp-urls.pyへコピー----------

—————urls.pyの中身を編集----------

urlpatterns の中へ追記
path('',include(‘snsapp.urls'))

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