index page is up. pretty much stable , db table added from rev13, settings.py from rev12

This commit is contained in:
Johnson Chetty 2011-12-28 00:35:50 +05:30
parent 43d96beadc
commit ed0ab33e8a
5 changed files with 47 additions and 34 deletions

View File

@ -52,29 +52,18 @@ USE_L10N = True
# Absolute path to the directory that holds media. # Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/" # Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = join(PROJECT_ROOT, 'media') MEDIA_ROOT = join(PROJECT_ROOT, 'static')
# URL that handles the media served from MEDIA_ROOT. Make sure to use a # 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). # trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/" # Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '/media/' MEDIA_URL = ''
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash. # trailing slash.
# Examples: "http://foo.com/media/", "/media/". # Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/admin/media/' ADMIN_MEDIA_PREFIX = '/admin/media/'
STATIC_ROOT = join(PROJECT_ROOT, 'static')
STATIC_URL = '/static/'
STATICFILES_DIRS = (
)
GRAPPELLI_ADMIN_TITLE = '<a href="/">ChaloBEST</a>'
#GRAPPELLI_INDEX_DASHBOARD = "demo.dashboard.CustomIndexDashboard"
# Make this unique, and don't share it with anybody. # Make this unique, and don't share it with anybody.
try: try:
SECRET_KEY SECRET_KEY
@ -101,20 +90,6 @@ TEMPLATE_LOADERS = (
# 'django.template.loaders.eggs.Loader', # 'django.template.loaders.eggs.Loader',
) )
STATICFILES_FINDERS = ("django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder"
)
TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.i18n',
'django.core.context_processors.request',
'django.core.context_processors.media',
'django.core.context_processors.static',
'django.contrib.messages.context_processors.messages',
)
MIDDLEWARE_CLASSES = ( MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware', 'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
@ -138,8 +113,6 @@ INSTALLED_APPS = (
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.sites', 'django.contrib.sites',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles',
'grappelli',
# Uncomment the next line to enable the admin: # Uncomment the next line to enable the admin:
'django.contrib.admin', 'django.contrib.admin',
# Uncomment the next line to enable admin documentation: # Uncomment the next line to enable admin documentation:

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -1 +1,30 @@
change me <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ChaloBEST</title>
</head>
<body bgcolor="#000000">
<body link="white" vlink="white" alink="white">
<font color="white">
<center>
<div>
<img src="logo.png">
</div>
<div>
<h3>Free and simple tools to find bus routes in Mumbai, coming soon to your phone.</h3>
<h3>Try out our <a href="http://m.chalobest.in">mobile website</a>, <a href="http://sms.chalobest.in">SMS service</a>, and <a href="http://droid.chalobest.in">Android application</a>.</h3>
<br><br>
<p>Want to get involved or learn more? Check out our <a href="http://wiki.chalobest.in">project wiki</a> or join our <a href="http://gnowledge.org/cgi-bin/mailman/listinfo/smsbest">mailing list</a>.
<br>
<p><a href="http://chalobest.in">ChaloBEST</a> is a collaboration of <a href="http://mesn.org">Mumbai Environmental Social Network (MESN)</a>, <a href="http://sparcsys.com">SPARC Systems</a>, <a href="http://camputer.org">CAMP</a>, and <br> <a href="http://www.hbcse.tifr.res.in">Homi Bhabha Centre for Science Education, TIFR</a>, with support from <a href="http://bestundertaking.com">BEST (Brihanmumbai Electric Supply & Transport Undertaking)</a>.</p>
</center>
</font>
</body>
</body>
</html>

View File

@ -7,10 +7,11 @@ admin.autodiscover()
urlpatterns = patterns('', urlpatterns = patterns('',
# Example: # Example:
# (r'^chaloBEST/', include('chaloBEST.foo.urls')), # (r'^chaloBEST/', include('chaloBEST.foo.urls')),
url(r'^$','chaloBEST.views.index', name='index'),
# Uncomment the admin/doc line below to enable admin documentation: # Uncomment the admin/doc line below to enable admin documentation:
(r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^grappelli/', include('grappelli.urls')), #(r'^grappelli/', include('grappelli.urls')),
# Uncomment the next line to enable the admin: # Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)), (r'^admin/', include(admin.site.urls)),
) )

10
chaloBEST/views.py Normal file
View File

@ -0,0 +1,10 @@
from django.shortcuts import redirect
from django.shortcuts import render_to_response
from django.shortcuts import get_object_or_404
from django.http import HttpResponse
import json
from os.path import join
def index(request):
return render_to_response('index.html', {} )