# "Issue with Setting Up First View in Django 'polls' App in 'mysite' Project"

**URL:** <https://forum.djangoproject.com/t/issue-with-setting-up-first-view-in-django-polls-app-in-mysite-project/39435>\
**Category:** Getting Started\
**Created:** [March 9, 2025, 1:45pm UTC](https://forum.djangoproject.com/t/issue-with-setting-up-first-view-in-django-polls-app-in-mysite-project/39435 "2025-03-09T13:45:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanjaynep](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/sanjaynep/32/27379_2.png) [@sanjaynep](https://forum.djangoproject.com/u/sanjaynep)\
**Post date:** [March 9, 2025, 1:45pm UTC](https://forum.djangoproject.com/t/issue-with-setting-up-first-view-in-django-polls-app-in-mysite-project/39435/1 "2025-03-09T13:45:20Z")

</div>

"I’m setting up my first view in the ‘hello’ app of my ‘mysite’ project using Django 4.0 and Python 3.9 on VS Code  
After creating my first view using django tutorials of project “mysite” and “polls”

 ![Screenshot 2025-03-09 192702](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/3X/9/2/927944a6eaffc43d70afffa9787e2e0d40320ef5.png)  
it only shows this rather than view that means server doesn’t show any response after running command “python manage.py runserver” and follow the link

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [March 9, 2025, 1:47pm UTC](https://forum.djangoproject.com/t/issue-with-setting-up-first-view-in-django-polls-app-in-mysite-project/39435/2 "2025-03-09T13:47:03Z")

</div>

Welcome @sanjaynep !

What specific step are you on in the tutorial? (What page and section title?)

What operating system are you using for your development?

---

<div class="post-metadata">

**Author:** ![sanjaynep](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/sanjaynep/32/27379_2.png) [@sanjaynep](https://forum.djangoproject.com/u/sanjaynep)\
**Post date:** [March 9, 2025, 1:51pm UTC](https://forum.djangoproject.com/t/issue-with-setting-up-first-view-in-django-polls-app-in-mysite-project/39435/3 "2025-03-09T13:51:49Z")

</div>

i am using windows 11 and the tutorials are i have created "mysite"project and “polls” app as shown in tutorials in django and made same changes in urls and views shown in tutorials but server is like get stucked in installation page

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [March 9, 2025, 1:52pm UTC](https://forum.djangoproject.com/t/issue-with-setting-up-first-view-in-django-polls-app-in-mysite-project/39435/4 "2025-03-09T13:52:48Z")

</div>

Again, what **specific** page and section of the page are you currently working on?

It is likely that you have missed something along the way, and we need to know where you’re at in the process.

We are also likely going to need to see the contents of the files that you have edited.

Providing descriptions of what you have done does not allow us to help you.

---

<div class="post-metadata">

**Author:** ![sanjaynep](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/sanjaynep/32/27379_2.png) [@sanjaynep](https://forum.djangoproject.com/u/sanjaynep)\
**Post date:** [March 9, 2025, 2:19pm UTC](https://forum.djangoproject.com/t/issue-with-setting-up-first-view-in-django-polls-app-in-mysite-project/39435/5 "2025-03-09T14:19:58Z")

</div>

in views.py i made change

```auto
from django.http import HttpResponse

def home(request):
    return HttpResponse("Hello, Dipak! Welcome to your 'hello' app view.")

```

In urls.py\hello i made these edits

```auto
from django.urls import path
from . import views

urlpatterns = [
    path('', views.home, name='home'), # Root URL handled by the 'home' view
]

```

in urls.py/mysite i made these edits

```auto
from django.contrib import admin
from django.urls import path, include

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', include('hello.urls')), # Connect the "hello" app's URLs
]

```

and in settings .py i have added installed app as ‘hello’  
note: i have named project file as “mysite” and app as “hello”

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [March 9, 2025, 2:26pm UTC](https://forum.djangoproject.com/t/issue-with-setting-up-first-view-in-django-polls-app-in-mysite-project/39435/6 "2025-03-09T14:26:41Z")

</div>

Side Note: When posting code here, enclose the code between lines of three  
backtick - ` characters. This means you’ll have a line of ```, then your code,  
then another line of ```. This forces the forum software to keep your code  
properly formatted. (I have taken the liberty of correcting your previous post.  
Please remember to do this in the future.)

You wrote:

> [@sanjaynep](#):
>
> in views.py i made change

Which `views.py` file? (In what directory?)

> [@sanjaynep](#):
>
> In urls.py\hello i made these edits

I don’t understand what you mean by `urls.py\hello`. Are you saying that `urls.py` is a directory and that `hello` is a file within that directory?

I have that same question here:

> [@sanjaynep](#):
>
> in urls.py/mysite i made these edits

> [@sanjaynep](#):
>
> and in settings .py i have added installed app as ‘hello’

Please post your `INSTALLED_APPS` setting from your settings file.

Again - it’s not helpful to describe what you have done. We need to see the actual code.

It would also be helpful if you posted a full directory listing of your entire project.
