pymssql

2016-09-08 Thread sum abiut
Hi, i have used pymssql to connet to windows database but i want to be able iterate and only print out some specific fields. here is what i did conn=pymssql.connect(server,username,password,database) cus=conn.cursor() cus.execute("SELECT * FROM glbud ") for row in cus:

Re: Recipe to upgrade to Python 3.x on Ubuntu 12.04 and 14.04

2016-09-08 Thread Mike Dewhirst
On 8/09/2016 10:12 PM, Erik Cederstrand wrote: Den 7. sep. 2016 kl. 10.49 skrev James Schneider : You may also want to consider building in a configuration manager such as Ansible or Salt stack. Once set up, you can deploy multiple staging and prod servers with a

Re: Django group email in spam

2016-09-08 Thread Luis Zárate
I have the same behavior 2016-09-08 7:06 GMT-06:00 Uri Even-Chen : > Same here, and the problem is I filtered the group messages to skip my > inbox in Gmail, and I can't filter them never to send them to spam, because > then they will not skip my inbox (it's a bug in Gmail). So

Re: Python post to remote host

2016-09-08 Thread Luis Zárate
see http://docs.python-requests.org/en/master/ 2016-09-08 5:57 GMT-06:00 alireza Rahmani khalili < sanfrancisco.alir...@gmail.com>: > > > down votefavorite > > > Hi I want to write robot to register in toefl test , I send

Custom form fields in admin site

2016-09-08 Thread Luis Zárate
Hi, I am trying to do something like class MyForm(forms.ModelForm): myextra_field = forms.IntegerField() class Meta: models = Mymodel fields = '__all__' class MymodelAdmin(admin.ModelAdmin): form = MyForm fields = ["name", 'myextra_field'] def

Re: Group results with multiple uses of annotate()

2016-09-08 Thread Adam Starrh
OK I got this to work. The second annotate needs to go at the end, so that the order is as follows: .filter().values().annotate().order_by().annotate() On Thursday, September 8, 2016 at 10:04:40 AM UTC-4, Adam Starrh wrote: > > I've got the following function in a manager which seems to work

Group results with multiple uses of annotate()

2016-09-08 Thread Adam Starrh
I've got the following function in a manager which seems to work well, annotating data and grouping results by "variety name": def by_variety_and_date(self, start_date, end_date): return self.model.objects.filter( date__range=(start_date, end_date) ).values(

Re: Django group email in spam

2016-09-08 Thread Uri Even-Chen
Same here, and the problem is I filtered the group messages to skip my inbox in Gmail, and I can't filter them never to send them to spam, because then they will not skip my inbox (it's a bug in Gmail). So I have to enter my spam folder manually and mark each message as "not spam". By the way,

[X-Post][Inpycon] Regarding Invitation Dev Sprint Pycon India

2016-09-08 Thread Jaysinh shukla
Respected Members, Dev Sprint is the best way to collaborate/guide other contributors physically rather than over IRC / email. We invite this community to join and hack for whole 3 days during the conference. Programmers are dreaming of contributing but they are unable to just because of

Re: Recipe to upgrade to Python 3.x on Ubuntu 12.04 and 14.04

2016-09-08 Thread Erik Cederstrand
> Den 7. sep. 2016 kl. 10.49 skrev James Schneider : > > You may also want to consider building in a configuration manager such as > Ansible or Salt stack. Once set up, you can deploy multiple staging and prod > servers with a couple commands. With the right planning,

Python post to remote host

2016-09-08 Thread alireza Rahmani khalili
down votefavorite Hi I want to write robot to register in toefl test , I send request to remote web site as: from django.http import HttpResponse import requests from bs4 import BeautifulSoupfrom django.middleware

Re: multiple django installation in one server

2016-09-08 Thread m1chael
virtual environments and virtual hosts through your web server On Wed, Sep 7, 2016 at 9:28 AM, miarisoa sandy wrote: > Hi guys, > > I hope you are doing fine. > I have googled it but no fruitful results. > I am a newbie in django and I wonder what is the number maximum

Re: Django migrations taking all the memory on Django 1.9

2016-09-08 Thread andrea crotti
Ah ok thanks, well generally it's not a blocker, except that we first have to upgrade to 1.10. We have done a lot of migrations in the last few months and given the size of the project it always takes a long time from one version to the other, so just not sure when I'll be able to test these