Skip to content

Instantly share code, notes, and snippets.

@vagonzalez
Created April 24, 2013 12:53
Show Gist options
  • Save vagonzalez/5451903 to your computer and use it in GitHub Desktop.
Save vagonzalez/5451903 to your computer and use it in GitHub Desktop.
from os import path, pardir
import sys
PROJECT_ROOT = path.dirname(path.abspath(__file__))
sys.path.append(path.join("apps"))
DEBUG = True
##### PIPELINE ################################################################
PIPELINE = True
STATICFILES_STORAGE = 'pipeline.storage.PipelineStorage'
#PIPELINE_JS_COMPRESSOR = ''
PIPELINE_CSS = {
'estilos': {
'source_filenames': (
'stylus/prueba.styl'
),
'output_filename': 'stylus/estilos.css',
'extra_context': {
'media': 'screen,projection',
},
},
}
PIPELINE_JS = {}
PIPELINE_COMPILERS = (
'pipeline.compilers.stylus.StylusCompiler',
)
PIPELINE_STYLUS_BINARY = 'stylus'
################################################################################
# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/var/www/example.com/static/"
STATIC_ROOT = path.join(PROJECT_ROOT, pardir, 'static')
# URL prefix for static files.
# Example: "http://example.com/static/", "http://static.example.com/"
STATIC_URL = '/static/'
# Additional locations of static files
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
#path.join(PROJECT_ROOT, pardir, 'librerias'),
'/home/django/geco_deploy/geco/librerias',
)
# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
#'django.contrib.staticfiles.finders.DefaultStorageFinder',
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'grappelli',
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
'django.contrib.admindocs',
'django_extensions',
'crispy_forms',
'pipeline',
'dajaxice',
'dajax',
'accounts',
'geco_aprobaciones',
'geco_solicitudes',
'gecoapp',
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment