Re: Resolving my display

48 views
Skip to first unread message
Message has been deleted

Benjamin Schollnick

unread,
Dec 15, 2022, 9:34:26 AM12/15/22
to django...@googlegroups.com
Good day, i'm just beginning to learn django. Kindly help resolve this error.

What error are you experiencing, since there’s no obvious issue in the screen capture that I see?

- Benjamin


 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/84ae5f37-3689-4d31-85af-a518953fedean%40googlegroups.com.
<Screenshot 2022-12-08 090531.png>

Adekola Aderonmu

unread,
Dec 15, 2022, 9:37:43 AM12/15/22
to Django users
so sorry 
django 2.pngdjango 3.pngdjango console.png

Kasper Laudrup

unread,
Dec 15, 2022, 9:51:29 AM12/15/22
to django...@googlegroups.com
On 15/12/2022 15.37, Adekola Aderonmu wrote:
> so sorry

Have you tried looking into what the error message informs you to do?

Does PMSdetails_data/urls.py have any URL patterns in it?

Kind regards,

Kasper Laudrup
OpenPGP_0xE5D9CAC64AAA55EB.asc
OpenPGP_signature

Bhuvnesh Sharma

unread,
Dec 15, 2022, 9:55:47 AM12/15/22
to django...@googlegroups.com
As far as i can see you don't have any urls.py file in PMSdetails_data app, but if you want response at url: PMSdetails_data/, you have to import views from PMSdetails_data.
-> from PMSdetails_data import views
-> path('PMSdetails_data/', views.index) instead of path('PMSdetails_data/', include('PMSdetails_data.urls'))

or you can create urls.py file in PMSdetails_data app and add :

from django.urls import path
from . import views

urlpatterns = [
    path('', views.index, name='index'),
]

Adekola Aderonmu

unread,
Dec 15, 2022, 9:59:19 AM12/15/22
to Django users
yes, it has. ddjango1.png
or is there any other URL i need to look at

Adekola Aderonmu

unread,
Dec 15, 2022, 10:17:52 AM12/15/22
to Django users
hello, so i tried it and this is stil what i got...kindly, assist me. i'm lost ddjango2.pngddjango3.png

Bhuvnesh Sharma

unread,
Dec 15, 2022, 10:39:48 AM12/15/22
to django...@googlegroups.com
Import views first :
from PMSdetails_data import views

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

Adekola Aderonmu

unread,
Dec 15, 2022, 10:44:06 AM12/15/22
to Django users
please, where am i to import the views from. please, pardon me.
Thanks.

Bhuvnesh Sharma

unread,
Dec 15, 2022, 10:47:14 AM12/15/22
to django...@googlegroups.com
In the file where your PMSdetails_data and admin url is located

Adekola Aderonmu

unread,
Dec 15, 2022, 11:00:57 AM12/15/22
to Django users
okay, is this what you mean dddjango2.pngdddjango1.png

Bhuvnesh Sharma

unread,
Dec 15, 2022, 11:05:08 AM12/15/22
to django...@googlegroups.com
Can you send ss of the file structure of your project.


Adekola Aderonmu

unread,
Dec 15, 2022, 11:16:03 AM12/15/22
to Django users
sorry, i did'nt get that. can i send what? 

Bhuvnesh Sharma

unread,
Dec 15, 2022, 11:18:10 AM12/15/22
to django...@googlegroups.com
Screenshot of folder structure 

Raeesh 23

unread,
Dec 15, 2022, 11:23:41 AM12/15/22
to Django users
import views.py file like that:

from app_name import views

Raeesh 23

unread,
Dec 15, 2022, 11:23:43 AM12/15/22
to Django users
from  app_name import views

it is imported inside urls.py 

Adekola Aderonmu

unread,
Dec 15, 2022, 11:32:01 AM12/15/22
to Django users
okay here is the file structure1.png2.png3.png4.png5.png6.png7.png

Adekola Aderonmu

unread,
Dec 16, 2022, 2:59:39 AM12/16/22
to Django users
Good day, kindly do assist me resolve this error.
Reply all
Reply to author
Forward
0 new messages