File tree 1 file changed +35
-0
lines changed 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 12
12
13
13
http://django-ajax-selects.readthedocs.org/en/latest/
14
14
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
+
15
50
## Quick Usage
16
51
17
52
Define a lookup channel:
You can’t perform that action at this time.
0 commit comments