Skip to content

Commit

Permalink
Adding static files
Browse files Browse the repository at this point in the history
  • Loading branch information
D3f0 committed Jan 17, 2012
1 parent ff08b08 commit 15c24a0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
build
.*
*.pyc
25 changes: 25 additions & 0 deletions demo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,34 @@
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'gmapsfield',
'map',

'django.contrib.admin',
'django.contrib.admindocs',
)
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
STATIC_ROOT = 'static_files'
STATIC_URL = '/static/'
import os
PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
# 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.
os.path.join(PROJECT_PATH, 'static'),

)


# 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',
)


0 comments on commit 15c24a0

Please sign in to comment.