Static stuff.

master
Nick Sergeant 2014-10-20 20:43:49 -04:00
parent ac932e85e5
commit 816445d743
5 changed files with 8 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -82,6 +82,7 @@ html, body {
background: #F2F2F2;
}
body {
background: red !important;
color: #666;
font: normal 14px/16px $Helvetica;
text-rendering: optimizeLegibility;

View File

@ -76,7 +76,7 @@ SITE_ID = 1
STATICFILES_DIRS = (os.path.join(BASE_PATH, 'media'),)
STATICFILES_FINDERS = ('django.contrib.staticfiles.finders.FileSystemFinder','django.contrib.staticfiles.finders.AppDirectoriesFinder',)
STATIC_ROOT = os.path.join(BASE_PATH, 'static')
STATIC_URL = '/static/'
STATIC_URL = 'https://snipt.s3.amazonaws.com/'
TASTYPIE_CANNED_ERROR = "There was an error with your request. The site developers have a record of this error, please email api@snipt.net and we'll help you out."
TEMPLATE_DIRS = (os.path.join(PROJECT_PATH, 'templates'))
TEMPLATE_DEBUG = DEBUG

View File

@ -67,3 +67,7 @@ urlpatterns = patterns('',
url(r'^', include('snipts.urls')),
)
urlpatterns += patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/Users/Nick/Code/snipt/media'}),
)