Done
On Wednesday, April 15, 2020 at 6:55:37 PM UTC+5:30, Motaz Hejaze wrote:
>
> no standard for this , but thinking out loud with you ..
>
> you can make a many to many model ( table ) of 3 columns , first column
> will be user id , second column will be object id , third column will be
> numb
how can i use model x values as choices for model y ?
for eg:
class countries(models.Model):
country = models.CharField(max_length=200)
def __str__(self):
return self.country
class User(AbstractUser):
"""User model."""
username = None
full_name = models.CharField(_("Full Name"), max_leng
using django.VERSION (2, 1, 5, 'final', 0) with
python 3.7.2 on ubuntu 16.04
Given the URL pattern below:
path('', ArticleDetailView.as_view(), name='article_detail'),
And the view as below:
class ArticleDetailView(DetailView):
model = Article
template_name = 'article_detail.html'
Greetings of the day,
I have defined a model admin inheriting from admin.ModelAdmin class. There
is one of the fields which I want to show on the admin dashboard which is a
function. I read in Django docs that for a callable function to be a field,
it should be added in readonly_fields. So far
cool man
i was trying exactly the same thing... if you try to get it work then post
it here please.
On Wednesday, April 15, 2020 at 6:55:37 PM UTC+5:30, Motaz Hejaze wrote:
>
> no standard for this , but thinking out loud with you ..
>
> you can make a many to many model ( table ) of 3 columns ,
no standard for this , but thinking out loud with you ..
you can make a many to many model ( table ) of 3 columns , first column
will be user id , second column will be object id , third column will be
number of visits ( integer initial value 0 ) , every time the object view
is called you'll que
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
> yet compatible with Djang
I'm using django 3.x.
Anyother simple implementation ?
i just want to get number of times a particular user has viewed an object.
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
> yet compatible
I am writing a view that retrieve an answer from game2.html, then check the
answer; if the answer is correct, the view will redirect user to
correct.html, if the answer is incorrect, then user will be redirected to
incorrect.html.
The problem now is after clicking the submit button, user won't
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 count package will he
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" group.
> To unsubscribe fro
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
12 matches
Mail list logo