mysql - Dreamhost PyCharm Django Python 3 Launching a Site -
i'm new python/django , created simple django website using pycharm. site works fine running on computer, i'm lost when comes taking site onto host (dreamhost). i'm able upload files correct directories fine, , believe made correct changes database on mysql. i'm not sure go there though. right now, page shows files rather site. direction appreciated. much!
you should not run django application using python manage.py runserver
on production. how run application on django depends on server (apache, nginx) want use
for apache - https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/modwsgi/
the mysql database should, of course, exist , have correct credentials. or, if choose use sqlite, file should accessible, readable , writable www-user
(may different depending on linux distributive)
Comments
Post a Comment