error at deployment

35 views
Skip to first unread message

Sayur Patel

unread,
Aug 22, 2020, 6:15:33 PM8/22/20
to Django users
hello i am beginner and this is my first project.

i have error on my home page.

i do 
  1. installing dependency
  2. makemigrations
  3.  migrate
  4.  createsuperuser
  •  setting.py  
  • change static root
  • static dir
  • media root
  • allowed host
  • debug = false  


anything am i missing?


Screenshot_17.png

Amresh Giri

unread,
Aug 22, 2020, 7:14:18 PM8/22/20
to django...@googlegroups.com
Check logs bro. You'll know what went wrong and where. 

--
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/c2198c12-b84c-4ee8-a948-6a9c2cffac79n%40googlegroups.com.

MUGOYA DIHFAHSIH

unread,
Aug 23, 2020, 3:50:52 PM8/23/20
to django...@googlegroups.com
You are missing python manage.py collectstatic, this is used to copy your static files to public fold so that they can be served by the server .

MUGOYA DIHFAHSIH

unread,
Aug 23, 2020, 3:55:50 PM8/23/20
to django...@googlegroups.com
Also that error comes about if you didn't  create well the python application like maybe you missed the application root, or you didn't replace the code in  your wsgi.py with this line. from myproject import application 

Kasper Laudrup

unread,
Aug 23, 2020, 4:04:06 PM8/23/20
to django...@googlegroups.com
Hi Sayur,

On 22/08/2020 22.53, Sayur Patel wrote:
> hello i am beginner and this is my first project.
>

Welcome to developing websites using Django. Hope you'll enjoy it.

>
> anything am i missing?
>

You should probably let us know a bit about what Phusion Passenger is
and how you have deployed it there. I have no experience with that, but
someone else might and there's a greater chance they could help if you
tell us how you have deployed it.

Do you get an error if you use the Django builtin development server?

Also, as someone else have already mentioned, you should check the logs.
There's probably some way to do that with Phusion Passenger, if you
don't know how, try to figure that out. You'll need that sooner or later
anyway.

Finally, what happens when you click the "Technical information for
administrator of this website" link? Remember, you're the administrator
of this website ;-)

Good luck and kind regards,

Kasper Laudrup
Reply all
Reply to author
Forward
0 new messages