Hi,
> I've set up my Media class for a widget as such:
>
> class InternationalSlugWidget(forms.TextInput):
> class Media:
> js = ('js/international_slug.js')
Your js here is a string, you want a tuple:
js = ('js/international_slug.js',)
>>> type(('foo'))
>>> type(('foo',))
--
Problem solved, my fault - just noticed it was expecting to traverse a
tuple;
js = ('js/international_slug.js',) fixed the problem
On May 7, 10:16 am, kRON wrote:
> Sorry for the repost, somehow I've submitted the form.
>
> I just wanted to add that my media url looks as MEDIA_URL = '/media/'
>
Sorry for the repost, somehow I've submitted the form.
I just wanted to add that my media url looks as MEDIA_URL = '/media/'
Can anyone steer me the right way for fixing this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
I've set up my Media class for a widget as such:
class InternationalSlugWidget(forms.TextInput):
class Media:
js = ('js/international_slug.js')
The problem is Django keeps pumping out the following import
statements:
...etc
My media root string looks
--~--~-~--~~-
4 matches
Mail list logo