title: How to setup path (urls) for multiple Django applications in a single Django project
body: <p>I have a single Django project which has two different Django applications,  MyApp1 and MyApp2 (changed their names). </p>
  
  <p>The structure is like this:</p>
  
  <pre><code>MyProject
     MyApp1
        static
        templates
        urls.py
        views.py
        ...
     MyProject
        settings.py
        urls.py
        ...
  </code></pre>
  
  <p>I wrote the MyApp2 as a separate application in a different Django project and integrated it with the MyProject project (pip install MyApp2). Here is the installed apps in the settings.py file:</p>
  
  <pre><code># Application definition
  INSTALLED_APPS = [
      'MyApp1',
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'MyApp2',
  ]
  </code></pre>
  
  <p>These are the following paths (urls.py) of the MyProject.</p>
  
  <pre><code>from django.contrib import admin
  from django.urls import path, include
  
  urlpatterns = [
      path('admin/', admin.site.urls),
      path('myapp1/', include('myapp1.urls')),
      path('', include('myapp1.urls')),
      path('myapp2/',include('myapp2.urls')),
  ]
  </code></pre>
  
  <p>These are the following paths (urls.py) of the MyApp1:</p>
  
  <pre><code>from django.urls import path
  from . import views
  from django.urls import path
  from . import views
  
  urlpatterns = [
      path('', views.home, name='home'),
      path('about/', views.about, name='about'),
      path('contact/', views.contact, name='contact'),
  ]
  </code></pre>
  
  <p>These are the following paths (urls.py) of the MyApp2:</p>
  
  <pre><code>from django.urls import path
  from . import views
  
  urlpatterns = [
      path('', views.login, name='login'),
      path('index', views.home, name='home'),
      path('dashboard_output', views.dashboard_output, name='dashboard_output'),
      path('login', views.login, name='login'),
  ]
  </code></pre>
  
  <p>On the browser, if I type <a href="http://127.0.0.1:8000/" rel="nofollow noreferrer">http://127.0.0.1:8000/</a> or <a href="http://127.0.0.1:8000/myapp1" rel="nofollow noreferrer">http://127.0.0.1:8000/myapp1</a> I get the view of the MyApp1.</p>
  
  <p>On the browser, if I type <a href="http://127.0.0.1:8000/myapp2" rel="nofollow noreferrer">http://127.0.0.1:8000/myapp2</a> I get the view of the MyApp2 (the login page).</p>
  
  <p>So far so good, but if I type <a href="http://127.0.0.1:8000/myapp2/index" rel="nofollow noreferrer">http://127.0.0.1:8000/myapp2/index</a> the system directs me to the view of the myapp1 instead of the view of the myapp2. What am I doing wrong? Any ideas?</p>