Converting any Graphical Chart(pie-chart, gantt chart) into image dynamically.

2017-11-27 Thread pradam programmer
Hi Guys, I want to convert an graphical chart,for an Ex: pie-chart,gantt chart into an image in a real time and display it in a PDF Document dynamically. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop re

Re: Converting any Graphical Chart(pie-chart, gantt chart) into image dynamically.

2017-11-27 Thread pradam programmer
Thanks alot Derek..I will try this package. On 27-Nov-2017 7:45 PM, "Derek" wrote: > Try reportlab: > > https://docs.djangoproject.com/en/1.11/howto/outputting-pdf/ > #write-your-view > https://www.blog.pythonlibrary.org/2016/02/18/reportlab-how- > to-add-charts-graphs/ > https://www.reportlab.c

Re: typeerror : context must be a dict rather than Context.

2017-12-12 Thread pradam programmer
c = template.Context({'now': now}) html = t.render(c) # Just pass {'now': now} instead of c On Tue, Dec 12, 2017 at 5:08 PM, Al Scham wrote: > Hi, > > I'm am new to django and am workng through the OverIQ tutoiral at : > https://overiq.com/django/1.10/loading-templates-in-django > > I have follo

Re: No Reverse Match Exception

2017-12-17 Thread pradam programmer
>From this: Update Change to this: Update On 17-Dec-2017 2:00 PM, "yingi keme" wrote: > The problem is that, it works perfectly when i put the number on the > template like this > > Update > > But when i do > > Update > > It gives the No Reverse Error. I dont seem to understand why > > Yingi Kem

Re: why is a text not displayed?

2017-12-21 Thread pradam programmer
Change to this: path('^$', views.index, name='index'), On Thu, Dec 21, 2017 at 5:21 PM, wrote: > I made this along a tutorial. > However > > "Hello, world. You're at the blog index." > > is not displayed. > > """blog/views.py""" > from django.http import HttpResponse > > > def index(request):

Django stops working with RuntimeError: populate() isn't reentrant

2016-12-22 Thread pradam programmer
Hi Guys, I am unable to rectify this error I am doing the following things: 1. I am running the project in django 1.7 later upgraded to 1.7.11 to check whether I fix the issue but no use. :( 2. In settings.py I commented the allowed_host = [*] still no use :( I don't know why this error is coming..

Re: Django stops working with RuntimeError: populate() isn't reentrant

2016-12-22 Thread pradam programmer
I restarted hundred times still can't able to rectify it On 22 Dec 2016 9:07 pm, "ADEWALE ADISA" wrote: Restart the server On Dec 22, 2016 4:27 PM, "pradam programmer" wrote: > Hi Guys, > I am unable to rectify this error I am doing the following things: &

Re: starting django

2016-12-22 Thread pradam programmer
just correct pools to polls in url On Thu, Dec 22, 2016 at 9:59 PM, Giovanni Oliverio wrote: > > Hello, I'm following the guide at the following link: > https://docs.djangoproject.com/en/1.10/intro/tutorial01/ but when I go to > call the page: http://localhost:8000/polls/ the result is the foll

Re: Django stops working with RuntimeError: populate() isn't reentrant

2016-12-23 Thread pradam programmer
ate() isn't reentrant On Fri, Dec 23, 2016 at 1:46 PM, Babatunde Akinyanmi wrote: > How about the stack trace? > > On 22 Dec 2016 16:43, "pradam programmer" > wrote: > >> I restarted hundred times still can't able to rectify it >> >> O

Happy New Year 2017

2016-12-31 Thread pradam programmer
Happy New Year Guys, i hope this year fill with alot of love, happiness and Joy to everyone. -- 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+unsubsc

Re: understanding auth models

2017-01-02 Thread pradam programmer
Hi, Read the django doc about auth user they have specified thoroughly On 2 Jan 2017 7:48 pm, "Rasika" wrote: Hi, whenever I created the account for user using built in admin it get stored into auth_user tablein the database.Where I can find the code for this where the connections between the

Re: What is the best combination of components to be used with Django on Windows 10?

2017-01-03 Thread pradam programmer
hi, Please Refer this Link https://www.toptal.com/django/installing-django-on-iis-a-step-by-step-tutorial On Mon, Dec 26, 2016 at 3:28 PM, James Bennett wrote: > On Mon, Dec 26, 2016 at 1:31 AM, Avraham Serour wrote: > >> http://lmgtfy.com/?q=django+deploy+iis >> >> > This is a rude and dismis

I want some guidance on Comments Table Structure

2017-01-11 Thread pradam programmer
Hi, I'm creating the Generic model for Comments i have following scenerios: 1. Comments conversion should happen between one to one. 2. Comments should show based on particular programs id. thank you. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Aggregation and following relationships backwards multiple levels

2017-02-01 Thread pradam programmer
from django.db.models import Q def total(self): subbudgets = SubBudget.objects.filter() contracts = Contract.objects.filter(subbudget__in=subbudgets) return ContractItem.objects.filter(contract__subbudget__budget__in=self.budget_set. all()).aggregate(Sum('total'))['total__su

Re: Aggregation and following relationships backwards multiple levels

2017-02-01 Thread pradam programmer
Hi Patrick, you can do like this: def total(self): return ContractItem.objects.filter(contract__subbudget__budge__in= self.budget_set.all()).aggregate(Sum('total'))['total__sum'] try like this..! On Wed, Feb 1, 2017 at 7:14 PM, Patrick Joy wrote: > Hi all, > > Would appreciate some advi

Re: New to the community

2017-02-07 Thread pradam programmer
hi, you can try this video tutorials its easily understandable https://www.youtube.com/playlist?list=PLEsfXFp6DpzQFqfCur9CJ4QnKQTVXUsRy On Tue, Feb 7, 2017 at 12:31 PM, Antonis Christofides < anto...@djangodeployment.com> wrote: > Hello, > > except for Django's official tutorial, which is quite

Re: Django allauth, manage redirect

2017-02-07 Thread pradam programmer
Hi, add this line in settings.py: LOGIN_REDIRECT_URL = "/my-tasks/" On Tue, Feb 7, 2017 at 2:09 PM, Branko Zivanovic < international11...@gmail.com> wrote: > I'm using django-allauth for authentication. I've enabled Facebook and > Google for social logins. How do I make redirect after first login

Re: it says there is no module django when im trying to configure urls. please help

2017-04-20 Thread pradam programmer
Hi Anusha, Make sure django is package is installed. On Fri, Apr 21, 2017 at 3:15 AM, sri anusha wrote: > C:\Users\srian\AppData\Local\Programs\Python\Python36\python.exe > C:/Users/srian/internship/polls/urls.py > Traceback (most recent call last): > File "C:/Users/srian/internship/polls/urls

Deactivate the Child Objects when parent is deactivate.

2017-05-28 Thread pradam programmer
from django.db.models import QuerySet import attr from attr.validators import instance_of @attr.s class ChildDeactivate(object): loca = attr.ib(validator=instance_of(QuerySet)) def deactivate_child(self,l): get_parent = Boundary.objects.filter(parent__id=l.id) if get_paren

Re: How to get JOSN Field key value using values()

2017-06-08 Thread pradam programmer
Hi Mallik, Write a Custom Method to do it. On Thu, Jun 8, 2017 at 3:21 PM, Mallik Sai wrote: > I have a JSON Field in my model and I want to get a particular Key value > which is present in the JSON Field using values(). > > lets assume my JOSN Field data is like { 'key1':value1 , 'key2':value2