Skip to content

Commit

Permalink
Changed settings.py and pinax.wsgi to deploy properly (for real this …
Browse files Browse the repository at this point in the history
…time)
  • Loading branch information
dp committed Aug 17, 2010
1 parent 8132940 commit f30a3bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*.pyc
dev.db

*.log
1 change: 1 addition & 0 deletions deploy/pinax.wsgi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import site
from os.path import abspath, dirname, join
from site import addsitedir

# Virtualenv env is at the same level as the repo directory
site_packages = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'env/lib/python2.6/site-packages')
site.addsitedir(os.path.abspath(site_packages))

Expand Down
9 changes: 5 additions & 4 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# tells Pinax to use the default theme
PINAX_THEME = "default"

DEBUG = True
DEBUG = False
TEMPLATE_DEBUG = DEBUG

# tells Pinax to serve media through the staticfiles app.
Expand All @@ -31,7 +31,7 @@
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3", # Add "postgresql_psycopg2", "postgresql", "mysql", "sqlite3" or "oracle".
"NAME": "dev.db", # Or path to database file if using sqlite3.
"NAME": "/home/dp/djangopackages/db/dev.db", # Or path to database file if using sqlite3.
"USER": "", # Not used with sqlite3.
"PASSWORD": "", # Not used with sqlite3.
"HOST": "", # Set to empty string for localhost. Not used with sqlite3.
Expand Down Expand Up @@ -82,7 +82,8 @@
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = posixpath.join(STATIC_URL, "admin/")
# ADMIN_MEDIA_PREFIX = posixpath.join(STATIC_URL, "admin/")
ADMIN_MEDIA_PREFIX = "/site_media/admin/"

# Make this unique, and don't share it with anybody.
SECRET_KEY = "ud%a+c#@@d5k!t_)mpw!+58fztyhk_sq%c5s0p5_je-wixy#$k"
Expand All @@ -107,7 +108,7 @@
#"debug_toolbar.middleware.DebugToolbarMiddleware",
]

ROOT_URLCONF = "urls"
ROOT_URLCONF = "djangopackages.urls"

TEMPLATE_DIRS = [
os.path.join(PROJECT_ROOT, "templates"),
Expand Down

0 comments on commit f30a3bd

Please sign in to comment.