If there is no folder for the project
django-admin startproject ProjectName
If you have a folder for your project
#Execute under the project folder
django-admin startproject ProjectName .
settings.py
settings.py
#language
LANGUAGE_CODE = 'ja'
#Time zone
TIME_ZONE = 'Asia/Tokyo'
python manage.py startapp AppName
settings.py
settings.py
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'AppName', #←←← added
]
python3 -m venv EnvName
Recommended Posts