Adds django-libsass as dependency; de-eldarionises the static folder

This commit is contained in:
Christopher Neugebauer 2017-06-07 14:37:08 -07:00
parent d7a8490271
commit 7bbe064c0d
2 changed files with 14 additions and 5 deletions

View file

@ -56,22 +56,23 @@ MEDIA_URL = "/site_media/media/"
# Don"t put anything in this directory yourself; store your static files # Don"t put anything in this directory yourself; store your static files
# in apps" "static/" subdirectories and in STATICFILES_DIRS. # in apps" "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/home/media/media.lawrence.com/static/" # Example: "/home/media/media.lawrence.com/static/"
STATIC_ROOT = os.path.join(PACKAGE_ROOT, "site_media", "static") STATIC_ROOT = os.path.join(PROJECT_ROOT, 'staticfiles')
# URL prefix for static files. # URL prefix for static files.
# Example: "http://media.lawrence.com/static/" # Example: "http://media.lawrence.com/static/"
STATIC_URL = "/site_media/static/" STATIC_URL = '/static/'
# Additional locations of static files # Additional locations of static files
STATICFILES_DIRS = [ STATICFILES_DIRS = (
os.path.join(PROJECT_ROOT, "static", "dist"), os.path.join(PROJECT_ROOT, 'static'),
] )
# List of finder classes that know how to find static files in # List of finder classes that know how to find static files in
# various locations. # various locations.
STATICFILES_FINDERS = [ STATICFILES_FINDERS = [
"django.contrib.staticfiles.finders.FileSystemFinder", "django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder", "django.contrib.staticfiles.finders.AppDirectoriesFinder",
"compressor.finders.CompressorFinder",
] ]
# Make this unique, and don't share it with anybody. # Make this unique, and don't share it with anybody.
@ -172,6 +173,9 @@ INSTALLED_APPS = [
#testing #testing
"django_nose", "django_nose",
# stylesheets and js
'compressor',
] ]
# A sample logging configuration. The only tangible logging # A sample logging configuration. The only tangible logging
@ -203,6 +207,10 @@ LOGGING = {
} }
} }
COMPRESS_PRECOMPILERS = (
('text/x-scss', 'django_libsass.SassCompiler'),
)
FIXTURE_DIRS = [ FIXTURE_DIRS = [
os.path.join(PROJECT_ROOT, "fixtures"), os.path.join(PROJECT_ROOT, "fixtures"),
] ]

View file

@ -7,6 +7,7 @@ dj-static==0.0.6
dj-database-url==0.4.0 dj-database-url==0.4.0
pinax-pages==0.4.2 pinax-pages==0.4.2
pinax-boxes==2.1.2 pinax-boxes==2.1.2
django-libsass==0.7
# For testing # For testing
django-nose==1.4.3 django-nose==1.4.3