Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration of production server #37

Open
karuto opened this issue May 7, 2013 · 1 comment
Open

Configuration of production server #37

karuto opened this issue May 7, 2013 · 1 comment

Comments

@karuto
Copy link
Owner

karuto commented May 7, 2013

usfevent.wsgi
(place this under the public_html/usf/usfevent/ main directory)

import os
import sys

sys.stdout = sys.stderr

sys.path.append('/home/django/public_html/usf')
sys.path.append('/home/django/public_html/usf/usfevent')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' #locate settings.py
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

settings.py
(Need to change a few lines to make things work on server)

MEDIA_ROOT = '/home/django/public_html/usf/usfevent/media/'
STATIC_ROOT = "/home/django/public_html/usf/usfevent/static"
TEMPLATE_DIRS = (
"/home/django/public_html/usf/usfevent/templates"
)

@karuto
Copy link
Owner Author

karuto commented May 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant