Ganeti Web Manager supports various methods of deployment. By default Django ships with a simple python web server for development purposes. If your just trying to get Ganeti Web Manager up and running, or you simply want to contribute to the project then using the Development Server is probably your best bet. Otherwise check out Static Files. Once you’ve gotten your static files figured out, move into either deployment with Apache + mod_wsgi or Nginx + uWSGI.
Make sure you’ve already checked out Initializing.
If you are just testing Ganeti Web Manager out, run:
$ django-admin.py runserver --insecure
Then open a web browser, and navigate to http://localhost:8000.
If you want this to be accessable from a machine other than where you ran that command, then run the following:
$ django-admin.py runserver 0.0.0.0:8000 --insecure
This should only be used to test. This should never be used in a production environment.
To adjust where these static assets get copied to, you can adjust the
STATIC_ROOT setting in
config.yml. By default it copies files to
/opt/ganeti_webmgr/collected_static. To actual do the copy, run the following:
$ source /opt/ganeti_webgr/bin/activate $ django-admin.py collectstatic
Once you’ve done that, you can move on to deploying using your preferred web server.