Steps for Django Project
Steps for Django Project
1. open Command Prompt and check if python is installed. Code: python --version.
2. Check if django is installed. Code: pythom m django --version. if not, install it using the command
3. Create a new folder in Desktop. Open the Command Prompt within the Folder.
5. Verify that a new folder with the project name is created in the desktop folder.
It will have manage.py file and another folder that has 5 python files.
6. Open the folder in VS Code. (In Command prompt type the code - code .)
8. Code: python manage.py runserver. Then click in the generated URL and see the output via
browser.
10. Verify that a new folder with the app name is created within the project folder. It will have
11. Write your views code in the views.py file under the app folder.
12. Go to the settings.py file under the project folder and include your app in the installed apps list.
13. Go to urls.py file under the project folder and include the url pattern.
18. Create super user - python manage.py createsuperuser. Enter the username, email address,
password.