Adding another applications to existing Django VS2019 project with app and relevant admin login

I am new to Django. I used VS2019 to create Django app and modified it to meet most of the layout of desired portal.
I found another Django app the datacalalog by oxpeter in github and tied to add this app to the existing project created by VS2019. I did the following

1- I edited the settings to include the relevant apps needed for datacatalog app

    # Add Django apps here to enable them
    # Add our new application

2- I created for app applications and moved relevant contents in main URL to it
3- I modified main URL as follows

from django.urls import include
urlpatterns = [    path('admin/',,]
urlpatterns += [
    path('app/', include('app.urls')),
    path('datacatalog/', include('datacatalog.urls')),
    path('persons/', include('persons.urls')),
#Add URL maps to redirect the base URL to our application
from django.views.generic import RedirectView
urlpatterns += [    path('', RedirectView.as_view(url='app/', permanent=True)),]

when I run the server, I get the following page not found 404
|Request Method:|GET|
|Request URL:|http://localhost:53297/accounts/login/?next=/app/|
Using the URLconf defined in HealthcarePlatform_Site.urls , Django tried these URL patterns, in this order:

  1. admin/
  2. app/
  3. datacatalog/
  4. persons/
  5. ^static/(?P.*)$
    The current path, accounts/login/ , didn’t match any of these.

can some one help me?

It appears that one of your apps requires the user be logged in. See the docs on Authentication Views.

you are correct Ken!

the authentication views are set in the app and it worked alone perfectly within the VS2019 app (see code below). I redirected the URLs to app (urlpatterns += [ path(’’, RedirectView.as_view(url=‘app/’, permanent=True)),] ) after the added datacatalog, but I couldn’t get the auth process to work
Note: the for app

app_name = 'app'
urlpatterns = [
    path('', views.home, name='home'),
    path('contact/',, name='contact'),
    path('about/', views.about, name='about'),
                 'title': 'Log in',
                 'year' :,
    path('logout/', LogoutView.as_view(next_page='/'), name='logout'),

Note: When you post code, please enclose it between lines of three backtick - ` characters. This means you’ll have a line of ``` followed by your code, followed by another line of ```. This will allow the forum software to keep your code properly formatted making it easier to read.

Please edit your previous post and add the backtick line before and after your code block.

The error message:

Is very explicit. What entry in your file is going to handle that url?

I edited the prior posts and enclosed codes in backticks. thanks for the tip!

the URLs in the app are pointin to the ones I need. I am not sure how DJango generated this path , accounts/login/ , that does not match any of URLs in app, catalogapp, etc…

See the settings docs for login urls.