On 23/05/2024 6:12 pm, Shaheed Haque wrote:
Hi,
As happens from time-to-time, I see the 5.1 alpha recently announced
has increased the iteration count for the PBKDF2 password hasher (from
720k to 870k), and the putative release notes for 5.2 mention a
further increase (to 1M).
I assume
Hi,
As happens from time-to-time, I see the 5.1 alpha recently announced has
increased the iteration count for the PBKDF2 password hasher (from 720k to
870k), and the putative release notes for 5.2 mention a further increase
(to 1M).
I assume this iteration count has something to do with the
Hi Everyone,
This is the output i get used this code
https://groups.google.com/d/msgid/django-users/95dedc5d-5f24-4b57-b525-248c01953bddn%40googlegroups.com.
Hi,
Is there a way to get all model objects, but including count of some of
them within one db transaction.
Say, I have this model:
class AModel(models.Model):
field_choices = (
(0, "a"),
(1, "b"),
(2, "c")
)
field_one =
:30:59 UTC+2 sali...@rohteksolutions.com
> wrote:
>
>> When user click to like a post the web page should not refresh(redirect)
>> and count of the likes should be updated.
>> How can I achieve this please help me.
>>
>> Here is my block of code
>> ```
>> &g
You'll need to use javascript for this - have a look
at https://data-flair.training/blogs/ajax-in-django/ for an example.
On Wednesday, 5 May 2021 at 05:30:59 UTC+2 sali...@rohteksolutions.com
wrote:
> When user click to like a post the web page should not refresh(redirect)
> and c
When user click to like a post the web page should not refresh(redirect)
and count of the likes should be updated.
How can I achieve this please help me.
Here is my block of code
```
```
views.py
```
def post_comment_like(request, id):
if
Hi Everyone,
Can you please look into below Stackoverflow question and let me know how I
can define
count list in *DB *and use it in view and reset it based on some time
duration.
Now I have defined it globally and it is working fine but the problem is
when else block is executing it is not
ts.annotate(key=Lower('keyword')).values('key'
))
sponsored_books = models.SponsoredBook.objects.annotate(tit=Lower(
'keywords__title')).filter(tit__in=sub).annotate(points=Count('id')).
order_by('points')[:6]
all_sponsored_books = models.SponsoredBook
I think this in template will help you.
Total Table Numbers
{{tableNumber_total}}
On Tue, May 26, 2020 at 10:50 AM Saurabh Adhikary
wrote:
> I want to create a custom function which will get modified into a sql
> querry and will work like Count ...i.e. for every row of the qu
I want to create a custom function which will get modified into a sql
querry and will work like Count ...i.e. for every row of the queryset
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop
Okeyy you are welcomeSent from Samsung tablet.
Original message From: Kushal Neupane
Date: 30/04/2020 16:43 (GMT+03:00) To: django-users@googlegroups.com Subject:
Re: How to count total number of student to display in template Thank you
sir.😊On Thu, Apr 30, 2020, 19:28
;:Tt_student }
> Return render(request, "your templete here", context)
>
> In you templete render it as
> {{ Tt_student }}
>
>
>
> Sent from Samsung tablet.
>
>
> Original message
> From: Kushal Neupane
> Date: 30/04/2020 1
ete render it as {{ Tt_student
}}Sent from Samsung tablet.
Original message From: Kushal Neupane
Date: 30/04/2020 16:20 (GMT+03:00) To: Django users
Subject: How to count total number of student
to display in template The following are the models and template where i w
The following are the models and template where i wnat to display the
count. The displayed is static. Now, i wanna make dynamic. Thank you. Help
me.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this grou
id and put
>> number_of_visits column = 1
>>
>> On Wed, Apr 15, 2020 at 2:29 PM shreehari Vaasistha L <
>> shreeh...@gmail.com> wrote:
>>
>>> Thank you!
>>> But can there be any simple implementation as i just want to count
>>> number of tim
te:
>
>> Thank you!
>> But can there be any simple implementation as i just want to count number
>> of times a user has viewed a post
>>
>> On Wednesday, April 15, 2020 at 5:48:36 PM UTC+5:30, Tim Wilson wrote:
>>>
>>> I'm planning to use django
sits column = 1
>
> On Wed, Apr 15, 2020 at 2:29 PM shreehari Vaasistha L > wrote:
>
>> Thank you!
>> But can there be any simple implementation as i just want to count number
>> of times a user has viewed a post
>>
>> On Wednesday, April 15, 2020 at 5:4
a new row with object.id and user.id and put
number_of_visits column = 1
On Wed, Apr 15, 2020 at 2:29 PM shreehari Vaasistha L <
shreehari9...@gmail.com> wrote:
> Thank you!
> But can there be any simple implementation as i just want to count number
> of times a user has viewed a p
Thank you!
But can there be any simple implementation as i just want to count number
of times a user has viewed a post
On Wednesday, April 15, 2020 at 5:48:36 PM UTC+5:30, Tim Wilson wrote:
>
> I'm planning to use django-hitcount too, but please be aware that it's not
>
not
> yet compatible with Django 3.x. There's a patch that needs to be applied
> and a release forthcoming that should take care of it.
>
> -Tim
>
> On Wed, Apr 15, 2020, at 4:38 AM, Omkar Parab wrote:
>
> Django hit count package will help you..
>
> On W
I'm planning to use django-hitcount too, but please be aware that it's not yet
compatible with Django 3.x. There's a patch that needs to be applied and a
release forthcoming that should take care of it.
-Tim
On Wed, Apr 15, 2020, at 4:38 AM, Omkar Parab wrote:
> Django hit
Django hit count package will help you..
On Wed, Apr 15, 2020, 1:09 PM shreehari Vaasistha L
wrote:
> how can i get the number of views of an endpoint by a single user.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users"
how can i get the number of views of an endpoint by a single user.
--
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+unsubscr...@googlegroups.com.
To
ls to multiple email IDs in
>> different scenarios, Is there a way to get the count of emails sent
>> everyday instead of storing it in tables.
>>
>> Regards,
>> Santhosh
>>
>> --
>> You received this message because you are subscribed to the Google Groups
&g
You can use some 3rd party apis
On Fri, 13 Mar 2020, 4:42 pm Santhosh sridhar,
wrote:
> Hi,
> I am working on django and I trigger emails to multiple email IDs in
> different scenarios, Is there a way to get the count of emails sent
> everyday instead of storing it in tables.
Hi,
I am working on django and I trigger emails to multiple email IDs in
different scenarios, Is there a way to get the count of emails sent
everyday instead of storing it in tables.
Regards,
Santhosh
--
You received this message because you are subscribed to the Google Groups
"Django
Hi We are worlds first affordable Python, Django Based Web Developement
Startup.
And can help you in this and related tasks / projects immidiately mere at
$7 per hour.
On Mon, 2 Dec 2019 at 19:13, xiaopeng luo wrote:
> I am new to django ORM, I want query something like this:
>
> input:
> AAA
You need to do some little reading about Django aggregation
https://docs.djangoproject.com/en/2.2/topics/db/aggregation/#topics-db-aggregation
Example
from django.db.models import Max, Count, Sum
Publisher.objects.values('name').annotate(*dcount*=Count('name'))
As seen
What you want to hear please cear that one..
Thanks
On Mon, 2 Dec 2019, 19:13 xiaopeng luo, wrote:
> I am new to django ORM, I want query something like this:
>
> input:
> AAAfemale1
> AAAfemale2
> BBBmale 1
> BBBmale 3
> AAAmale 2
>
>
>
> output
>
I am new to django ORM, I want query something like this:
input:
AAAfemale1
AAAfemale2
BBBmale 1
BBBmale 3
AAAmale 2
output
AAAfemale3
AAAmale 2
BBBmale 4
Sorry, my english is not good. Thanks for everyone help me.
--
Hi Folks,
I want to increase count value of a record after ftech the record each time
in django rest framework.
*This is my model.py*
*class Dataset(models.Model):name = models.CharField(max_length = 100)
number = models.IntegerField()hits = models.IntegerField(default = 0)*
*api
Thansk
Il giorno sab 8 giu 2019 alle ore 09:03 Derek ha
scritto:
> Can you use:
>
>
> https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#django.contrib.admin.ModelAdmin.show_full_result_count
>
>
> On Monday, 3 June 2019 14:48:23 UTC+2, Michele Gatti wrote:
>>
>> Hi i need to disable pagin
Can you use:
https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#django.contrib.admin.ModelAdmin.show_full_result_count
On Monday, 3 June 2019 14:48:23 UTC+2, Michele Gatti wrote:
>
> Hi i need to disable paginato on django admin with not managed model.
> Is possible?
>
--
You received th
Hi i need to disable paginato on django admin with not managed model.
Is possible?
--
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+unsubscr...@googl
o python and django.
> I am using Python 3.6.5, Django 2.1 and Channels 2.1.2.
> My problem is when I switch to ASGI from WSGI server, in every request,
> thread count is increasing. Same thing is happening when I use
> sync_to_async function in consumers.py. Is this a normal behaviour?
&
Hi,
I followed the channels documentation, you can check from here:
https://channels.readthedocs.io/en/latest/tutorial/part_1.html
After completing this part, in every page refresh, thread count is
increasing at top 23.
16 Eylül 2018 Pazar 06:05:02 UTC+3 tarihinde vs704263 yazdı:
>
> I
n every request,
> thread count is increasing. Same thing is happening when I use
> sync_to_async function in consumers.py. Is this a normal behaviour?
>
> Thanks,
> Erkin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django use
Hi All,
I am new to python and django.
I am using Python 3.6.5, Django 2.1 and Channels 2.1.2.
My problem is when I switch to ASGI from WSGI server, in every request,
thread count is increasing. Same thing is happening when I use
sync_to_async function in consumers.py. Is this a normal
Subject: Validating count + property of a Many2Many with a through table
Hello!
This is more of a code organization question than a "something is not working"
question - it might get slightly rambling, so if this kind of question is not
your cup of tea, you have been warned :-)
So
Hello!
This is more of a code organization question than a "something is not
working" question - it might get slightly rambling, so if this kind of
question is not your cup of tea, you have been warned :-)
So - I have a set of models like this (highly simplified):
class Item(models.Model):
tit
Actually, I tried to do it that way but I never got it working. Not sure
what is different now but this is what I have working for me now:
qs = qs.values('make').annotate(model_count=Count('model', distinct=True)).
annotate(
more_than_one_model=Case(
When(mod
try making two separate annotates: one for count and one for the case-when
qs.values('make')
.annotate(count = Count('model', distinct = True))
.annotate(Case(When(count__gt = 1, then='yes', output_field=CharField())
Basically, you need to transform the c
ther there is more than one model within each group of cars of a
specific make.
SELECT
make,
CASE WHEN COUNT(DISTINCT model) > 1 THEN 'yes' ELSE 'no' END AS
more_than_one_model
FROM myapp_car
GROUP BY make
I know how to group on make and count unique models s
qs = Car
: PASCUAL Eric
Cc: django-users@googlegroups.com
Subject: Re: importError: Count Not import Django inside Virtualenv
Hi Eric,
Le 2018-02-14 à 03:44, PASCUAL Eric a écrit :
Hi,
Hard to say without knowing the exact context, but my gut feeling is that
you've modified a system wide library
From: django-users@googlegroups.com on behalf
of tango ward
Sent: Wednesday, February 14, 2018 10:09:51 AM
To: django-users@googlegroups.com
Subject: Re: importError: Count Not import Django inside Virtualenv
that's odd. Whenever I test a pacakge, it's always installe
like this... ;-)
Cheers,
Etienne
*From:* django-users@googlegroups.com
on behalf of tango ward
*Sent:* Wednesday, February 14, 2018 3:40:04 AM
*To:* django-users@googlegroups.com
*Subject:* Re: importError: Count Not imp
for projects
> related libs, for the same reasons.
>
>
> Eric
> --
> *From:* django-users@googlegroups.com on
> behalf of tango ward
> *Sent:* Wednesday, February 14, 2018 3:40:04 AM
> *To:* django-users@googlegroups.com
> *Subject:* Re: importError: Count Not impor
_
From: django-users@googlegroups.com on behalf
of tango ward
Sent: Wednesday, February 14, 2018 3:40:04 AM
To: django-users@googlegroups.com
Subject: Re: importError: Count Not import Django inside Virtualenv
Hi Eric,
I tried what you suggested and it works! I was just wondering why my exi
the trick) and
>> test your app again.
>>
>>
>> Hoping you haven't already messed your system Python by installing stuff
>> in sudo mode. The situation could be a little more complicated then.
>>
>>
>> Best.
>>
>>
>> Eric
>> --
messed your system Python by installing stuff
> in sudo mode. The situation could be a little more complicated then.
>
>
> Best.
>
>
> Eric
> --
> *From:* django-users@googlegroups.com on
> behalf of tango ward
> *Sent:* Tuesday, Febru
ated then.
Best.
Eric
From: django-users@googlegroups.com on behalf
of tango ward
Sent: Tuesday, February 13, 2018 9:43:45 PM
To: django-users@googlegroups.com
Subject: importError: Count Not import Django inside Virtualenv
Hi,
I want to seek some advice about the error.
if pip freeze doesn't include django in the output, then the django package
is not installed in the virtualenv. are you sure the virtualenv was active
when you installed django?
also, remember that if you installed latest django, eg *pip install django*,
it won't install for python2 venvs.
On
Hi,
I want to seek some advice about the error. All of my pet projects in my
desktop are getting the same error even though virtualenv is activated. I
can confirm that when I started playing around with the projects, I have
installed Django inside virtualenv without using "sudo". Now, I can't run
apply and I want to save only the count of selected checkboxes and
save it to the QuestionAnswer model.
Form
class MultiAnswerForm(forms.ModelForm):
qanswer_answer = forms.MultipleChoiceField(choices=MULTIANSWER,
required=True, widget=forms.CheckboxSelectMultiple)
class Meta
If I'm creating a query using Q, can I make one of Q tests, be a count of a
manytomany field?I.e., one of the Q filters, should test to see if a
specific manytomany field, has a count greater than 5, I know that I can
use annotate to test for count. But can annotate be specified w
t the side effects of it, nothing so
far...
class FasterCountQuerySet(QuerySet):
> def count(self):
> return super(FasterCountQuerySet, self.values('pk')).count()
>
Makes me wonder if the original count code can be made "smarter" in order
to prevent the un
s not possible since the query also sorts by the
annotated value, so an annotation is required.
This means that I would need to use a custom lookup for count queries, and
annotation for result queries, which would mean a lot of duplicated code
and also that the Django Paginator class can't be
gt; way easier and provide help for users in the situation as you.
>
> Best,
> Simon
>
> Le vendredi 24 novembre 2017 08:14:10 UTC-5, Cristiano Coelho a écrit :
>>
>> Hello Simon,
>>
>> That private API is good to know, but now that I think of it would still
>
Le vendredi 24 novembre 2017 08:14:10 UTC-5, Cristiano Coelho a écrit :
>
> Hello Simon,
>
> That private API is good to know, but now that I think of it would still
> not work for me, since my queryset is passed to a paginator and that's the
> class that does both the count
Hello Simon,
That private API is good to know, but now that I think of it would still
not work for me, since my queryset is passed to a paginator and that's the
class that does both the count and actual queryset execution, so need a
queryset that can have both the annotation but also clea
Hello Cristiano,
> Isn't there a way (even if it's hackish) to simply clear the annotations
(and order by)? I know querysets are smart enough to not include the order
by clause if there's a count.
The ordering is cleared on `count()` because it shouldn't interfere with
Hello Simon, thanks for the response.
The above code is just an example, the reason behind the annotate because
there's some complicated code that builds a queryset and annotates it so it
can easily be reused. It works fine 99% of the time except when there's a
count involved and
are
performing your `count()` because some annotations could interfere with
grouping
somehow.
There is an open ticket[0] to add support for an `alias()` method that would
allow the ORM to clear/ignore the specified expressions if it's not
referenced
in the query.
In the mean time I think the
Hmm, should I try with the dev mailing list? Guess it's something no one
faced before?
El martes, 14 de noviembre de 2017, 22:54:23 (UTC-3), Cristiano Coelho
escribió:
>
> I'm getting some very odd query when combining annotate with count. See
> the f
I'm getting some very odd query when combining annotate with count. See the
following:
>>> q =
> Vulnerability.objects.annotate(score=WordTrigramCustomSimilarity('test','summary'))
> >>> q.count()
> 3094
> >>> print
Hi ,
I was trying to do server side paging and wanted to send the totalcount of
items along with itemPerPage..I have attached my code.Can anyone suggest
how to do it??
Thanks in Advance.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To uns
On Wednesday, July 5, 2017 at 3:59:41 PM UTC+3, bob gailer wrote:
>
> On Jul 5, 2017 6:55 AM, "elloy" > wrote:
> >
> > I need your help with a problem I'm trying to solve
> > I'm making a questionnaire and I have to count the selected choices that
On Jul 5, 2017 6:55 AM, "elloy" wrote:
>
> I need your help with a problem I'm trying to solve
> I'm making a questionnaire and I have to count the selected choices that
the user have checked in a certain question with 5 possible answers(choices)
> The mod
I need your help with a problem I'm trying to solve
I'm making a questionnaire and I have to count the selected choices that
the user have checked in a certain question with 5 possible answers(choices)
The model I'm using is:
class Reuse(models.Model):
REUSE_OPTIONS = (
Please, I need your help because I'm trying to solve a problem
I'm making a questionnaire and I want to count the number of the selected
choices in a certain question
The model I'm using is:
class Reuse(models.Model):
REUSE_OPTIONS = (
('1', 'first c
On Wednesday 31 May 2017 12:13:48 'Abraham Varricatt' via Django users
wrote:
> If I want to get the total count from both tables it can be done like
> this,
>
> author_count = Author.objects.count()
> publisher_count = Publisher.objects.count()
>
> My conc
supported database backends. In the case of a simple
COUNT(*) query, even with multiple tables involved, the SQL statement is
likely portable across any of the included backends.
My intention was to say that using the ORM will better guarantee that the
call is portable, not necessarily saying that raw
Schneider escreveu:
If I want to get the total count from both tables it can be done
like this,
|
author_count =Author.objects.count()
publisher_count =Publisher.objects.count()
|
My concern is that this results in two different queries to the
database. Can it be d
sure that it wouldn't be possible
with the ORM.
Thanks for replying!
Looking into caches,
Abraham V.
On Wednesday, 31 May 2017 16:31:04 UTC-4, Matthew Pava wrote:
>
> Hi Abraham,
>
> If the models are related, you can use double underscore notation with the
> Count
Hi Abraham,
If the models are related, you can use double underscore notation with the
Count aggregate function.
If the models are unrelated, then I’m fairly certain that you can only use
separate queries to get your results.
From: 'Abraham Varricatt' via Django users
[mailto:dj
>
>
> If I want to get the total count from both tables it can be done like this,
>
> author_count = Author.objects.count()
> publisher_count = Publisher.objects.count()
>
> My concern is that this results in two different queries to the database.
> Can it be do
Hello,
Is it possible to get the count of entries from multiple tables in a single
query call? I'm looking at the official docs on aggregation and I can't
find anything. For example assume I have the following 2 tables,
class Author(models.Model):
name = models.CharField(max_
hy not Google Analytics?
>
> On 3/8/17, ludovic coues wrote:
> > Have you looked at an analytics solution like piwik ?
> >
> > 2017-03-08 6:40 GMT+01:00 carlos :
> >> Daniel, no i say i used django for a website with high traffic maybe 70k
> >> per
> >&
Maybe I'm missing something, but why not Google Analytics?
On 3/8/17, ludovic coues wrote:
> Have you looked at an analytics solution like piwik ?
>
> 2017-03-08 6:40 GMT+01:00 carlos :
>> Daniel, no i say i used django for a website with high traffic maybe 70k
>> per
Have you looked at an analytics solution like piwik ?
2017-03-08 6:40 GMT+01:00 carlos :
> Daniel, no i say i used django for a website with high traffic maybe 70k per
> days, but i need count visit page like
> django-hitocunts but the problems like django-hitcount is not for a websi
Daniel, no i say i used django for a website with high traffic maybe 70k
per days, but i need count visit page like
django-hitocunts but the problems like django-hitcount is not for a website
high traffic, the database is very slow ans the website down
my question is exist any method, third party
Hi Carlos,
You email is a little unclear. Are you suggesting I should not use Django for
a web backend?
Let me know!
Thanks,
Daniel
> On Mar 7, 2017, at 3:38 PM, carlos wrote:
>
> Hi,
> i try used django-hitcount but really not for website high traffic
> any advice for co
On Tue, Mar 7, 2017 at 6:38 PM, carlos wrote:
> Hi,
> i try used django-hitcount but really not for website high traffic
> any advice for count visits/hits page for 60k or 100k traffic for day
>
> thank any idea, link or whatever helps
>
>
My vote would be for somethin
Hi,
i try used django-hitcount but really not for website high traffic
any advice for count visits/hits page for 60k or 100k traffic for day
thank any idea, link or whatever helps
--
att.
Carlos Rocha
--
You received this message because you are subscribed to the Google Groups
"Django
ango.contrib.flatpages.middleware.FlatpageFallbackMiddleware')
>> >
>> > Traceback:
>> > File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in
>> > get_response
>> > 132. response = wrapped_callback(requ
n
> > _wrapped_view
> > 22. return view_func(request, *args, **kwargs)
> > File "C:\Python27\lib\site-packages\django\views\generic\base.py" in
> view
> > 71. return self.dispatch(request, *args, **kwargs)
> > File "C:\Python27\l
t; in
> dispatch
> 89. return handler(request, *args, **kwargs)
> File "C:\Python27\lib\site-packages\django\views\generic\base.py" in get
> 158. context = self.get_context_data(**kwargs)
> File "C:\Users\AliKhan\supermarket\market\dashboard\catalogue\views.py" i
ontext_data
77. ctx = super(ProductListView, self).get_context_data(**kwargs)
File "C:\Python27\lib\site-packages\django_tables2\views.py" in
get_context_data
107. table = self.get_table(**self.get_table_kwargs())
File "C:\Users\AliKhan\supermarket\market\dashboard\catalogue\
y. However the admin site is publicly available through an
NGINX server. The REST API already has functionality to count failed login
attempts and I would like to duplicate that functionality on the admin
login page. How do I hook into the admin login page and add the
appropriate code? Can I still
wrote:
>
> Hello, I have a REST API which is not publicly accessible as it is behind
> a proxy. However the admin site is publicly available through an NGINX
> server. The REST API already has functionality to count failed login
> attempts and I would like to duplicate that funct
proxy. However the admin site is publicly available through an NGINX
> server. The REST API already has functionality to count failed login
> attempts and I would like to duplicate that functionality on the admin
> login page. How do I hook into the admin login page and add the
> a
Hello, I have a REST API which is not publicly accessible as it is behind a
proxy. However the admin site is publicly available through an NGINX
server. The REST API already has functionality to count failed login
attempts and I would like to duplicate that functionality on the admin
login
)
class Meta:
db_table = 'snippet_comment'
verbose_name = "Comment of snippet"
verbose_name_plural = "Comments of snippet"
get_latest_by = 'date_created'
ordering = ['snippet', '
I am trying to detect languages, so far I have used langdetect, langid. I
heard goslate is blocked by Google, is there any package as good as
goslate? It was simple and direct? Or would you recommend a python package
for detecting languages and counting words?
Thanks in advance,
Allison
--
gt; wrote:
> >
> > Hi all,
> > We have develop a site where we need to maintain page view count like
> SO, Quora,YouTube etc. Current approach is based on number of retrieval
> using view this leads to problem to user that they are seeing that when a
> page is re
On Feb 7, 2016 7:03 PM, "sonu kumar" wrote:
>
> Hi all,
> We have develop a site where we need to maintain page view count like SO,
Quora,YouTube etc. Current approach is based on number of retrieval using
view this leads to problem to user that they are seeing that when a pa
Hi all,
We have develop a site where we need to maintain page view count like SO,
Quora,YouTube etc. Current approach is based on number of retrieval using
view this leads to problem to user that they are seeing that when a page is
reloaded then count get's incremented see here
test=ball.objects.filter(request="checked").count()
> c = RequestContext(request, {'test': test})
> return HttpResponse(t.render(c))
>
>
> On Wednesday, January 27, 2016 at 11:12:19 PM UTC+2, suabiut wrote:
>>
>> Version 1.7
>>
>>
from django.http import HttpResponse
from django.template import loader, RequestContext
def foreginexchange_view(request):
t = loader.get_template("template.html")
test=ball.objects.filter(request="checked").count()
c = RequestContext(request, {'test':
1 - 100 of 387 matches
Mail list logo