Thursday, March 26, 2020

Re: selectfilter2 javascript and django

Thank you so much for providing the solution, it solved my problem as well.

On Wednesday, April 29, 2015 at 6:34:25 AM UTC-7, Dimitris Kougioumtzis wrote:

ok i found it

in the urls.py i add  the

 (r'^jsi18n/$', 'django.views.i18n.javascript_catalog'),


and in template

<script type="text/javascript" src="/jsi18n/" > </script>



Τη Τετάρτη, 29 Απριλίου 2015 - 4:12:56 μ.μ. UTC+3, ο χρήστης Dimitris Kougioumtzis έγραψε:
i want to use the selectfilter  widget for a view , the user in my django application is only active not staff because i want to restrict access to django admin pages. But selectfilter widget dosen't  work



the error i get is 


SyntaxError: expected expression, got '<'
/admin/jsi18n/ (line 1)
4
ReferenceError: interpolate is not defined


how to use selectfilter functionality to other views in django application other tha the admin


thx a lot

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/984326f4-6ae1-4704-bc28-c33dac44be1f%40googlegroups.com.

No comments:

Post a Comment