how to create a django app code example
Example 1: django create app
python manage.py startapp
Example 2: start new app in django
$ python manage.py startapp app_name
Example 3: simple django app
python -m pip install Django
python3 -m django --version
python -m django --version
django-admin startproject your_project_name
django-admin startapp your_app_name
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
'your_app_name.apps.the_class_name_you_just_copied'
Example 4: how to create django project
$ python manage.py runserver 8080
Example 5: django create new project
django-admin startproject {project-name}