Changes between Version 1 and Version 2 of searchengine
- Timestamp:
- Aug 14, 2006, 3:32:37 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
searchengine
v1 v2 2 2 3 3 - Download '''web_search.py''' from that page 4 4 5 - Create a new project called “google” 5 6 … … 12 13 }}} 13 14 - Put '''web_search.py''' file in '''searchengine''' folder 15 14 16 - Create '''templates''' folder in the main project folder 17 15 18 - Edit '''settings.py''' and set TEMPATES_DIR to: 16 19 {{{ … … 47 50 }}} 48 51 We have a simple view which returns a template “search.html” if no POST data is available and redirects to the / main page when the POST data is available. 52 49 53 - Hook the view to the main URL by editing '''urls.py''' and entering the code: 50 54