From 2673faac9a6fa04c977b7d4fd2d406d7913bcd79 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 21 Jan 2017 18:36:55 +0100 Subject: [PATCH] change env calls to just python --- netbox/generate_secret_key.py | 2 +- netbox/manage.py | 2 +- netbox/netbox/configuration.example.py | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/netbox/generate_secret_key.py b/netbox/generate_secret_key.py index cc823939d..0e0214dc4 100755 --- a/netbox/generate_secret_key.py +++ b/netbox/generate_secret_key.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python # This script will generate a random 50-character string suitable for use as a SECRET_KEY. import os import random diff --git a/netbox/manage.py b/netbox/manage.py index 737592ae8..2ce3867f3 100755 --- a/netbox/manage.py +++ b/netbox/manage.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python import os import sys diff --git a/netbox/netbox/configuration.example.py b/netbox/netbox/configuration.example.py index 75d6b9e28..b85fcafbb 100644 --- a/netbox/netbox/configuration.example.py +++ b/netbox/netbox/configuration.example.py @@ -13,7 +13,10 @@ ALLOWED_HOSTS = [] # PostgreSQL database configuration. DATABASE = { 'NAME': 'netbox', # Database name - 'USER': 'postgres', # PostgreSQL username + 'USER': '', # PostgreSQL username + 'PASSWORD': '', # PostgreSQL password + 'HOST': 'localhost', # Database server + 'PORT': '', # Database port (leave blank for default) } # This key is used for secure generation of random numbers and strings. It must never be exposed outside of this file.