Versions Compared

Key

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

...

Code Block
$ . norduni_environment/bin/activate
$ pip install -r norduni/requirements/prod.txt

Django settings

Change the django settings.

Code Block
$ cd norduni/src/niweb/niweb/
$ cp generic_settings.pydotenv settings.pyenv
$ vi settings.pyenv

Change at least the database settings.

Code Block
# Database settings
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'norduni',
        'USER': 'ni',
        'PASSWORD': 'secret',
        'HOST': 'localhost'
    }
}
DB_NAME=norduni
DB_USER=ni
DB_PASSWORD=secret
DB_HOST=localhost

Check if your settings are ok.

...