Changeset - 7bbe064c0d2e
[Not reviewed]
0 2 0
Christopher Neugebauer - 4 years ago 2017-06-07 21:37:08
chrisjrn@gmail.com
Adds django-libsass as dependency; de-eldarionises the static folder
2 files changed with 14 insertions and 5 deletions:
0 comments (0 inline, 0 general)
pinaxcon/settings.py
Show inline comments
...
 
@@ -57,14 +57,14 @@ MEDIA_URL = "/site_media/media/"
 
# in apps" "static/" subdirectories and in STATICFILES_DIRS.
 
# 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.
 
# Example: "http://media.lawrence.com/static/"
 
STATIC_URL = "/site_media/static/"
 
STATIC_URL = '/static/'
 

	
 
# Additional locations of static files
 
STATICFILES_DIRS = [
 
    os.path.join(PROJECT_ROOT, "static", "dist"),
 
]
 
STATICFILES_DIRS = (
 
    os.path.join(PROJECT_ROOT, 'static'),
 
)
 

	
 
# List of finder classes that know how to find static files in
...
 
@@ -73,4 +73,5 @@ STATICFILES_FINDERS = [
 
    "django.contrib.staticfiles.finders.FileSystemFinder",
 
    "django.contrib.staticfiles.finders.AppDirectoriesFinder",
 
    "compressor.finders.CompressorFinder",
 
]
 

	
...
 
@@ -173,4 +174,7 @@ INSTALLED_APPS = [
 
    #testing
 
    "django_nose",
 

	
 
    # stylesheets and js
 
    'compressor',
 
]
 

	
...
 
@@ -204,4 +208,8 @@ LOGGING = {
 
}
 

	
 
COMPRESS_PRECOMPILERS = (
 
    ('text/x-scss', 'django_libsass.SassCompiler'),
 
)
 

	
 
FIXTURE_DIRS = [
 
    os.path.join(PROJECT_ROOT, "fixtures"),
requirements.txt
Show inline comments
...
 
@@ -8,4 +8,5 @@ dj-database-url==0.4.0
 
pinax-pages==0.4.2
 
pinax-boxes==2.1.2
 
django-libsass==0.7
 

	
 
# For testing
0 comments (0 inline, 0 general)