template tag help please?

classic Classic list List threaded Threaded
21 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: template tag help please?

Tosin Ayoola
good day guys I'm working on a project but currently I'm having
issues, which is I created a model to save some images files & I
created a template to display the images but the issue now is for loop
isn't displaying the files at the template

On 8/23/18, Tosin Ayoola <[hidden email]> wrote:

> this is the link https://github.com/olaneat/ask_the_schools will rili b
> glad if u can help
>
>
> On Thu, Aug 23, 2018 at 2:31 PM Tosin Ayoola <[hidden email]>
> wrote:
>
>> i have the code on git actually because i'm trying to get the add a file
>> at the admin page but i'm getting the error
>>
>>
>> On Thu, Aug 23, 2018 at 2:17 PM ireoluwa fakeye <[hidden email]>
>> wrote:
>>
>>> Sorry didn't look at it well ,can I see a screen shot of your code
>>>
>>> On Thu, 23 Aug 2018, 14:10 Tosin Ayoola, <[hidden email]> wrote:
>>>
>>>> not properly routing my urls as in, i don't understand
>>>>
>>>> On Thu, Aug 23, 2018 at 2:06 PM ireoluwa fakeye <[hidden email]>
>>>> wrote:
>>>>
>>>>> You Are not properly routing your  urls
>>>>>
>>>>> On Thu, 23 Aug 2018, 14:03 Tosin Ayoola, <[hidden email]>
>>>>> wrote:
>>>>>
>>>>>> good day please i'm having issues, attached below is one of the error
>>>>>> i'm getting also ive been trying to add bootstrap glyphicon to my
>>>>>> project
>>>>>> but it just display the text without the glyphicon,
>>>>>>
>>>>>> On Fri, Aug 17, 2018 at 12:54 PM MikeKJ <[hidden email]>
>>>>>> wrote:
>>>>>>
>>>>>>> I want to pass 2 variables to a templatetag from within a template,
>>>>>>> a
>>>>>>> name and a date (eg, John 29/09/2018) to output the result of the
>>>>>>> templatetag def.
>>>>>>>
>>>>>>> The reason I want to do this is:
>>>>>>>
>>>>>>> From a list of all names:
>>>>>>>
>>>>>>> The name comes from a model that has a foreign key to another model
>>>>>>> that has actions performed by that name by date and I want to output
>>>>>>> the
>>>>>>> action taken on that date so something like:
>>>>>>>
>>>>>>> from django import template
>>>>>>> from django.conf import settings
>>>>>>> from django.utils.html import escape
>>>>>>> from user.models import person
>>>>>>> from action.models import data
>>>>>>>
>>>>>>> def (get_action):
>>>>>>>     action = Data.objects.get.filter(person=name).filter(date=date)
>>>>>>>     return action
>>>>>>>
>>>>>>> but how do I pass the variables in the 1st place please?
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> 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 [hidden email].
>>>>>>> To post to this group, send email to [hidden email].
>>>>>>> Visit this group at https://groups.google.com/group/django-users.
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/django-users/8d7b9f60-9f88-41c6-8fec-cf858d7e6574%40googlegroups.com
>>>>>>> <https://groups.google.com/d/msgid/django-users/8d7b9f60-9f88-41c6-8fec-cf858d7e6574%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>> --
>>>>>> 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 [hidden email].
>>>>>> To post to this group, send email to [hidden email].
>>>>>> Visit this group at https://groups.google.com/group/django-users.
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/django-users/CAHLKn714iMAzyE%3DaXn_tyJQos-xLWPrWS6BEfFq013%3DS-rmShA%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/django-users/CAHLKn714iMAzyE%3DaXn_tyJQos-xLWPrWS6BEfFq013%3DS-rmShA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> --
>>>>> 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 [hidden email].
>>>>> To post to this group, send email to [hidden email].
>>>>> Visit this group at https://groups.google.com/group/django-users.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/CAO87g13Nmssbp_VPv6ktJmpRrSOasusm%2BvPnDhKGZe_o9yBZ%2BQ%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAO87g13Nmssbp_VPv6ktJmpRrSOasusm%2BvPnDhKGZe_o9yBZ%2BQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> --
>>>> 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 [hidden email].
>>>> To post to this group, send email to [hidden email].
>>>> Visit this group at https://groups.google.com/group/django-users.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAHLKn70NnEcJLNH5-8nnc%2B90TaTx3iqCiXuiVAdd6xop_teX7g%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAHLKn70NnEcJLNH5-8nnc%2B90TaTx3iqCiXuiVAdd6xop_teX7g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> 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 [hidden email].
>>> To post to this group, send email to [hidden email].
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAO87g10CtF%3Dj7C5ZbGYSKX1J7DFRNPDgfbLBAwNVXhWYPmdS0w%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAO87g10CtF%3Dj7C5ZbGYSKX1J7DFRNPDgfbLBAwNVXhWYPmdS0w%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHLKn73TXQvwS7fM6P7T1OxF5Px4N1_vRMdwVUTbMY0SREX2Kw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
12