Skip to content
Snippets Groups Projects

Superevents

Merged Tanner Prestegard requested to merge superevent into master
4 files
+ 93
2
Compare changes
  • Side-by-side
  • Inline
Files
4
  • 2e7b1054
    Adding Django sites app · 2e7b1054
    Tanner Prestegard authored
    Activate Django sites app and create a migration which adds the
    LIGO.ORG domain name of the GraceDB instance as a Site. This will
    be used to build absolute URIs without needed a request object.
+ 7
2
@@ -271,13 +271,16 @@ MIDDLEWARE = [
# Path to root URLconf
ROOT_URLCONF = '{module}.urls'.format(module=os.path.basename(CONFIG_ROOT))
# Database ID of the current site (for sites framework)
SITE_ID=1
# List of string designating all applications which are enabled.
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.sessions',
# 'django.contrib.sites',
'django.contrib.sites',
'django.contrib.staticfiles',
'django.contrib.messages',
'maintenance_mode',
@@ -323,10 +326,12 @@ STATICFILES_DIRS = [
BOWER_DIR,
]
# Added in order to perform data migrations on the auth and guardian apps
# Added in order to perform data migrations on Django apps
# and other third-party apps
MIGRATION_MODULES = {
'auth': 'migrations.auth',
'guardian': 'migrations.guardian',
'sites': 'migrations.sites',
}
# Forces test database to be created with syncdb rather than via
Loading