Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
NIWEB_ROOT = '/opt/norduni/src/niweb/'
NIWEB_MEDIA_URL = '/static/'
# Database settings
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'norduni',
        'USER': 'postgres',
        'PASSWORD': 'secret',
        'HOST': 'localhost'
    }
}
# Neo4j settings
NEO4J_RESOURCE_URI = '/opt/norduni/dependencies/neo4jdb/'
# MIDDLEWARE_CLASSES
Remove line: 'debug_toolbar.middleware.DebugToolbarMiddleware',

Neo4j >1.5 embedded with Python bindings

...

Setting up a local/development NOCLook

Set up the SQL database using the Django project.

Code Block

cd /opt/norduni/src/niweb/
python manage.py syncdb
python manage.py runserver 0.0.0.0:80

Now you should be able surf to your machines ip and see the NOCLook app started.

Deploying NOCLook

Comment out the static media url in /opt/norduni/src/niweb/urls.py.

...