6 If you haven't already :ref:`configured <configuring>` |gwm|, now would
7 be a good time to do so.
9 Now that you have a |gwm| instance setup and configured, you will want
10 to deploy it to somewhere that can be accessed by a web browser.
17 If you are just testing |gwm| out, run::
19 $ python manage.py runserver
21 Then open a web browser, and navigate to
22 `http://localhost:8000`.
26 firefox http://localhost:8000
32 Follow the django guide to `deploy with
33 apache. <https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi/>`_
34 Here is an example mod\_wsgi file:
41 path = '/var/lib/django/ganeti_webmgr'
44 activate_this = '%s/venv/bin/activate_this.py' % path
45 execfile(activate_this, dict(__file__=activate_this))
48 if path not in sys.path:
51 # configure django environment
52 os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
54 import django.core.handlers.wsgi
55 application = django.core.handlers.wsgi.WSGIHandler()
60 The virtual environment must be activated for use with mod\_wsgi. This
61 is done by executing the **activate\_this** script generated when a
62 virtualenv is created. The following code should be in the
63 **django.wsgi** file apache is configured to use.
67 # activate virtual environment
68 activate_this = '%s/venv/bin/activate_this.py' % PATH_TO_GANETI_WEBMGR
69 execfile(activate_this, dict(__file__=activate_this))