Re: ORM - Subquery / Window

2018-06-07 Thread marco . nicotra
As suggested i'm writing what i've already tried: Raw SQL using the query written in the first message, selecting only the id field and passing it to the ORM as id__in=ids. Slow as hell, unusable. Declared a WIndow function to use as filter: Article.objects.annotate(max_rev=Window(expression=Ma

what does the below mentioned error means and how do i resolve this error.something is wrong with my admin.py file.Please comment:

2018-06-07 Thread Avitab Ayan Sarmah
In windows powershell: ERRORS: : (admin.E108) The value of 'list_display[0]' refers to 'question_text', which is not a callable, an attribute of 'QuestionAdmin', or an attribute or method on 'polls.Question'. : (admin.E108) The value of 'list_display[1]' refers to 'pub_date', which is not a cal

Re: Some problems with running django

2018-06-07 Thread 曹逍遙
Hello Julio Biason I just changed my host name That's right, it's really a question of the host name. Now normal startup~~ Thank you very much Thank you very much 👍 [image: Mailtrack] Sender not

Re: bootstrap to the login template

2018-06-07 Thread G.R. Nobles
I went down the django-widget-tweaks route to solve it. Thanks. Sign in https://lh5.googleusercontent.com/-b0-k99FZlyE/AAI/AAA/eu7opA4byxI/photo.jpg?sz=120"; alt=""> {% block content %} {% load widget_tweaks %} {% i

Re: bootstrap to the login template

2018-06-07 Thread C. Kirby
I do it this way (Note this is Bootstrap 4a3 and I do some offer the error indication differently {% csrf_token %} Login

Re: bootstrap to the login template

2018-06-07 Thread C. Kirby
{% csrf_token %} Login {% if form.errors %}

Re: is this my correct results.html and detail.html code?i am only a beginer, please check

2018-06-07 Thread C. Kirby
Everything that TonyF said, but also - your choice.votes|pluralize tag will not work - tags need to be all on online from open to closing braces On Wednesday, June 6, 2018 at 1:01:05 PM UTC-4, Avitab Ayan Sarmah wrote: > > results.html: > > {{ question.question_text }} > > > {% for choice in que

Re: bootstrap to the login template

2018-06-07 Thread Melvyn Sopacua
On woensdag 6 juni 2018 22:58:50 CEST G.R. Nobles wrote: > Below are two forms, the login form (top) and a bootstrap form (bottom), > I'm trying to apply bootstrap to the login page, how can I integrate > bootstrap onto the login objects, e.g. {{ form.username }} is the entire > textbox, so I'm at

Re: Some problems with running django

2018-06-07 Thread Julio Biason
Hi, I took a longer look at the error and it seems the error raised when the server was starting up. The code tries to figure out your machine name -- a thing that's stored, on Linux systems, on /etc/hostname and on OS X on Settings -> Sharing -- and *that* name has special characters (I'd guess i

ORM - Subquery / Window

2018-06-07 Thread marco . nicotra
Hello everyone, i want to extract the records with Max("revision") from a table like this: pn1rev1description pn1rev2description pn2rev1anotherdescription pn1rev3description pn2rev2anotherdescription The first column is a part number, the second is its rev

Re: Simple django api

2018-06-07 Thread Django Girls Bauchi
Anybody??? On Wed, Jun 6, 2018, 3:32 AM Django Girls Bauchi wrote: > JWT, auto generated user Id(alphanumeric), email, and full name > Thanks > > On Wed, Jun 6, 2018, 3:30 AM Satyam Soni > wrote: > >> Its simple. Postman is simply a tool. All you need to create an api. What >> kind of data you

Re: Progress bar with celery

2018-06-07 Thread Jason
I assume you're having issues with your celery task, but you don't give any specifics. One skill that is invaluable to master in any field is how to ask a good question, regardless of what language you're using. Check out https://stackoverflow.com/help/how-to-ask for some tips. -- You receiv

Re: Progress bar with celery

2018-06-07 Thread Christian Ledermann
How did you try to do that? I am puzzled and have actually no idea what you are trying to do. Or is the question why is my celery task not running? On Thu, 7 Jun 2018 at 05:30, Mohammed Noor wrote: > Hello guys, > > I have been trying to create a progress bar in my django application using > cel

Re: Accessing the model attribute of UpdateView & friends

2018-06-07 Thread Mikkel Kromann
Thanks Daniel. I actually tried to implement it in the __init__ but it didn't work. I'll read through your explanation more carefully - I'm sure I could use a bit better understanding on the ways of Python and Django :) Again, thank you for your very useful replies cheers, Mikkel torsdag den 7.