This commit is contained in:
Fergal Moran
2017-05-09 23:31:55 +01:00
parent 4333677844
commit 0c4e910b9e
380 changed files with 127165 additions and 46 deletions

View File

@@ -1,21 +1,8 @@
"""
Django settings for shortio project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
@@ -27,7 +14,6 @@ DEBUG = True
ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
@@ -38,8 +24,11 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'compressor',
'django_extensions',
'debug_toolbar',
'shorts',
'dispatcher',
]
MIDDLEWARE = [
@@ -50,6 +39,7 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
]
ROOT_URLCONF = 'shortio.urls'
@@ -72,7 +62,6 @@ TEMPLATES = [
WSGI_APPLICATION = 'shortio.wsgi.application'
# Database
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
@@ -83,7 +72,6 @@ DATABASES = {
}
}
# Password validation
# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
@@ -102,7 +90,6 @@ AUTH_PASSWORD_VALIDATORS = [
},
]
# Internationalization
# https://docs.djangoproject.com/en/1.11/topics/i18n/
@@ -116,9 +103,21 @@ USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.11/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = '/home/fergalm/dev/personal/shortio/static/'
STATICFILES_DIRS = (
os.path.join(BASE_DIR, "static"),
)
STATICFILES_FINDERS = (
'compressor.finders.CompressorFinder',
)
COMPRESS_ROOT = '/home/fergalm/dev/personal/shortio/static/'
APPEND_SLASH = False
ROOT_DISPATCHER_URL = 'http://localhost:8000/'
INTERNAL_IPS = ('127.0.0.1', '10.1.1.1', '10.1.1.3',)
DEBUG_TOOLBAR_CONFIG = {'INTERCEPT_REDIRECTS': False, }