Re: use of annotate in django query

2021-06-02 Thread lalit suthar
this will do Customer_Requests.objects.values("arrival_date").annotate(num_req=Count("request_name")).order_by("-id")[:30:-1] On Thursday, 3 June 2021 at 11:37:26 UTC+5:30 abubak...@gmail.com wrote: > to display last 30 records you can write your code like this: > Customer_Requests.objects.all(

Browser based extension for shopping deals and coupons

2021-06-02 Thread Ram
Hi, Many of you know browser extensions like honey, rauketen, couponcabin, price blink and etc. I would like to know what kind of technology they use to extract shopping deals and coupons from different online retailers and ecommerce sites. We are developing web app and currently using APIs to int

Re: SVG widget for the Admin

2021-06-02 Thread Mike Dewhirst
On 3/06/2021 4:00 pm, Derek wrote: > > E.g. > > class MyModel(): >     svg_text = CharField() in my case it is ... class Chemical(models.Model):     ...     ddstructure = models.TextField(     null=True,     blank=True,     verbose_name="2D structure",     ) The above is unchange

Re: use of annotate in django query

2021-06-02 Thread DJANGO DEVELOPER
to display last 30 records you can write your code like this: Customer_Requests.objects.all()[-30] On Thu, Jun 3, 2021 at 10:51 AM Eugene TUYIZERE wrote: > Dear Latit, > > Thank you very much. Now how can I display 30 last records? Regardless of > how many records I may have ! Just the last 30 r

Re: SVG widget for the Admin

2021-06-02 Thread Derek
Hi Mike OK, if you have more specific feedback I will try to respond. I doubt you need a specific template as the SVG should be displayable by a modern browser using Django's built-in options. On Thursday, 3 June 2021 at 01:10:07 UTC+2 Mike Dewhirst wrote: > Derek > > I pretty much tried what

Re: use of annotate in django query

2021-06-02 Thread Eugene TUYIZERE
Dear Latit, Thank you very much. Now how can I display 30 last records? Regardless of how many records I may have ! Just the last 30 records! Thank you On Thu, 3 Jun 2021 at 06:51, Lalit Suthar wrote: > > in brief, I want to transform this query in django query > this will be equivalent to thi

Re: use of annotate in django query

2021-06-02 Thread Lalit Suthar
> in brief, I want to transform this query in django query this will be equivalent to this query in django Customer_Requests.objects.values("arrival_date").annotate(num_req=Count("request_name")) On Thu, 3 Jun 2021 at 02:02, Eugene TUYIZERE wrote: > in brief, I want to transform this query in d

Re: SVG widget for the Admin

2021-06-02 Thread Mike Dewhirst
DerekI pretty much tried what you suggested. I dont have access to my machine atm so that's all I can really say. I looked at the link and understand the list customisation because I already use it elsewhere. It does look like I'll have to switch in my own template so I can include a safe filter

Re: use of annotate in django query

2021-06-02 Thread Eugene TUYIZERE
in brief, I want to transform this query in django query [image: image.png] On Wed, 2 Jun 2021 at 21:56, Eugene TUYIZERE wrote: > Dear Sebatian, > > This is what I get: > > SELECT `crms_customer_requests`.`arrival_date`, > COUNT(`crms_customer_requests`.`request_name`) AS `count` FROM > `crms_c

Re: use of annotate in django query

2021-06-02 Thread Eugene TUYIZERE
Dear Sebatian, This is what I get: SELECT `crms_customer_requests`.`arrival_date`, COUNT(`crms_customer_requests`.`request_name`) AS `count` FROM `crms_customer_requests` WHERE `crms_customer_requests`.`arrival_date` >= 2021-05-03 GROUP BY `crms_customer_requests`.`arrival_date` ORDER BY NULL SEL

Re: use of annotate in django query

2021-06-02 Thread Sebastian Jung
Hi Eugene, Please make Print(report.query) then you get SQL querys and Most of time i get an Idea what's wrong Regards Eugene TUYIZERE schrieb am Mi., 2. Juni 2021, 21:41: > Dear Team, > > I need help. I am working on a project where one of the tables is about > requests. I want to have a repo

use of annotate in django query

2021-06-02 Thread Eugene TUYIZERE
Dear Team, I need help. I am working on a project where one of the tables is about requests. I want to have a report of the number of requests on each day in the last 30 days, something like this: [image: image.png]I I used the code below just before displaying on the chart but the code gives me w

Re: CSS not linking with HTML

2021-06-02 Thread Robert Edward
Plus is it 'syle' or 'style' On Wed, Jun 2, 2021, 20:26 Robert Edward wrote: > You are missing a closing (') when loading style.css > > On Fri, May 28, 2021, 21:39 sukhy gill wrote: > >> Dear Frnds >> I am unable to link CSS with HTML >> HTML working but CSS not working inside

Re: CSS not linking with HTML

2021-06-02 Thread Robert Edward
You are missing a closing (') when loading style.css On Fri, May 28, 2021, 21:39 sukhy gill wrote: > Dear Frnds > I am unable to link CSS with HTML > HTML working but CSS not working inside the .html file with the help of > LINK in tag > > I am using thefollowings:- > Setting.p

Re: CSS not linking with HTML

2021-06-02 Thread Michael Thomas
I'm guessing you're running a development server (manage.py runserver). I'd suggest solving this as a two step process: 1) Determine if the request for the static file is actually hitting the development server or not (eg. if you're running behind a reverse proxy) 2) Fire up your debugger and walk

Re: CSS not linking with HTML

2021-06-02 Thread sukhy gill
Dear frnd, I am getting stuck at same point with static with new project. May I get setting for settings.py ? Regards On Sat, May 29, 2021, 18:29 Chelsea Fan Is it working now? > > On Sat, 29 May 2021, 3:40 pm lalit suthar, > wrote: > >> read this https://docs.djangoproject.com/en/2.2

Re: Джанго проект

2021-06-02 Thread Chelsea Fan
Антонио Меле " джанго 2 в примерах" On Wed, 2 Jun 2021, 5:43 pm КОРШУНОВ ГЕОРГИЙ, wrote: > Всем привет, я начинающий разработчик. Где я могу почитать полный, > подробный гид по использованию фреймворка джанго? Минимум воды, максимум > эффективной информации, подскажите пожалуйста. > > -- > You r

Джанго проект

2021-06-02 Thread КОРШУНОВ ГЕОРГИЙ
Всем привет, я начинающий разработчик. Где я могу почитать полный, подробный гид по использованию фреймворка джанго? Минимум воды, максимум эффективной информации, подскажите пожалуйста. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsub

Resolution for #32503

2021-06-02 Thread Omkar D
I am waiting for this https://code.djangoproject.com/ticket/32503 this ticket to get resolved. For me it is standing as a blocker for upgrading from 2.2 to 3.2.x as my project has many JSON and Textfields. I expected it to be included in 3.2.4. Just want to know in which version this patch can

Re: Where can I work as a freelancer (Django dev)

2021-06-02 Thread Gobi Dasu
Hi Allison, Nikola, and others in this group for whom it is relevant. We'd love to have you join our talent network of software developers, data scientists, and designers. Our site is ldtalent.org which has some important FAQs. If you are already strong in your

Re: SVG widget for the Admin

2021-06-02 Thread Derek
When you say "I tried your suggestion and had no success." what exactly did you try - i.e. what code did you use and what errors did you get? WRT "Not sure where this should live for the Admin to call it and display the image." - it lives exactly as I showed it in my example; its a user-define

Re: How to create .exe file of django project ?

2021-06-02 Thread Kasper Laudrup
On 02/06/2021 14.06, Tejas Tendulkar wrote: > Is there any other way to convert into desktop application ? > I would say the short answer is "no". At least not in the way you have tried so far. You would probably be able to somehow make the development server run your code as an executable with s

How to create .exe file of django project ?

2021-06-02 Thread Tejas Tendulkar
Hello,I create django website using django and jquery but i want to convert into desktop application.I tried pyinstaller but there is some problem with pyinstaller.It create exe file but but when i open the exe it open cmd promt and close automatically.Is there any other way to convert into des

Re: Migration auth.0011_update_proxy_permissions from Django 2.2 fails to apply

2021-06-02 Thread abhinav
Hi, @julien i also encountered this issue did you get a fix for the issue On Tuesday, April 9, 2019 at 4:08:29 PM UTC+5:30 Julien Enselme wrote: > @Arpit Singh: I am in a single database setup and we don't use database > routers. As far as I know, the migration was never applied before. But fro

Re: Django developer

2021-06-02 Thread Veera Raj
veerarajzx10r.pdf On Wed, Jun 2, 2021, 4:30 PM mah...@gmail.com wrote: > Hi > > we are looking for a fullstack developer with python, django, javascript, > css and html experience. > > please dm med att mah.

I want to hire django developers

2021-06-02 Thread mah...@gmail.com
Hi we are looking for a fullstack developer with python, django, javascript, css and html experience. please email me mahj...@gmail.com and send us your resumé. If you have prior experience i would like to se some of your projects before signing a contract. thx Theo -- You received thi

Django developer

2021-06-02 Thread mah...@gmail.com
Hi we are looking for a fullstack developer with python, django, javascript, css and html experience. please dm med att mah...@gmail.com and sen us your resume. If you have prior experience we would like to se some of your projects before signing a contract. thx Theo -- You received this

Django security releases issued: 3.2.4, 3.1.12, and 2.2.24

2021-06-02 Thread Carlton Gibson
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2021/jun/02/security-releases/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To u

Re: SVG widget for the Admin

2021-06-02 Thread Mike Dewhirst
On 1/06/2021 11:44 pm, Derek wrote: You haven't defined where in the admin interface you want this image to be displayed?  A table? I have not tried this, but could you not create an additional field on your model that returns the HTML-encoding needed to display the SVG? Derek, thanks for re