1. John Costa
  2. example-webfaction-deploy

Commits

John Costa  committed 1754692

a few tweeks to make it work

  • Participants
  • Parent commits db14e4f
  • Branches default

Comments (0)

Files changed (2)

File sample_project/local_settings.template

View file
  • Ignore whitespace
+DEBUG=False
 STATIC_ROOT = '/Users/jcosta/projects/example-webfaction-deploy/sample_project/static_root'
 STATICFILES_DIRS = (
     '/Users/jcosta/projects/example-webfaction-deploy/sample_project/static',
 STATIC_URL = '/static/'
 TEMPLATE_DIRS = (
     '/Users/jcosta/projects/example-webfaction-deploy/sample_project/templates',
-)
+)

File sample_project/urls.py

View file
  • Ignore whitespace
 from django.conf.urls.defaults import *
+from django.contrib.staticfiles.urls import staticfiles_urlpatterns
 
 from sample_app.views import home
 
 urlpatterns = patterns('',
     url(r'^$', home, name='home'),
 )
+
+urlpatterns += staticfiles_urlpatterns()