Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed server errors in production

  • Loading branch information...
commit 2abc986edc31abcd556d888050958c5ec322a185 1 parent ac12e68
Matthew Fisher authored
Showing with 5 additions and 2 deletions.
  1. +3 −1 settings.py
  2. +2 −1  stackato.yml
View
4 settings.py
@@ -3,7 +3,7 @@
import sys
import urlparse
-DEBUG = False
+DEBUG = True
TEMPLATE_DEBUG = DEBUG
ROOT = os.path.abspath(os.path.dirname(__file__))
@@ -73,11 +73,13 @@
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = os.path.join(ROOT, 'static')
+STATIC_ROOT = os.path.join(ROOT, 'media')
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '/static/'
+STATIC_URL = '/media/'
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
View
3  stackato.yml
@@ -14,11 +14,12 @@ min_version:
client: 1.4.3
services:
${name}-db: mysql
- ${name}-memcache: memcached
+ ${name}-memcached: memcached
hooks:
post-staging:
- python manage.py syncdb --noinput
- python manage.py migrate --noinput
+ - python manage.py collectstatic --noinput
- echo "Run 'stackato run python manage.py createsuperuser' to create an admin user"
ignores:
- .git
Please sign in to comment.
Something went wrong with that request. Please try again.