django
$ python -m pip install Django
django
$ python -m pip install Django
django
Django is a Python framework for web development.
When creating simple static sites, there is no need to use backend frameworks.
However, when creating complex and large sites that are backend heavy,
you will want to use a backend framework. Currently, the 2 Python frameworks
that are the most useful to learn are Flask and Django.
Flask:
Micro and light-weight framework that is easy to learn.
Django:
Complex, full-stack framework that is extremely powerful.
For smaller projects, Flask will work. However, for large ones, you might
consider learning Django. I suggest you learn Flask first and then Django.
Additionally, considering learning Node JS because even though it is in
Javascript, it is extremely popular.
django
pip install django # Install Django Packages
django-admin startproject project_name # Create a Project
cd project_name
python manage.py makemigrations # Create new migrations
python manage.py migrate # Apply Migrations
python manage.py createsuperuser # Create User for admin
python manage.py runserver # Start Server
python manage.py startapp sub_module # Create a sub app
django
# Start a Project.
django-admin startproject <project name>
# cd into <project name>
# Create the application
python manage.py startapp <app name>
# Start using the files.
django
pip install Django==3.2.2
django
duplicate key value violates unique constraint "loan_loanapplication_pkey"
DETAIL: Key (id)=(1) already exists.
django
$ python -m django --version
django
pip install Django==3.1.5
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us