Wednesday, April 29, 2015

Re: selectfilter2 javascript and django


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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d7a6ac80-cc94-4c02-80b4-99217866ef01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment