1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43# Django Docs Workflow for Alfred



[](https://github.com/sponsors/techouse)
Search the [Django documentation](https://docs.djangoproject.com/) using [Alfred](https://www.alfredapp.com/).

## Installation
1. [Download the latest version](https://github.com/techouse/alfred-django-docs/releases/latest)
2. Install the workflow by double-clicking the `.alfredworkflow` file
3. You can add the workflow to a category, then click "Import" to finish importing. You'll now see the workflow listed in the left sidebar of your Workflows preferences pane.
## Usage
Just type `dj` followed by your search query.
```
dj FormView
```
Either press `โY` to Quick Look the result, or press `<enter>` to open it in your web browser.
## Changing Branches
The workflow supports searching the documentation of all the currently officially supported branches.
By default, it searches the latest stable branch. To search branch `4.2` or `3.2` simply type `v4.2` or `v3.2` anywhere in your query, like so:
```
dj v4.2 as_p
```
### Note
The lightning fast search is powered by [Algolia](https://www.algolia.com) which was generous enough to hand me a big
enough plan to fit all the indices for the officially supported Django documentation versions.
A big thank you to [@redox](https://github.com/redox) from [@algolia](https://github.com/algolia) :innocent: :beers: :heart:
The index for Algolia was compiled from the zipped Django HTML documentation using a [simple Python script](https://github.com/techouse/django-docs-parser) I wrote.