Project Set Up
Last updated
Last updated
Type the below command in terminal. (refer Fig. 1.8)
Type the below command in terminal. (refer Fig. 1.9)
As far project file is created. Now run the project in local server.
Type the below command in terminal. (refer Fig. 1.10)
Now server is running. Type "http://127.0.0.1:8000" in browser. We get the default web application in browser. (refer fig. 1.11)
Type the below line in web browser. (refer Fig. 1.11)
Django apps are components within a project. Use the following command to create an app: ( refer Fig. 1.12)
Open the settings.py
file in your project directory (TodoList/settings.py
) and add your app to the INSTALLED_APPS
list:
note: just leave the urls.py file empty.