Wednesday, April 22, 2020

hosting django app on app engine

hi to all! I am hosting my blogging app on google app engine in a standard environment. the website deploys successfully. but when I try to go to any other URL like anirudhmalik.in to anirudhmalik/blog/list/ it shows me 500 server error on the server side I am using PostgreSQL instance and the logs message only show me the error 
projects/anirudhmalik-274008/logs/appengine.googleapis.com%2Frequest_log" 

but I couldn't get any hint from this message and none of the post requests is
working on the website and everything is working fine in a local server or my local machine 

you can check the website on anirudhmalik.in 

and you can also give suggestion is google app engine is good to host your Django project 
and other cheap college student type hosting service  
thankyou 


main.py 

from annyportfolio.wsgi import application

app=application

app.yaml file 

runtime: python37

handlers:
# This configures Google App Engine to serve the files in the app's static
# directory.
- url: /static
static_dir: static-storage/


# This handler routes all requests not caught above to your main app. It is
# required when static routes are defined, but can be omitted (along with
# the entire handlers section) when there are no static files defined.

- url: /.*
secure: always
redirect_http_response_code: 301
script: auto



env_variables:
DJANGO_SETTINGS_MODULE: annyportfolio.settings



--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAL8_rkG8qwM491qCcX18qgukA_ao4_ZjH8%2B-K01m17vOTcTTNw%40mail.gmail.com.

No comments:

Post a Comment