mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-25 16:51:54 +00:00
Don't put passwords in the repo
This commit is contained in:
parent
03cad0a37f
commit
dcc67fddda
@ -26,7 +26,7 @@ def reload_db():
|
|||||||
cursor.execute("ALTER DATABASE %s CHARACTER SET=utf8" % databasename)
|
cursor.execute("ALTER DATABASE %s CHARACTER SET=utf8" % databasename)
|
||||||
cursor.execute("USE %s" % databasename)
|
cursor.execute("USE %s" % databasename)
|
||||||
management.call_command('syncdb', interactive=False)
|
management.call_command('syncdb', interactive=False)
|
||||||
user = User.objects.create_user('expo', 'wookey@wookware.org', '161:gosser')
|
user = User.objects.create_user('expo', 'wookey@wookware.org', 'putrealpasswordinhere')
|
||||||
user.is_staff = True
|
user.is_staff = True
|
||||||
user.is_superuser = True
|
user.is_superuser = True
|
||||||
user.save()
|
user.save()
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
# This is an example file. Copy it to localsettings.py, set the
|
||||||
|
# password and _don't_ check that file back to the repo as it exposes
|
||||||
|
# your/our password to the world!
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
|
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
|
||||||
'NAME': 'troggle', # Or path to database file if using sqlite3.
|
'NAME': 'troggle', # Or path to database file if using sqlite3.
|
||||||
'USER': 'expo', # Not used with sqlite3.
|
'USER': 'expo', # Not used with sqlite3.
|
||||||
'PASSWORD': '161:gosser', # Not used with sqlite3.
|
'PASSWORD': 'wibble', # Not used with sqlite3.
|
||||||
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
|
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
|
||||||
'PORT': '', # Set to empty string for default. Not used with sqlite3.
|
'PORT': '', # Set to empty string for default. Not used with sqlite3.
|
||||||
}
|
}
|
||||||
@ -16,6 +20,7 @@ sys.path.append(REPOS_ROOT_PATH)
|
|||||||
sys.path.append(REPOS_ROOT_PATH + 'troggle')
|
sys.path.append(REPOS_ROOT_PATH + 'troggle')
|
||||||
|
|
||||||
PUBLIC_SITE = True
|
PUBLIC_SITE = True
|
||||||
|
FIX_PERMISSIONS = ["sudo", "/usr/local/bin/fix_permissions"]
|
||||||
|
|
||||||
SURVEX_DATA = REPOS_ROOT_PATH + 'loser/'
|
SURVEX_DATA = REPOS_ROOT_PATH + 'loser/'
|
||||||
TUNNEL_DATA = REPOS_ROOT_PATH + 'tunneldata/'
|
TUNNEL_DATA = REPOS_ROOT_PATH + 'tunneldata/'
|
||||||
|
@ -6,7 +6,7 @@ DATABASES = {
|
|||||||
'ENGINE': 'django.db.backends.mysql', # 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
|
'ENGINE': 'django.db.backends.mysql', # 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
|
||||||
'NAME' : 'troggle', # Or path to database file if using sqlite3.
|
'NAME' : 'troggle', # Or path to database file if using sqlite3.
|
||||||
'USER' : 'expo', # Not used with sqlite3.
|
'USER' : 'expo', # Not used with sqlite3.
|
||||||
'PASSWORD' : '161:gosser', # Not used with sqlite3.
|
'PASSWORD' : 'sekrit', # Not used with sqlite3.
|
||||||
'HOST' : '', # Set to empty string for localhost. Not used with sqlite3.
|
'HOST' : '', # Set to empty string for localhost. Not used with sqlite3.
|
||||||
'PORT' : '', # Set to empty string for default. Not used with sqlite3.
|
'PORT' : '', # Set to empty string for default. Not used with sqlite3.
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user