Webframeworks2019.files.wordpress.com



Installing DjangoStep 1: Test if python is installedpython3 --versionStep 2: Test if pip is installedpip listStep 3: Create a new directory where you intend to execute your project. For uniformity please call this folder djreactStep 4: Using command prompt navigate to “djreact” directoryStep 5: Create virtual environmentpython3 -m venv myvenvStep 6: Check that ‘djreact’ folder now contains a folder called "myvenv" with the directory structure shown belowStep 7: If Step 5 fails, trypip install virtualenv and then repeat Step 5Step 8: Navigate to the Scripts folder in the “myvenv” in the Command LineStep 9: Activate the virtual environment activate (./activate)Step 10: Confirm that your command prompt is now prefixed with venv Example: (myvenv) D:\test1\myvenv\Scripts>Step 11: Upgrade pippython -m pip install --upgrade pipStep 12: Installing Django, Django Rest Frameworkpip install djangopipenv install djangorestframework django-cors-headersStep 13: Create a new projectdjango-admin startproject backendStep 14: Confirm that a folder called backend has been createdStep 15: Navigate to the "backend" foldercd backendStep 16: Create an application called todo.python manage.py startapp todoStep 17: Migratepython manage.py migrateStep 18: Start Serverpython manage.py runserverStep 19: Check InstallationIt should auntomatically open a browserwindow with URL **************************************Open a second cmd promptType npm install axios ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download