I have 500 error with example from github
debug = True not work
If debug = True does not work, then the request is not hitting Django. The issue must be elsewhere. Could be anything, Nginx config, gunicorn, uWSGI, or whatever web server or proxy you are running in front of django. Check the logs.
debug = True
I need settings for apache. Help me.
I need settings for apache and wsgi for start server
There are official docs for apache . DigitalOcean has some docs that are useful for any VPS  in case you are running one.
i do it.
but in apache log: The SECRET_KEY setting must not be empty.
in prod.py Secret_key is full
may be apache dont see settings django project?
in wsgi.py i add: os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example.project.settings.prod_local")
in apache log: ImportError: No module named prod_local
but in folder settings prod_local.py exist
This last one sound like it may be the winner according to django docs. Just replace project_name by your actual project name. Remember to restart Apache afterwards.
If that does not work then try to generate the path with this:
# Very crappy code. There's probably a better way by using importlib, but meh
MODULE_PATH = '%s.settings.prod_local' % '.'.join(os.path.split(os.path.dirname(__file__))).strip('.')
If that does not work then you'll have to find what's the relative path to wsgi.py. You can do it by raising an exception so it'll be printed in the apache logs. This is pretty much the same as above. You can create the import path later.
There's probably a way to set the working dir in Apache, but no idea.
Be aware that mod_wsgi may or may not modify the Python sys.path, so you may want to print that and find places from where you can import the settings. If nothing works then raise an exception passing sys.path and share the output here, so I can help you from there.
Remember to restart Apache after each change you make.
ImportError: Import by filename is not supported.
When doing what? Can you share the output of __file__ and sys.path (either by running a debugger or raising an exception)?