Python django CMD Commands:
1. pip install virtualenvwrapper-win [to install the virtual wrapper for windows];
2. pip install virtualenv [install virtual environment];
3. mkvirtualenv virtual_env_name [to create a virtual environment];
4. workon server_name [to start a server/virtual environment];
5. pip install django [to install django in that particular virtual environment];
6. django-admin startproject project_name [to create the project at the specified path];
7. python manage.py runserver [to run django project];
8. python manage.py migrate [to migrate the tables from the django website to the in-built database of django i.e sqlite];
9. python manage.py createsuperuser [to create a username and password for the admin];
10. deactivate [to exit/deactivate/stop the virtual env];
11. ctrl+c [to exit the server/project];
12. python3 -m venv ./venv [to create a username and password for the admin];
13. Activate vertual env [to create a username and password for the admin];
14. source ./bin/activate [to create a username and password for the admin];
0 Replies to “Python Django Important Commands For Beginers”
Leave a Reply
Your email address will not be published.