Context Navigation

This tutorial will show you the basic of Django when we will make a google search engine front end in the framework. I've googled out an interesting python module called ​web_search which allows to get search results from few search engines and dmoz.

Download web_search.py from that page

Create a new project called “google”

django-admin.py startproject google

Create a new application called "searchengine":

python manage.py startapp searchengine

Put web_search.py file in searchengine folder

Create templates folder in the main project folder

Edit settings.py and set TEMPATES_DIR to:

TEMPLATE_DIRS = (
'templates/'
)

Start the development server:

python manage.py runserver 8080

We have preconfigured django project that is ready for the search engine code. We will have to make a template with a form where we will be able to enter the search term, and display the results if any.