Database Reference
In-Depth Information
(chp09-env)$ pip install
simplejson
(chp09-env)$ pip install
vectorformats
• Use the following command for Windows:
(chp09-env) C:\virtualenvs>
pip install simplejson
(chp09-env) C:\virtualenvs>
pip install vectorformats
How to do it...
You will now create the front page of your web application, as follows:
1. GotothedirectorycontainingtheDjangowildlifewebapplicationandaddthe
following lines to the urls.py file under chp09/wildlife/wildlife :
from django.conf.urls import patterns,
include, url
from django.conf import settings
from sightings.views import get_geojson,
home
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/',
include(admin.site.urls)),
(r'^geojson/', get_geojson),
(r'^$', home),
)
Search WWH ::




Custom Search