# Understanding code in urls.py configuration file

**URL:** https://forum.djangoproject.com/t/understanding-code-in-urls-py-configuration-file/23617
**Category:** Getting Started
**Created:** [September 4, 2023, 3:26pm UTC](https://forum.djangoproject.com/t/understanding-code-in-urls-py-configuration-file/23617 "2023-09-04T15:26:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![RobertWSON](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/robertwson/32/14481_2.png) [@RobertWSON](https://forum.djangoproject.com/u/RobertWSON)
#### Post date: [September 4, 2023, 3:26pm UTC](https://forum.djangoproject.com/t/understanding-code-in-urls-py-configuration-file/23617/1 "2023-09-04T15:26:50Z")

</div>

I have been working through W3 Schools Django and reviewing my urls.py configuration file code.

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

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

```

What does `contrib` mean with `from django.contrib import admin` ?

What does `include` mean with `from django.urls import include, path` ?

What does `urlpatterns` actually mean ?  
**Is it a list that takes requests for urls or is it a tuple with a list of url requests ?**

With `path('', include('members.urls')),`  
My understanding is that this is gives 127.0.0.1:8000/members/  
**How does include work with this and why does members.urls need a dot ?**

With `path('admin/', admin.site.urls),`  
My understanding is that this gives 127.0.0.1:8000/admin/  
**Why does it need dots with admin.site.urls ?**

---

<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: [September 4, 2023, 4:54pm UTC](https://forum.djangoproject.com/t/understanding-code-in-urls-py-configuration-file/23617/2 "2023-09-04T16:54:28Z")

</div>

These aren’t, strictly speaking, Django-related questions. They’re more fundamentally Python language-related. You should read up on the docs regarding Python packages and the import statement.

See [https://docs.python.org/3/tutorial/modules.html](https://docs.python.org/3/tutorial/modules.html) as a starting point, along with [https://docs.python.org/3/reference/import.html#importsystem](https://docs.python.org/3/reference/import.html#importsystem).
