frontpage
This commit is contained in:
parent
daa39b6862
commit
e29b29885c
BIN
openmumbai/media/images/logo.jpg
Normal file
BIN
openmumbai/media/images/logo.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
|
@ -1 +1,7 @@
|
||||||
# Create your views here.
|
# Create your views here.
|
||||||
|
from django.template import RequestContext
|
||||||
|
from django.shortcuts import render_to_response
|
||||||
|
|
||||||
|
def index(request):
|
||||||
|
context = RequestContext(request, {})
|
||||||
|
return render_to_response("index.html", context)
|
||||||
|
|
|
@ -4,7 +4,7 @@ from os.path import join
|
||||||
|
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
TEMPLATE_DEBUG = DEBUG
|
TEMPLATE_DEBUG = DEBUG
|
||||||
|
LOCAL_DEVELOPMENT = True
|
||||||
JSON_DEBUG = False
|
JSON_DEBUG = False
|
||||||
APPEND_SLASH = True
|
APPEND_SLASH = True
|
||||||
#XSENDFILE = False
|
#XSENDFILE = False
|
||||||
|
|
18
openmumbai/templates/index.html
Normal file
18
openmumbai/templates/index.html
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>OpenMumbai</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<P ALIGN=CENTER><IMG SRC="/media/images/logo.jpg" NAME="OpenMumbai" BORDER=0>
|
||||||
|
</P>
|
||||||
|
<BR><BR>
|
||||||
|
<P ALIGN=CENTER><FONT SIZE=4>Open Mumbai
|
||||||
|
Website Coming Soon!</FONT></P>
|
||||||
|
<P ALIGN=CENTER><FONT SIZE=4>Follow us on
|
||||||
|
<A HREF="http://twitter.com/openmumbai">Twitter @openmumbai</A></FONT></P>
|
||||||
|
<P ALIGN=CENTER><FONT SIZE=4>Please visit our
|
||||||
|
public exhibition open daily at the <BR><A HREF="http://www.nehru-centre.org/">Nehru
|
||||||
|
Centre</A>, Dr Annie Besant Road, Worli, Mumbai 400018</FONT></P>
|
||||||
|
</body>
|
||||||
|
</HTML>
|
|
@ -3,6 +3,8 @@ from django.conf.urls.defaults import patterns, include, url
|
||||||
# Uncomment the next two lines to enable the admin:
|
# Uncomment the next two lines to enable the admin:
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
admin.autodiscover()
|
admin.autodiscover()
|
||||||
|
import settings
|
||||||
|
from os.path import join
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
# Examples:
|
# Examples:
|
||||||
|
@ -11,8 +13,15 @@ urlpatterns = patterns('',
|
||||||
|
|
||||||
# Uncomment the admin/doc line below to enable admin documentation:
|
# Uncomment the admin/doc line below to enable admin documentation:
|
||||||
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
||||||
|
url(r'^$', 'places.views.index', name='index'),
|
||||||
# Uncomment the next line to enable the admin:
|
# Uncomment the next line to enable the admin:
|
||||||
url(r'^admin/', include(admin.site.urls)),
|
url(r'^admin/', include(admin.site.urls)),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
if settings.LOCAL_DEVELOPMENT:
|
||||||
|
urlpatterns += patterns('',
|
||||||
|
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': join(settings.PROJECT_ROOT, "static")}),
|
||||||
|
(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': join(settings.PROJECT_ROOT, "media")}),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user