Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
- added PIL
- better defaults for STATIC_ROOT / STATIC_URL
- added urlpattern for development (no need to collectstatic all the time)
  • Loading branch information
dbunskoek committed May 18, 2011
1 parent 8642252 commit e197453
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions README.rst
Expand Up @@ -19,8 +19,9 @@ These dependencies are automatically installed:

django-mptt>=0.4.2
django-piston==0.2.3rc1
django-staticfiles>=1.0.1
beautifulsoup>=3.2.0
PIL>=1.1.7
django-staticfiles>=1.0.1
django-compressor>=0.7.1

Optionally, you may need:
Expand Down Expand Up @@ -65,11 +66,10 @@ settings.py
)

import os
STATIC_ROOT = os.path.join(MEDIA_ROOT, 'static')
STATIC_URL = MEDIA_URL + 'static/'
STATICFILES_MEDIA_DIRNAMES = (
'static',
)
BASE_DIR = os.path.abspath(os.path.dirname(__file__))

STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATIC_URL = '/static/'
STATICFILES_FINDERS = (
'staticfiles.finders.FileSystemFinder',
'staticfiles.finders.AppDirectoriesFinder',
Expand Down Expand Up @@ -106,6 +106,11 @@ urls.py
(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', {'packages': ('fiber',),}),
...

if settings.DEBUG:
urlpatterns += patterns('staticfiles.views',
url(r'^static/(?P<path>.*)$', 'serve'),
)


Post-installation:
==================
Expand Down

0 comments on commit e197453

Please sign in to comment.