Skip to content

Commit

Permalink
Initial import of stub project.
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxfish committed Mar 26, 2011
0 parents commit 6f5d687
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
@@ -0,0 +1,7 @@
*.pyc
*.swp
*.swo
django
djangoappengine
djangotoolbox
.gaedata
Empty file added __init__.py
Empty file.
15 changes: 15 additions & 0 deletions app.yaml
@@ -0,0 +1,15 @@
application: fairdiceroll
version: 1
runtime: python
api_version: 1

handlers:
- url: /_ah/stats/.*
script: djangoappengine/appstats/ui.py

- url: /media/admin
static_dir: django/contrib/admin/media
expiration: '0'

- url: /.*
script: djangoappengine/main/main.py
11 changes: 11 additions & 0 deletions manage.py
@@ -0,0 +1,11 @@
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
sys.exit(1)

if __name__ == "__main__":
execute_manager(settings)
33 changes: 33 additions & 0 deletions settings.py
@@ -0,0 +1,33 @@
from djangoappengine.settings_base import *

import os

SECRET_KEY = '=r-$b*8hglm+858&9tq43hlm6-&6-3d3vfc4((7yd0dbrakhvi'

INSTALLED_APPS = (
# 'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.auth',
'django.contrib.sessions',
'djangotoolbox',

# djangoappengine should come last, so it can override a few manage.py commands
'djangoappengine',
)

MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)

TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.request',
'django.core.context_processors.media',
)

ADMIN_MEDIA_PREFIX = '/media/admin/'
TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), 'templates'),)

ROOT_URLCONF = 'urls'
1 change: 1 addition & 0 deletions templates/home.html
@@ -0,0 +1 @@
You are home.
8 changes: 8 additions & 0 deletions urls.py
@@ -0,0 +1,8 @@
from django.conf.urls.defaults import *

handler500 = 'djangotoolbox.errorviews.server_error'

urlpatterns = patterns('',
('^$', 'django.views.generic.simple.direct_to_template',
{'template': 'home.html'}),
)

0 comments on commit 6f5d687

Please sign in to comment.