> For the complete documentation index, see [llms.txt](https://sathyakumars-kb.gitbook.io/user-authentication-based-django-app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sathyakumars-kb.gitbook.io/user-authentication-based-django-app/project-set-up.md).

# Project Set Up

## &#x20;1. **Create a Django Project**

Type the below command in terminal. (refer Fig. 1.8)

{% code overflow="wrap" %}

```
django-admin startproject TodoList
```

{% endcode %}

<figure><img src="https://2079142657-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx1YvmVNRB9criaQoLf7c%2Fuploads%2Ft4nfKXTsTgWDfuMyOlXJ%2Fimage.png?alt=media&amp;token=95632e3a-ea06-4a53-b267-c864ec426892" alt=""><figcaption><p>Fig. 1.8 Django Start Project </p></figcaption></figure>

## &#x20;**2. Navigate to Your Project**.

Type the below command in terminal. (refer Fig. 1.9)

```
cd TodoList
```

<figure><img src="https://2079142657-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx1YvmVNRB9criaQoLf7c%2Fuploads%2FOWMc2nLbvVEj5c32AVPN%2Fimage.png?alt=media&amp;token=c55b3932-6a27-4756-a800-aaae86a87b9d" alt=""><figcaption><p>Fig. 1.9 Change directory to TodoList Project file.</p></figcaption></figure>

## &#x20;3. Running Project

As far project file is created. Now run the project in local server.

Type the below command in terminal. (refer Fig. 1.10)

```
py manage.py runserver
```

<figure><img src="https://2079142657-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx1YvmVNRB9criaQoLf7c%2Fuploads%2FTVRHeJPqx61b3hcx7CV3%2Fimage.png?alt=media&amp;token=0dec49a3-9083-4a7c-8d14-e107f4938d49" alt=""><figcaption><p>Fig. 1.10 Running project in local server.</p></figcaption></figure>

## &#x20;4. Django Default Web Application

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)

```
http://127.0.0.1:8000
```

<figure><img src="https://2079142657-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx1YvmVNRB9criaQoLf7c%2Fuploads%2FERlcm4hb7i77JtoSvYQG%2Fimage.png?alt=media&amp;token=e8e36e56-60b5-4be1-b7ba-f0e4f1cd3021" alt=""><figcaption><p>Fig. 1.11 Default Django application.</p></figcaption></figure>

## &#x20;5. Create Django App

Django apps are components within a project. Use the following command to create an app: ( refer Fig.  1.12)

```
py manage.py startapp todo
```

<figure><img src="https://2079142657-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx1YvmVNRB9criaQoLf7c%2Fuploads%2Fg6J8N7WzitGNlOrFmkBT%2Fimage.png?alt=media&amp;token=6f11b0ca-e5bd-4f56-bc0f-ac03d609d8cf" alt=""><figcaption><p>Fig. 1.12 Create a Django App</p></figcaption></figure>

## &#x20;**6. Configure the App in Settings**

Open the `settings.py` file in your project directory (TodoList`/settings.py`) and add your app to the `INSTALLED_APPS` list:

```
INSTALLED_APPS = [
    # ...
    'todo',
]
```

<figure><img src="https://2079142657-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx1YvmVNRB9criaQoLf7c%2Fuploads%2FrJRlm0AahzmbLE57IKiZ%2Fimage.png?alt=media&amp;token=7840889e-f298-4205-b798-11494900b806" alt=""><figcaption><p>Fig. 1.13 Configure the app in settings.</p></figcaption></figure>

## 7. Create a urls.py file in todo app folder (refer fig. 1.14)

note: just leave the urls.py file empty.

<figure><img src="https://2079142657-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx1YvmVNRB9criaQoLf7c%2Fuploads%2F6IA6tSlC5H6vM6EynuIS%2Fimage.png?alt=media&amp;token=32ae68f2-9e95-4d07-bcb0-f87c9833ac5f" alt=""><figcaption><p>Fig. 1.14 todo urls.py</p></figcaption></figure>

## 8. Register the todo app urls.py file in project urls.py (refer fig. 1.15)

<figure><img src="https://2079142657-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx1YvmVNRB9criaQoLf7c%2Fuploads%2FJggEgEV6T0mKPZhyXTKB%2Fimage.png?alt=media&amp;token=3357b8d0-2800-472e-b34d-0786c42dae32" alt=""><figcaption><p>Fg. 1.15 Register app urls.py in project urls.py</p></figcaption></figure>
