A Django app to conduct generic search on a django web application.
Project description
Django Generic Search is a Django app to conduct generic search on your site’s pages. Visitors on your site can search for any available pages on your side given they new or can guess accurately keywords or search queries related to thos pages.
Detailed documentation is in the “docs” directory.
Quick start
Install the package using pip.
$ pip install django-generic-search
Add “django-generic-search” to your INSTALLED_APPS setting like this
INSTALLED_APPS = [
...
'generic-search',
]
Include the django-generic-search URLconf in your project urls.py like this
path('search/', include('generic-search.urls')),
include settings below in project settings.py
ALLOWED_HOSTS = [
'localhost',
]
SPYDER_START_URLS = {
'gammaspider': ['https://localhost:8000/']
}
When in production, update the settings above appropriately to reflect your production environment.
Run python manage.py crawlsite to create an index of the available pages on your site.
Start the development server and visit http://127.0.0.1:8000/
Visit http://127.0.0.1:8000/search/?q=<search-query> to retrieve search results.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-generic-search-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2674943b7b272b6112f1f4a57f7997b87c9be7bdf51981fd9bde96027db033bb |
|
MD5 | d259e8001c728700006dfadd39aad1f5 |
|
BLAKE2b-256 | 699efe5ae19dac2f6386e32f637fae5cff8fadcce527407a020d0bf7d1aa1a25 |
Hashes for django_generic_search-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09bc6f5bea9c7a0c9af44bdf889a825f48a8b5d1d98d395c7b0908843bcb9bb1 |
|
MD5 | 0296af8a23dc2cef364ff617772f3442 |
|
BLAKE2b-256 | 1835864e51859a09b12c6560df0960d342eaa08703654e8ed146c964794114e6 |