Django cpanel url error

95 views
Skip to first unread message

Johnbosco Francis

unread,
Dec 21, 2021, 4:28:57 PM12/21/21
to Django users
i have hosted my Django website on cPanel, But am facing an issue with URL 
when I try www.mywebsite.com it works but when i try accessing other pages like www.mywebsite.com/about am getting 404 error. 

any help will be appreciated

Kasper Laudrup

unread,
Dec 21, 2021, 7:06:21 PM12/21/21
to django...@googlegroups.com
It's hard for anyone to help you if you're not sharing your code and
details on how you've deployed it.

Kind regards,

Kasper Laudrup
OpenPGP_0xE5D9CAC64AAA55EB.asc
OpenPGP_signature

Kunal Verma

unread,
Dec 21, 2021, 9:23:29 PM12/21/21
to django...@googlegroups.com
It seems an error because you have not enter the correct path in url.py file. You should enter Path("www.websitename.com/about",name=("about/")

--
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/e807c5f6-bc73-c17b-959e-c65efd3c3015%40stacktrace.dk.
Reply all
Reply to author
Forward
0 new messages