Skip to main content

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

django-generic-search-1.0.0.tar.gz (11.5 kB view hashes)

Uploaded Source

Built Distribution

django_generic_search-1.0.0-py3-none-any.whl (15.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page