Autocomplete is not working when 'DEBUG' is set to False

30 views
Skip to first unread message

oa

unread,
Apr 6, 2015, 8:24:21 PM4/6/15
to django-s...@googlegroups.com
Dear All,

I am new to Selectable. I have functioning application written in Django using Selectable. 

It works fine when DEBUG=True, however when DEBUG is set to False for deployment, autocomplete function is not working. In addition, the form appearance is distinguishably different. 

This behavior is observed with the example application that comes with the installation as well. Therefore, I believe that it is either something related to Selectable module or some more general setting problem of my Django platform.

I greatly appreciate any help on this.

Thank you,

O.A.

Mark Lavin

unread,
Apr 7, 2015, 9:11:20 AM4/7/15
to django-s...@googlegroups.com
When DEBUG is False then Django will not serve the CSS/JS necessary for the autocomplete to work. You would need to have another webserver configured to serve those files in your production environment. See the Django docs on serving static files in production https://docs.djangoproject.com/en/1.8/howto/static-files/deployment/

--
You received this message because you are subscribed to the Google Groups "django-selectable" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-selecta...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages