On Wed, Dec 26, 2012 at 6:07 PM, Jonathan <jonathandavidba...@gmail.com>wrote:

>  I think you've got the right idea with regard to structure and
> separation of concerns, and my next step would be to write 'recent polls'
> as an inclusion tag so that it can be reused on various templates that
> aren't necessarily directly concerned with the polls app. This allows you
> to maintain the integrity of your 'core' app views while still utilizing
> data from neighbouring apps, as you've described.
>
>
> https://docs.djangoproject.com/en/dev/howto/custom-template-tags/#inclusion-tags
>

Thank you Jonathan, I did consider the use of an inclusion tag, but the
inclusion tag's code lies within the poll app and is being referenced/used
by the 'core' app's templates. Is it acceptable to do such a thing when it
comes to templates?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to