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

Hi,
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

INSTALLED_APPS = [
    'app',
    # Add Django apps here to enable them
...
    # Add our new application
...
    'datacatalog.apps.DatacatalogConfig',
]

2- I created URL.py 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/', admin.site.urls),]
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?
thanks
-gt

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 urls.py for app

app_name = 'app'
urlpatterns = [
    path('', views.home, name='home'),
    path('contact/', views.contact, name='contact'),
    path('about/', views.about, name='about'),
    path('login/',
         LoginView.as_view
         (
             template_name='app/login.html',
             authentication_form=forms.BootstrapAuthenticationForm,
             extra_context=
             {
                 'title': 'Log in',
                 'year' : datetime.now().year,
             }
         ),
         name='login'),
    path('logout/', LogoutView.as_view(next_page='/'), name='logout'),
    path('admin/', admin.site.urls),
]

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 urls.py 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.