1. pombredanne
  2. django-autocomplete


Luke Plant  committed f315ec8

Fixed serving of static files with Django 1.3, and documented how to do it.

  • Participants
  • Parent commits b3de7a5
  • Branches default

Comments (0)

Files changed (2)

File autocomplete/models.py

View file
  • Ignore whitespace
+# Empty models.py, necessary for autocomplete to be found as an app, which is
+# needed for serving static files.

File docs/installation.rst

View file
  • Ignore whitespace
 In order to work properly Django AutoComplete needs some javascript files.
 These files are contained in the :file:`autocomplete/media` directory and
-*must* be served from your ``{{ MEDIA_URL }}``.
+*must* be served from your ``{{ STATIC_URL }}``. This is easiest to achieve
+by adding ``'autocomplete'`` to your ``INSTALLED_APPS`` and using
+the built-in support for static files in Django 1.3 and above.
 .. note::