summaryrefslogtreecommitdiff
path: root/greenbox
diff options
context:
space:
mode:
Diffstat (limited to 'greenbox')
-rw-r--r--greenbox/settings.py23
-rw-r--r--greenbox/urls.py6
-rw-r--r--greenbox/wsgi.py32
3 files changed, 39 insertions, 22 deletions
diff --git a/greenbox/settings.py b/greenbox/settings.py
index a0096ed..939f396 100644
--- a/greenbox/settings.py
+++ b/greenbox/settings.py
@@ -1,20 +1,12 @@
1import os 1import os
2 2
3PROJECT_DIR = os.path.dirname(__file__) 3PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
4PUBLIC_DIR = os.path.join(PROJECT_DIR, 'site_media') 4PUBLIC_DIR = os.path.join(os.path.dirname(__file__), 'site_media')
5 5
6SITE_ID = 1 6SITE_ID = 1
7USE_I18N = False 7USE_I18N = False
8DEBUG = True 8TEMPLATE_DEBUG = DEBUG = True
9TEMPLATE_DEBUG = DEBUG
10
11PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
12
13ADMINS = (
14 ('Mike Crute', 'mcrute@gmail.com'),
15)
16 9
17MANAGERS = ADMINS
18 10
19DATABASES = { 11DATABASES = {
20 'default': { 12 'default': {
@@ -27,10 +19,6 @@ TIME_ZONE = 'America/New_York'
27LANGUAGE_CODE = 'en-us' 19LANGUAGE_CODE = 'en-us'
28ROOT_URLCONF = 'greenbox.urls' 20ROOT_URLCONF = 'greenbox.urls'
29 21
30
31MEDIA_ROOT = os.path.join(PUBLIC_DIR, 'media')
32MEDIA_URL = '/site_media/media/'
33
34STATIC_ROOT = os.path.join(PUBLIC_DIR, 'static') 22STATIC_ROOT = os.path.join(PUBLIC_DIR, 'static')
35STATIC_URL = '/site_media/static/' 23STATIC_URL = '/site_media/static/'
36 24
@@ -60,8 +48,3 @@ INSTALLED_APPS = (
60 'south', 48 'south',
61 'recipe', 49 'recipe',
62) 50)
63
64try:
65 from settings_local import *
66except ImportError:
67 pass
diff --git a/greenbox/urls.py b/greenbox/urls.py
index fb38894..1e6b755 100644
--- a/greenbox/urls.py
+++ b/greenbox/urls.py
@@ -1,5 +1,7 @@
1from django.conf.urls.defaults import patterns, include, url 1from django.conf.urls import patterns, include, url
2from django.contrib import admin; admin.autodiscover() 2
3from django.contrib import admin
4admin.autodiscover()
3 5
4urlpatterns = patterns('', 6urlpatterns = patterns('',
5 url(r'^admin/', include(admin.site.urls)), 7 url(r'^admin/', include(admin.site.urls)),
diff --git a/greenbox/wsgi.py b/greenbox/wsgi.py
new file mode 100644
index 0000000..0e2d030
--- /dev/null
+++ b/greenbox/wsgi.py
@@ -0,0 +1,32 @@
1"""
2WSGI config for imd project.
3
4This module contains the WSGI application used by Django's development server
5and any production WSGI deployments. It should expose a module-level variable
6named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
7this application via the ``WSGI_APPLICATION`` setting.
8
9Usually you will have the standard Django WSGI application here, but it also
10might make sense to replace the whole Django WSGI application with a custom one
11that later delegates to the Django one. For example, you could introduce WSGI
12middleware here, or combine a Django application with an application of another
13framework.
14
15"""
16import os
17
18# We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks
19# if running multiple sites in the same mod_wsgi process. To fix this, use
20# mod_wsgi daemon mode with each site in its own daemon process, or use
21# os.environ["DJANGO_SETTINGS_MODULE"] = "imd.settings"
22os.environ.setdefault("DJANGO_SETTINGS_MODULE", "greenbox.settings")
23
24# This application object is used by any WSGI server configured to use this
25# file. This includes Django's development server, if the WSGI_APPLICATION
26# setting points here.
27from django.core.wsgi import get_wsgi_application
28application = get_wsgi_application()
29
30# Apply WSGI middleware here.
31# from helloworld.wsgi import HelloWorldApplication
32# application = HelloWorldApplication(application)