Please enable JavaScript.
Coggle requires JavaScript to display documents.
Python Django Web Framework Justin Mitchel - Coggle Diagram
Python Django Web Framework Justin Mitchel
Setup your Virtual Environment for Django
05:02
Justin: Django doesn't work well with Anaconda(why)
python -m venv .venv
source bin/activate
deactivate
pip freeze > requirements.txt
pip install -r requirements.txt
pip3 install django == version
Create a black django project
django-admin startproject projectname .(dir)
manage.py
runserver
settings.py
Built-in components
create a superuser
manage.py startapp
shell
new models fields
change a model
default home page to custom home page
create a view function for it
1 more item...
create new url file
1 more item...
django templates
3 more items...
null=true
no error and prev object get null
the field can be null on the database
blank = true
1 more item...
default
to set default value for previous
we can use it on makemigration in the shell
doc: model filed field type
create a python object in the python shell
read and display product props
import a model
query:list of all obejcts
create a new object