Skip to content

Instantly share code, notes, and snippets.

@salilpa
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salilpa/ea37e8a88f299b72ecfd to your computer and use it in GitHub Desktop.
Save salilpa/ea37e8a88f299b72ecfd to your computer and use it in GitHub Desktop.
django-ajax-selects JS and CSS files are not loaded

For some reason the required css and js files were not loaded for the default installation.

This is how i solved it.

  1. add jquery ui jss and css files
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" />
  1. add ajax_select.js and ajax_select.css to your static directory and serve via
<script src="{% static 'ajax_select/js/ajax_select.js' %}"></script>
<link rel="stylesheet" href="{% static 'ajax_select/css/ajax_select.css' %}"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment