sibsibsib / pressureNET-server

Web-based data viewer for pressureNET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pressureNETAnalysis

Web-based data viewer for pressureNET

Local Development Setup

  1. Set up virtualenv (using virtualenvwrapper):

    mkvirtualenv pressurenet
    
  2. Activate virtualenv

    workon pressurenet
    
  3. Install all the local packages using pip:

    pip install -r requirements.txt
    
  4. Copy settings_local.py.ex to settings_local.py and fill in the database settings (database name, username, password).

  5. Create the database and run through the database migrations:

    ./manage.py syncdb && ./manage.py migrate
    
  6. Run the server:

    ./manage.py runserver 0:8000
    

Check out how it looks in your browser: http://localhost:8000/ and http://localhost:8000/admin/

Local Development Setup Using PostgreSQL

Replace the MySQL-Python package in requirements.txt with psycopg2. Make sure the postgresql-server-X.Y-dev package is installed.

Change the database backend from django.db.backends.mysql to django.db.backends.postgresql_psycopg2.

About

Web-based data viewer for pressureNET

License:GNU General Public License v3.0


Languages

Language:JavaScript 39.9%Language:Python 28.3%Language:CSS 24.0%Language:HTML 6.7%Language:Makefile 0.5%Language:Batchfile 0.5%Language:Elixir 0.1%