My django project runs well in PyCharm but when deployed in pythonanywhere, it loads a blank page with the title alone and no other text.
On web tab, I gave url and path to static and media as given below
/static/ /home/swapna304/movie/static
/media/ /home/swapna304/movie/media
In the actual django project, I used django admin database but how to connect that in pythonanywhere? I didn’t know that. So, I connected to mysql.
DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.mysql’,
‘NAME’: ‘swapna304$moviedb’,
‘USER’: ‘swapna304’,
‘PASSWORD’: ‘************’,
‘HOST’: ‘swapna304.mysql.pythonanywhere-services.com’,
}
}
Please help with this issue.
Thanks