Skip to content

Commit 83f89e1

Browse files
authored
Merge pull request #282 from leogout/patch-2
Added installation instructions (#279)
2 parents c4db361 + f4bab09 commit 83f89e1

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,41 @@
1212

1313
http://django-ajax-selects.readthedocs.org/en/latest/
1414

15+
## Installation
16+
17+
`pip install django-ajax-selects`
18+
19+
Add the app:
20+
21+
```py
22+
# settings.py
23+
INSTALLED_APPS = (
24+
...
25+
'ajax_select', # <- add the app
26+
...
27+
)
28+
```
29+
Include the urls in your project:
30+
31+
```py
32+
# urls.py
33+
from django.conf.urls import url, include
34+
from django.conf.urls.static import static
35+
from django.contrib import admin
36+
from django.conf import settings
37+
from ajax_select import urls as ajax_select_urls
38+
39+
admin.autodiscover()
40+
41+
urlpatterns = [
42+
43+
# place it at whatever base url you like
44+
url(r'^ajax_select/', include(ajax_select_urls)),
45+
46+
url(r'^admin/', include(admin.site.urls)),
47+
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
48+
```
49+
1550
## Quick Usage
1651

1752
Define a lookup channel:

0 commit comments

Comments
 (0)