# Include apps.urls error

**URL:** <https://forum.djangoproject.com/t/include-apps-urls-error/35317>\
**Category:** Getting Started\
**Created:** [October 1, 2024, 11:59pm UTC](https://forum.djangoproject.com/t/include-apps-urls-error/35317 "2024-10-01T23:59:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![lopman045](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/lopman045/32/24297_2.png) [@lopman045](https://forum.djangoproject.com/u/lopman045)\
**Post date:** [October 1, 2024, 11:59pm UTC](https://forum.djangoproject.com/t/include-apps-urls-error/35317/1 "2024-10-01T23:59:57Z")

</div>

Hey

I am following a basic tutorial, and I am literally stuck there:

In urls.py 's project file:

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

urlpatterns = [
    path('admin/', admin.site.urls),
    path('/', include("back.urls"))
]

```

In urls.py 's “back” app file:

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

urlpatterns = [
    path('account', AccountView.as_view()),
]

```

and in INSTALLED APPS:

```auto
INSTALLED_APPS = [
    ...
    'rest_framework',
    'back',
]

```

I keep on getting this error:

```auto
path('/', include("back.urls"))
              ^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'back'

```

Can anyone advise me what I am missing please?

I am using Python 3.12 and Django 5.1.1.

---

<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:** [October 2, 2024, 12:06am UTC](https://forum.djangoproject.com/t/include-apps-urls-error/35317/2 "2024-10-02T00:06:04Z")

</div>

Welcome @lopman045 !

Please show your directory structure.

Identify the complete paths where your project `urls.py` and your `back` app’s `urls.py` files are located.

---

<div class="post-metadata">

**Author:** ![lopman045](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/lopman045/32/24297_2.png) [@lopman045](https://forum.djangoproject.com/u/lopman045)\
**Post date:** [October 2, 2024, 6:32am UTC](https://forum.djangoproject.com/t/include-apps-urls-error/35317/3 "2024-10-02T06:32:08Z")

</div>

Thank you very much!

My project structure is as follow;

 ![IMG_0070](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/3X/3/2/32be824c7e535b62e530091a4b1e837a556af8ad.jpeg)

---

<div class="post-metadata">

**Author:** ![boxed](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/boxed/32/11975_2.png) [@boxed](https://forum.djangoproject.com/u/boxed)\
**Post date:** [October 2, 2024, 6:37am UTC](https://forum.djangoproject.com/t/include-apps-urls-error/35317/4 "2024-10-02T06:37:52Z")

</div>

It’s quite hard to read that with so little indent. Is manage.py inside `back`?

---

<div class="post-metadata">

**Author:** ![lopman045](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/lopman045/32/24297_2.png) [@lopman045](https://forum.djangoproject.com/u/lopman045)\
**Post date:** [October 2, 2024, 7:10am UTC](https://forum.djangoproject.com/t/include-apps-urls-error/35317/5 "2024-10-02T07:10:44Z")

</div>

Apologies for that. Let me rewrite the structure there:

´´´  
backend  
|\_\_ back  
—-|\_\_ urls.py  
. …  
|\_\_ omg\_back  
—-|\_\_ omg\_back  
———|\_\_ urls.py  
———|\_\_ setting.py  
. …  
—-|\_\_ manage.py

---

<div class="post-metadata">

**Author:** ![boxed](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/boxed/32/11975_2.png) [@boxed](https://forum.djangoproject.com/u/boxed)\
**Post date:** [October 2, 2024, 7:29am UTC](https://forum.djangoproject.com/t/include-apps-urls-error/35317/6 "2024-10-02T07:29:16Z")

</div>

This structure seems wrong to me. `manage.py` should be on the top level. So I guess that would be inside `backend`. Then THAT should be the current working directory when running `manage.py`. Alternatively you move `back` into the outermost `omb_back` dir. I think it’s very confusing that you have 4 folders called variations on “backend”. One seems reasonable, 4 is too much 😛

---

<div class="post-metadata">

**Author:** ![white-seolpyo](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/white-seolpyo/32/22386_2.png) [@white-seolpyo](https://forum.djangoproject.com/u/white-seolpyo)\
**Post date:** [October 2, 2024, 7:36am UTC](https://forum.djangoproject.com/t/include-apps-urls-error/35317/7 "2024-10-02T07:36:06Z")

</div>

what is your **project name** and result of **print(base\_dir)** in settings.py?

---

<div class="post-metadata">

**Author:** ![lopman045](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/lopman045/32/24297_2.png) [@lopman045](https://forum.djangoproject.com/u/lopman045)\
**Post date:** [October 2, 2024, 7:47am UTC](https://forum.djangoproject.com/t/include-apps-urls-error/35317/8 "2024-10-02T07:47:14Z")

</div>

I see. Initially the ´back´ app was named ´api ´, but I thought the name could the reason of the error.

The project name is ´omg\_back´

---

<div class="post-metadata">

**Author:** ![white-seolpyo](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/white-seolpyo/32/22386_2.png) [@white-seolpyo](https://forum.djangoproject.com/u/white-seolpyo)\
**Post date:** [October 3, 2024, 12:29am UTC](https://forum.djangoproject.com/t/include-apps-urls-error/35317/9 "2024-10-03T00:29:05Z")

</div>

your project not include app named back.

you should :

```auto
|__ omg_back
—-|__ omg_back
———|__ urls.py
———|__ setting.py
———|__ back
. …
—-|__ manage.py

```

---

<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:** [October 3, 2024, 12:50am UTC](https://forum.djangoproject.com/t/include-apps-urls-error/35317/10 "2024-10-03T00:50:22Z")

</div>

Unless you have a real need to not follow the Django conventions, I would strongly suggest you organize your project as described at [Is the structure of the project correct? - #2 by KenWhitesell](https://forum.djangoproject.com/t/is-the-structure-of-the-project-correct/28374/2)

While there are other valid ways to organize your project, you will create less friction by doing it this way.
