This page describes all of the software that you will need to install and configure for this course.
virtualenvwrapper. virtualenvwrapper provides a convenient mechanism for managing Python virtual environments. Although virtualenv is not recommended for use with Anaconda (it bundles with its own virtual environment manager, conda), it will work just fine for the purposes of this course.
$ pip install virtualenvwrapper |
The following should be added to your shell initialization script. Usually, this is ~/.bash_profile (where ~ is your home directory, e.g. ``/Users/johndoe``). See this page for more information.
export WORKON_HOME=$HOME/.virtualenvs export PROJECT_HOME=$HOME/ source /usr/local/bin/virtualenvwrapper.sh |
Windows users: try this package: https://pypi.python.org/pypi/virtualenvwrapper-win
If everything goes well, you should be able to create and activate virtual environments like this:
$ mkvirtualenv myenv New python executable in myenv/bin/python Installing setuptools, pip, wheel...done. (myenv) $ |
Now you can pip install packages into this virtual environment like you would do for your system.
First, git clone the repository:
$ git clone https://github.com/diging/vogon-web Cloning into 'vogon-web'... remote: Counting objects: 12164, done. remote: Total 12164 (delta 0), reused 0 (delta 0), pack-reused 12163 Receiving objects: 100% (12164/12164), 57.44 MiB | 7.29 MiB/s, done. Resolving deltas: 100% (3711/3711), done. Checking connectivity... done. Checking out files: 100% (12286/12286), done. |
Create a new virtual environment for this project:
$ mkvirtualenv vogonweb New python executable in vogonweb/bin/python Installing setuptools, pip, wheel...done. |
Install dependencies with pip:
(vogonweb) $ cd vogon-web (vogonweb) $ pip install -r requirements.txt |
This will download and install a whole bunch of Python packages. There are likely to be missing libraries, and other dependencies. Please install these as necessary. E.g. Ubuntu users should use apt-get to install missing libraries. Mac users: install homebrew, and use brew to install missing. libraries. Windows users: good luck..... let us know if you run into problems.
Ensure that you can run the application! The following commands should be sufficient to start the web app:
(vogonweb) $ export DJANGO_SETTINGS_MODULE='vogon.local_settings' (vogonweb) $ export REDIS_URL='' (vogonweb) $ python manage.py migrate # You only need to run this once. (vogonweb) $ python manage.py runserver Performing system checks... System check identified 1 issue (0 silenced). January 15, 2016 - 12:25:07 Django version 1.8.2, using settings 'vogon.local_settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C. |
Point your web server to:
http://127.0.0.1:8000/
You should see something like this:
You may also want to use visual panels to communicate related information, tips or things users need to be aware of. |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|