Django is a free and open-source web framework written in Python. It follows the model–template–views architectural pattern and is maintained by the Django Software Foundation. It was first released on July 21, 2005, and is licensed under the 3-clause BSD license. Django is known for its rapid development and clean, pragmatic design, making it a popular choice for building web applications.
python --version # output will be python version you have installed
Setting Up Your Virtual Environment:
# If you want to use with python3 then python3 -m venv my_env # If you want to use with just python then virtualenv env_name
(Replace my_env with your preferred environment name.)
source my_env/bin/activate
my_env\Scripts\activate
mkdir my_project_name
(Replace my_project_name with your project's name.)
cd my_project_name
pip install djangorestframework
django-admin startproject project_name # change project_name
cd project_name
django-admin startapp my_app # you can use any app name in place of my_app
INSTALLED_APPS = [ ..., "my_app", ]
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
python manage.py runserver 8001
Contact DM - Twitter(X)
Contact Mail - [email protected]
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3