Re: Strange deployment problem

2015-04-02 Thread Miloš Kozák
I have just found, that if I use tmux then everything works perfect... Maybe this might be caused by some system variables forced by my terminal? This problem denies me to use Fabric for DB updates! This is very big constraint. -- You received this message because you are subscribed to the Goo

understanding of Dialup GPRS and IP

2015-04-02 Thread CTG
Can someone please briefly explain to me what they are in more details please Thanks -- 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...@

Re: setup.py for project?

2015-04-02 Thread Thomas Güttler
Am 02.04.2015 um 03:13 schrieb Ilya Kazakevich: Hello. What exactly are you trying to achieve? If you have some part of functionality that is interesting for other people/projects and hence should be shared via pypi, you should extract it as reusable app. Projects, how ever, are not reusabl

Re: setup.py for project?

2015-04-02 Thread Simon Brunning
On 2 April 2015 at 11:56, Thomas Güttler wrote: > There are many books about this topic. Which one do you recommend? Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation, ISBN 978-0321601919 Very good indeed. Cheers, Simon B. @brunns 07963 351009 -- Y

Re: understanding of Dialup GPRS and IP

2015-04-02 Thread Avraham Serour
It seems you are on the wrong mailing list On Apr 2, 2015 1:29 PM, "CTG" wrote: > Can someone please briefly explain to me what they are in more details > please > Thanks > > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscri

Help with: Django 'ModelForm' object has no attribute 'cleaned_data' for M2M through

2015-04-02 Thread Ronaldo Bahia
Hi every one. Can you help me in this? http://stackoverflow.com/questions/29413107/django-modelform-object-has-no-attribute-cleaned-data-for-m2m-through Thanks in advance Ronaldo -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Help with: Django 'ModelForm' object has no attribute 'cleaned_data' for M2M through

2015-04-02 Thread Vijay Khemlani
Call form.is_valid() (and check that it returns True) before accessing form.cleaned_data On Thu, Apr 2, 2015 at 9:36 AM, Ronaldo Bahia wrote: > > Hi every one. > > Can you help me in this? > > > http://stackoverflow.com/questions/29413107/django-modelform-object-has-no-attribute-cleaned-data-for

Re: Help with: Django 'ModelForm' object has no attribute 'cleaned_data' for M2M through

2015-04-02 Thread Ronaldo Bahia
Thanks. Solved cleaned_data issue. Now I getting: Cannot assign "u'2'": "CandidateToJob.job" must be a "Job" instance. Or Cannot assign "u'Title'": "CandidateToJob.job" must be a "Job" instance. Em quinta-feira, 2 de abril de 2015 09:44:44 UTC-3, Vijay Khemlani escreveu: > > Call form.is_valid

Re: Help with: Django 'ModelForm' object has no attribute 'cleaned_data' for M2M through

2015-04-02 Thread Vijay Khemlani
In your Form class "job" is a ChoiceField, and it returns a primitive value (such as "2") when cleaned. You would need to convert it back to a django model with job = Job.objects.get(pk=form.cleaned_data['job']) On Thu, Apr 2, 2015 at 10:17 AM, Ronaldo Bahia wrote: > Thanks. Solved cleaned_d

The django CMS Network

2015-04-02 Thread Daniele Procida
Dear django CMS friends, You might be interested in the django CMS Network. There's a preview at but it will be appearing on django-cms.org soon too. It hasn't officially been launched yet, but will be publicly available in the next week or so. If you work with

Using Unicode in django

2015-04-02 Thread temiloluwa adesina
Hello I just joined this group and i have problems with representing multiple fields in admin using __unicode__, when i try to call this data it returns just one of them: class Crop(models.Model): name = models.CharField(max_length=30) importance = models.TextField() cultivation = m

Saving Contionus Data through Django

2015-04-02 Thread nitinagarwal949
Hello All I am new to Django. And, I need help in models file. I made a table - device_list. It contain one filed as device_id. Now, I need to store 3 continuous data stream which is coming like 1 entry per minute each for this device_id. All 3 data streams will have different timestamps and

Re: setup.py for project?

2015-04-02 Thread Ilya Kazakevich
Simon is right. I recommend this http://martinfowler.com/books/continuousDelivery.html On Thursday, April 2, 2015 at 1:57:40 PM UTC+3, guettli wrote: > > > > Am 02.04.2015 um 03:13 schrieb Ilya Kazakevich: > > Hello. > > > > What exactly are you trying to achieve? > > > > If you have some pa

Re: Saving Contionus Data through Django

2015-04-02 Thread Ilya Kazakevich
You can't just store stream in database. You need to buffer it first, and then save to field like blob: http://www.postgresql.org/docs/9.1/static/datatype-binary.html I am not sure that relational database is the best place to store binary data coming from devices. On Thursday, April 2, 2015 a

Re: Saving Contionus Data through Django

2015-04-02 Thread aRkadeFR
Not sure Django is the best solution to your problem. As Ilya said, you should buffer it. Then you can work with your buffered data. You said one entry every minute, so the "buffer" can just send this entry every minute to a Django project? On 04/02/2015 04:34 PM, Ilya Kazakevich wrote: You can

Re: Is bcc implemented?

2015-04-02 Thread Scot Hacker
> > See > https://docs.djangoproject.com/en/1.7/topics/email/#emailmessage-objects > ./s -- 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+unsubs

Re: Using Unicode in django

2015-04-02 Thread Filipe Ximenes
Not sure I understood the problem. Are you trying to print only the data in the "importance" field? If so, try: class Crop(models.Model): name = models.CharField(max_length=30) importance = models.TextField() cultivation = models.TextField() def __unicode__(self): return u'

Python Soap

2015-04-02 Thread nadaei...@gmail.com
Hi All, What is the best library of python to consume wsdl soap with client certificate pfx and server certificate cer. BR -- 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 a

Accessing to my user

2015-04-02 Thread somenxavier
I have this class Persona(models.Model):7 """Person class:8 * user: a user9

Re: Accessing to my user

2015-04-02 Thread Filipe Ximenes
Try: p = Persona.objects.get(user__username='foo') ​ On Thu, Apr 2, 2015 at 12:24 PM, wrote: > I have this > class Persona(models.Model):7 > >"""Person class:8 >

Re: Accessing to my user

2015-04-02 Thread Simon Charette
Hi! Personna.objects.get(user__username='foo') should do. Simon Le jeudi 2 avril 2015 11:24:48 UTC-4, somen...@gmail.com a écrit : > > I have this > class Persona(models.Model):7 > >"""Person class:8 >

Problem after Virtualenv Setup

2015-04-02 Thread Kishan Mehta
Hi Friends, I have created my django project and worked on it . Recently I came to know about virtualenv and the problem it solves. I have installed virtualenv and activated that environment. Now django command is not recognized. * Will I have to install django again ? Or is there any other effic

Re: Problem after Virtualenv Setup

2015-04-02 Thread Carl Meyer
Hi Kishan, On 04/02/2015 09:41 AM, Kishan Mehta wrote: > I have created my django project and worked on it . Recently I came to > know about virtualenv and the problem it solves. > I have installed virtualenv and activated that environment. > Now django command is not recognized. > * Will I have t

Re: Python Soap

2015-04-02 Thread Nikolas Stevenson-Molnar
Take a look at suds-jurko: https://bitbucket.org/jurko/suds _Nik On 4/2/2015 8:05 AM, nadaei...@gmail.com wrote: Hi All, What is the best library of python to consume wsdl soap with client certificate pfx and server certificate cer. BR -- You received this message because you are subscrib

Re: Python Soap

2015-04-02 Thread nadaei...@gmail.com
Thanks Nikolas, Checking will come back to you. 2015-04-02 15:45 GMT+00:00 Nikolas Stevenson-Molnar : > Take a look at suds-jurko: https://bitbucket.org/jurko/suds > > _Nik > > > On 4/2/2015 8:05 AM, nadaei...@gmail.com wrote: > > Hi All, > > What is the best library of python to consume wsdl

Re: Using Unicode in django

2015-04-02 Thread temiloluwa adesina
Thanks for your reply i found another way to do it, i could just make it work like this: b= Crop.objects.all() nm= b.name imp= b.importance cuv= b.cultivation realized this would help me retrieve the individual data that i wanted to get. On Thursday, April 2, 2015 at 3:57:18 PM UTC+1, Filipe X

Re: Python Soap

2015-04-02 Thread nadaei...@gmail.com
I am already using suds but my issue was using suds with ssl and client and server certificate 2015-04-02 15:48 GMT+00:00 nadaei...@gmail.com : > Thanks Nikolas, > > Checking will come back to you. > > 2015-04-02 15:45 GMT+00:00 Nikolas Stevenson-Molnar < > nik.mol...@consbio.org>: > >> Take a l

Re: Python Soap

2015-04-02 Thread James Schneider
Suds is an old (abandoned) library. suds-jurko is a newer fork of it, and may handle SSL connections better. You may need to provide more detail as to what you are trying to do, as the SSL portion is handled by underlying libraries in Python, not by suds-jurko directly. -James On Apr 2, 2015 8:57

Re: Problem after Virtualenv Setup

2015-04-02 Thread Kishan Mehta
Hey thanks Carl. On Apr 2, 2015 9:14 PM, "Carl Meyer" wrote: > Hi Kishan, > > On 04/02/2015 09:41 AM, Kishan Mehta wrote: > > I have created my django project and worked on it . Recently I came to > > know about virtualenv and the problem it solves. > > I have installed virtualenv and activated t

Re: Python Soap

2015-04-02 Thread Nikolas Stevenson-Molnar
suds-jurko also seems to be actively maintained, so you may have luck with filing an issue for missing functionality. _Nik On 4/2/2015 9:05 AM, James Schneider wrote: Suds is an old (abandoned) library. suds-jurko is a newer fork of it, and may handle SSL connections better. You may need t

Re: Help with: Django 'ModelForm' object has no attribute 'cleaned_data' for M2M through

2015-04-02 Thread Ronaldo Bahia
Dont know why but I still get the same error Ronaldo Bahia > Em 02/04/2015, às 10:50, Vijay Khemlani escreveu: > > In your Form class "job" is a ChoiceField, and it returns a primitive value > (such as "2") when cleaned. > > You would need to convert it back to a django model with > > job =

Re: Help with: Django 'ModelForm' object has no attribute 'cleaned_data' for M2M through

2015-04-02 Thread Vijay Khemlani
post your updated code On Thu, Apr 2, 2015 at 1:06 PM, Ronaldo Bahia wrote: > Dont know why but I still get the same error > > Ronaldo Bahia > > Em 02/04/2015, às 10:50, Vijay Khemlani escreveu: > > In your Form class "job" is a ChoiceField, and it returns a primitive > value (such as "2") when

Re: Python Soap

2015-04-02 Thread nadaei...@gmail.com
i was doing it using this: import logging logging.basicConfig(level=logging.INFO) logging.getLogger('suds.client').setLevel(logging.DEBUG) logging.getLogger('suds.transport').setLevel(logging.DEBUG) c = Client('https://10.102.5.81:901/APIService.svc?singleW

Re: Help with: Django 'ModelForm' object has no attribute 'cleaned_data' for M2M through

2015-04-02 Thread Ronaldo Bahia
updated http://stackoverflow.com/questions/29413107/django-modelform-object-has-no-attribute-cleaned-data-for-m2m-through/29417768#29417768 *Ronaldo Bahia * Diretor | JobConvo.com Tel: 11 3280 6971 2015-04-02 13:15 GMT-03:00 Vijay Khemlani : > post your updated code > > On Thu, Apr 2, 2015 at 1

Re: Python Soap

2015-04-02 Thread Nikolas Stevenson-Molnar
Have a look at this: https://bitbucket.org/jurko/suds/issue/23/ssl-certificate-verification _Nik On 4/2/2015 9:17 AM, nadaei...@gmail.com wrote: i was doing it using this: import logging logging.basicConfig(level=logging.INFO) logging.getLogger('suds.client').setLevel(logging.

Re: Help with: Django 'ModelForm' object has no attribute 'cleaned_data' for M2M through

2015-04-02 Thread Vijay Khemlani
What line is thrwing the error? the one with form.save(commit=False) ? On Thu, Apr 2, 2015 at 1:23 PM, Ronaldo Bahia wrote: > updated > > > http://stackoverflow.com/questions/29413107/django-modelform-object-has-no-attribute-cleaned-data-for-m2m-through/29417768#29417768 > > *Ronaldo Bahia * >

Re: Help with: Django 'ModelForm' object has no attribute 'cleaned_data' for M2M through

2015-04-02 Thread Ronaldo Bahia
No. This line: job = Job.objects.get(id=form.cleaned_data['job']) If I change my form to get job__id: cojobs=Company.objects.select_related('job__id').values_list('job__id', flat=True) The error is still that line but a different message: Job matching query does not exist. *Ronaldo Bahia

Re: Accessing to my user

2015-04-02 Thread somenxavier
Perfect. El dijous, 2 abril de 2015 17:29:46 UTC+2, Filipe Ximenes va escriure: > > Try: > > p = Persona.objects.get(user__username='foo') > > ​ > > On Thu, Apr 2, 2015 at 12:24 PM, > wrote: > >> I have this >> class Persona(models.Model):7 >>

Re: Help with: Django 'ModelForm' object has no attribute 'cleaned_data' for M2M through

2015-04-02 Thread Ronaldo Bahia
Sorry. It is if form.is_valid(): The line providing the error *Ronaldo Bahia * Diretor | JobConvo.com Tel: 11 3280 6971 2015-04-02 13:39 GMT-03:00 Ronaldo Bahia : > No. > This line: > > job = Job.objects.get(id=form.cleaned_data['job']) > > If I change my form to get job__id: > > cojobs=Comp

Re: Python Soap

2015-04-02 Thread nadaei...@gmail.com
Thanks finally using this but getting web.fault: from sudsssltransport import SudsClientStrictSSL c= SudsClientStrictSSL(' https://10.102.5.81:901/APIService.svc?singleWsdl', client_cert='cert.pem', verify_ssl='certificate.pem') print 'here' hoho = c.service.Login(clientID=

best way to pass options to django views?

2015-04-02 Thread dk
I have a option section in my webpage just display the names of some machines doing this tutorial I was able to get all the lines that appear in the "option" tag of my html. http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_select_options and I can get a big string that I can separate b

"The outermost 'atomic' block cannot use savepoint = False when autocommit is off." error after upgrading to Django 1.8

2015-04-02 Thread Matt Woodward
Hi all -- I just upgraded one of my projects to Django 1.8 from 1.7.7 and in a view function where we're doing manual transaction management (Postgres) I'm now getting the error in the subject line. Basic gist of the code involved: def foo(request): try: transaction.set_autocommit(False)

Re: subprocess behave diferent in the server than in the client.

2015-04-02 Thread dk
found 2 things happening, some one move the file, second of all the subprocess stdout spits a tuple of tuples =( (that was trick thing to find.) thanks guys. On Tuesday, March 31, 2015 at 2:03:08 PM UTC-5, JirkaV wrote: > It's very likely that the actual user running the webserver process(es)

Re: Python Soap

2015-04-02 Thread Nikolas Stevenson-Molnar
Did you switch to using suds-jurko? _Nik On 4/2/2015 10:10 AM, nadaei...@gmail.com wrote: Thanks finally using this but getting web.fault: from sudsssltransport import SudsClientStrictSSL c= SudsClientStrictSSL('https://10.102.5.81:901/APIService.svc?singleWsdl', client_cert='cert.pe

Re: "The outermost 'atomic' block cannot use savepoint = False when autocommit is off." error after upgrading to Django 1.8

2015-04-02 Thread Simon Charette
Hi Matt, I think it would be preferable to use atomic() here. >From reading the documentation it looks like you might already be in a transaction when calling `set_autocommit` but it's hard to tell without the full traceback. Wha

Re: Python Soap

2015-04-02 Thread nadaei...@gmail.com
Yes 2015-04-02 19:05 GMT+00:00 Nikolas Stevenson-Molnar : > Did you switch to using suds-jurko? > > _Nik > > > On 4/2/2015 10:10 AM, nadaei...@gmail.com wrote: > > Thanks finally using this but getting web.fault: > > from sudsssltransport import SudsClientStrictSSL > c= SudsClientStric

Re: Python Soap

2015-04-02 Thread Nikolas Stevenson-Molnar
Make sure your previous suds is completely uninstalled. The code in the stack trace doesn't seem to fit with the current suds-jurko code. If you're still encountering the issue, I'd open an issue on the suds-jurko tracker. _Nik On 4/2/2015 12:23 PM, nadaei...@gmail.com wrote: Yes 2015-04-02

Re: Python Soap

2015-04-02 Thread nadaei...@gmail.com
Thanks i think it is working issue with the server API keep you updated. BR 2015-04-02 20:27 GMT+00:00 Nikolas Stevenson-Molnar : > Make sure your previous suds is completely uninstalled. The code in the > stack trace doesn't seem to fit with the current suds-jurko code. If you're > still enco

Re: best way to pass options to django views?

2015-04-02 Thread Ilya Kazakevich
This tutorial is about client-side (JavaScript) while Python/Django is server side:) What are you trying to do? Pass all options from HTML page to server side? What for? In most cases you want to pass the option selected by user to server. You must first read about HTML forms and how to submit

Re: Saving Contionus Data through Django

2015-04-02 Thread Mike Dewhirst
On 3/04/2015 12:14 AM, nitinagarwal...@gmail.com wrote: Hello All I am new to Django. And, I need help in models file. I made a table - device_list. It contain one filed as device_id. Now, I need to store 3 continuous data stream which is coming like 1 entry per minute each for this device_id. A

Re: Using Unicode in django

2015-04-02 Thread Mike Dewhirst
On 3/04/2015 12:01 AM, temiloluwa adesina wrote: Hello I just joined this group and i have problems with representing multiple fields in admin using __unicode__, when i try to call this data it returns just one of them: | classCrop(models.Model): name =models.CharField(max_length=30) i