Hosting django with Namecheap

82 views
Skip to first unread message

Namanya Daniel

unread,
Nov 8, 2022, 4:41:02 AM11/8/22
to Django users
Hello, am hosting a django application with namecheap for the very first time and am getting " Internal Server ErrorError 500" , in the error log, wsgi.py shows that there's not settings

how do i handle this

Kasper Laudrup

unread,
Nov 8, 2022, 7:07:09 AM11/8/22
to django...@googlegroups.com
You add the settings.

Kind regards,
Kasper Laudrup

Namanya Daniel

unread,
Nov 8, 2022, 7:55:25 AM11/8/22
to Django users
i have settings.py in the same folder with wsgi.py

bradie poa

unread,
Nov 8, 2022, 7:59:21 AM11/8/22
to Namanya Daniel, Django users
its not a good idea

--
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/9f4bfc65-8319-4c19-85b2-7ac7ff1d7ff9n%40googlegroups.com.

Kasper Laudrup

unread,
Nov 8, 2022, 8:10:20 AM11/8/22
to django...@googlegroups.com
On 08/11/2022 13.58, bradie poa wrote:
> its not a good idea
>

Agreed. It's a horrible idea.

Kind regards,
Kasper Laudrup

Namanya Daniel

unread,
Nov 8, 2022, 8:20:39 AM11/8/22
to Django users
Capture 1.PNG

Namanya Daniel

unread,
Nov 8, 2022, 8:21:14 AM11/8/22
to Django users
Here is my wsgi.pyCapture 2.PNG

Namanya Daniel

unread,
Nov 8, 2022, 8:21:39 AM11/8/22
to Django users
How do i go about this kind of a situation

Jeff Kingsley

unread,
Nov 8, 2022, 2:34:17 PM11/8/22
to django...@googlegroups.com
Which web server do you use?

--

Jeff Kingsley

unread,
Nov 8, 2022, 2:34:18 PM11/8/22
to django...@googlegroups.com, Namanya Daniel
Do you have root access oba you are just using cpanel. I do think you will be able to succeed with cpanel, you need VSP.

Namanya Daniel

unread,
Nov 9, 2022, 1:27:29 AM11/9/22
to Django users
Thanks Jeff, 

i re-uploaded the website and it worked but now i have an issue with static files.

i've static_url= "/static/"
static_root ="/home/username/url/static"
i ran collectstatic 

in my templates,

loaded static

and set src = folder/image.jpg

and these images are there in that folder... what could be the issue

Namanya Daniel

unread,
Nov 9, 2022, 3:44:39 AM11/9/22
to Django users
I had not included the static_root in the url... thats document_root

Kiyavilo Msekwa

unread,
Nov 9, 2022, 10:28:14 AM11/9/22
to django...@googlegroups.com
The static files in ur Django project should reflect to public_html/static files 


Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages