# NoReverseMatch at / 'movies' is not a registered namespace

**URL:** <https://forum.codewithmosh.com/t/noreversematch-at-movies-is-not-a-registered-namespace/8466>\
**Category:** Python\
**Created:** [November 12, 2021, 2:53pm UTC](https://forum.codewithmosh.com/t/noreversematch-at-movies-is-not-a-registered-namespace/8466 "2021-11-12T14:53:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GP101](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@GP101](https://forum.codewithmosh.com/u/GP101)\
**Post date:** [November 12, 2021, 2:53pm UTC](https://forum.codewithmosh.com/t/noreversematch-at-movies-is-not-a-registered-namespace/8466/1 "2021-11-12T14:53:30Z")

</div>

In the Python Mastery Course \> 12- Building Web Applications with Django \> 20- Adding the Homepage I get the below error:

# NoReverseMatch at /

‘movies’ is not a registered namespace

| Request Method: | GET |
| --- | --- |
| Request URL: | [http://127.0.0.1:8000/](http://127.0.0.1:8000/) |
| Django Version: | 3.2.9 |
| Exception Type: | NoReverseMatch |
| Exception Value: | ‘movies’ is not a registered namespace |
| Exception Location: | C:\Users\Prithveen.virtualenvs\vidly3-x4\_-JjT6\lib\site-packages\django\urls\base.py, line 82, in reverse |
| Python Executable: | C:\Users\Prithveen.virtualenvs\vidly3-x4\_-JjT6\Scripts\python.exe |
| Python Version: | 3.9.0 |
| Python Path: | ['C:\Users\Prithveen\Desktop\Coding\Code with Mosh\The Complete Python ’ ‘Course\12- Building Web Applications with Django\vidly3’, ‘c:\users\prithveen\appdata\local\programs\python\python39\python39.zip’, ‘c:\users\prithveen\appdata\local\programs\python\python39\DLLs’, ‘c:\users\prithveen\appdata\local\programs\python\python39\lib’, ‘c:\users\prithveen\appdata\local\programs\python\python39’, ‘C:\Users\Prithveen\.virtualenvs\vidly3-x4\_-JjT6’, ‘C:\Users\Prithveen\.virtualenvs\vidly3-x4\_-JjT6\lib\site-packages’] |
| Server time: | Fri, 12 Nov 2021 14:48:20 +0000 |

My guess is it has something to with the url tag. I’m not so sure though.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/9/97ff55b17702669803a201339f28455dc02bab47.jpeg)

Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![TaserFace20](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@TaserFace20](https://forum.codewithmosh.com/u/TaserFace20)\
**Post date:** [November 12, 2021, 7:33pm UTC](https://forum.codewithmosh.com/t/noreversematch-at-movies-is-not-a-registered-namespace/8466/2 "2021-11-12T19:33:21Z")

</div>

Hey @GP101, Welcome to the forums.

I had a similar issue where the namespace in the urls.py was mistyped.

If you are still having issues, please post both “urls.py” and the “views.py” so we can better diagnose the issue.

---

<div class="post-metadata">

**Author:** ![GP101](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@GP101](https://forum.codewithmosh.com/u/GP101)\
**Post date:** [November 13, 2021, 5:48am UTC](https://forum.codewithmosh.com/t/noreversematch-at-movies-is-not-a-registered-namespace/8466/6 "2021-11-13T05:48:50Z")

</div>

Thank you for your reply.

I was able to fix the issue. As per the Python Mastery Course \> 12- Building Web Applications with Django \> 18- Referencing URLs, I had to include app\_name = “movies” in order for this to work.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/0/0359f295cc77e09d8a8dc8b2820c1940cd73b501.jpeg)

Appreciate the support!
