bimbaquingoch / django

django tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django 👋

Create virtualenv

pipenv install django

Activate virtualenv

pipenv shell

Create a Django project

django-admin startproject project_name dir_path

Run django

python manage.py runserver

Create package

python manage.py startapp package_name

Create database file

python manage.py migrate

Create super-user

python manage.py createsuperuser

Login super-user

go to 127.0.0.1:8000/admin and then sing in with credentials created in the previous step

Show all installed packages

pip freeze

Create model package

python manage.py makemigrations
<!-- example -->
python manage.py makemigrations
python manage.py migrate

Now in 127.0.0.1:8000/admin you can create new Model

About

django tutorial


Languages

Language:Python 89.4%Language:HTML 10.6%