|
Revision 55, 0.5 KB
(checked in by scater, 3 years ago)
|
|
clear to use version with readme
|
| Line | |
|---|
| 1 | django.org.ua |
|---|
| 2 | |
|---|
| 3 | 1. add to urls.py: |
|---|
| 4 | url(r'^google_search/$', 'plesonet_google_search.views.search', name="google_search"), |
|---|
| 5 | |
|---|
| 6 | 2.add search form to your template: |
|---|
| 7 | <form action="{% url google_search %}" method="get" id="id_search_form"> |
|---|
| 8 | <input type="text" name="search" value="поиск" /> |
|---|
| 9 | <input type="submit" value="" /> |
|---|
| 10 | </form> |
|---|
| 11 | |
|---|
| 12 | 3. edit templates/plesonet_google_search/google_search.html with your design |
|---|
| 13 | 4. add to SETTINGS new option GOOGLE_SEARCH_KEY (get it from http://code.google.com/intl/en/apis/ajaxsearch/signup.html) |
|---|
| 14 | 5. enjoy |
|---|