You can create a directory called stdimage in your TEMPLATE_DIR, and create a file called admin_widget with the following contents (or modify it according to your needs):
<table style="border-style: none;">
<tbody>
<tr>
<td style="vertical-align: middle;">Currently: </td>
<td>
<a href="{{ MEDIA_URL }}/{{ value }}" target="_blank">{{value}}</a>
</td>
</tr>
<tr>
<td style="vertical-align: middle;">Change: </td>
<td>
{{ input }}
</td>
</tr>
{% if show_delete_button %}
<tr>
<td style="vertical-align: middle;">Delete: </td>
<td>
<input type="checkbox" name="{{name}}_delete">
</td>
</tr>
{% endif %}
</tbody>
Judy
On Wednesday, March 7, 2012 10:29:21 AM UTC-5, randa hisham wrote:
--i use django-stdimage package and when i display the object n the admin i found this error--Caught TemplateDoesNotExist while rendering: stdimage/admin_widget.html
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment