Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid block tag: 'multiupform' #18

Open
kartikdanidhariya opened this issue Jun 24, 2015 · 2 comments
Open

Invalid block tag: 'multiupform' #18

kartikdanidhariya opened this issue Jun 24, 2015 · 2 comments

Comments

@kartikdanidhariya
Copy link

hi ,
i am using your package for multiupload
i added url in url.py
added "multiuploader" in install app in setting.py

add view in my views.py
def multi_show_uploaded(request, key):
image = get_object_or_404(MultiuploaderImage, key_data=key)
url = settings.MEDIA_URL+image.image.name
return render_to_response('multiuploader/one_image.html', {"multi_single_url":url,})

after whem i add template tag in my tempalate

{% load multiuploader %}
{% multiupform %}

so it gives error
"TemplateSyntaxError at /en/product/add_product/

Invalid block tag: 'multiupform', expected 'elif', 'else' or 'endif'"

Anything is remain for configure your package so please let me know

Is it required to define model in my models.py or not?
I am not define any models in models.py

in doc i read that
Add a way to specify which model to use to store files.
so pls tell me where i specify that which model to use to store files.
Should i create my separate models or not

Please help
Thanks in Advance!!

@garmoncheg
Copy link
Owner

I suspect the problem is in your template somewhere.
try to remove your tag and place some dummy tag. E.g.
{# comment #} instead of {% multiupform %}
Instead. This will bring up your template error.

On Jun 24, 2015, at 8:17 AM, kartikdanidhariya [email protected] wrote:

hi ,
i am using your package for multiupload
i added url in url.py
added "multiuploader" in install app in setting.py

add view in my views.py
def multi_show_uploaded(request, key):
image = get_object_or_404(MultiuploaderImage, key_data=key)
url = settings.MEDIA_URL+image.image.name
return render_to_response('multiuploader/one_image.html', {"multi_single_url":url,})

after whem i add template tag in my tempalate

{% load multiuploader %}
{% multiupform %}

so it gives error
"TemplateSyntaxError at /en/product/add_product/

Invalid block tag: 'multiupform', expected 'elif', 'else' or 'endif'"

Anything is remain for configure your package so please let me know

Please help
Thanks in Advance!!


Reply to this email directly or view it on GitHub #18.

@ajoyoommen
Copy link

Same issue. And it is not an error in my template. The error goes away as soon as I remove {% multiupform %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants