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

2016-09-07 Thread Mike Dewhirst
On 7/09/2016 6:49 PM, James Schneider wrote: On Sep 6, 2016 10:44 PM, "Mike Dewhirst" > wrote: > > I'm looking for a step-by-step system admin recipe to get away from Python 2.7 because unicode on 2.7 is doing my head in. This is ugly I know but that's how it is.

Re: Django group email in spam

2016-09-07 Thread sylvain_grodes
Same problem here, I have to check my spam and unset the spam flag. Le vendredi 2 septembre 2016 02:12:18 UTC-4, Lachlan Musicman a écrit : > > Hey, > > I've been seeing a lot of Django group email going into my spam folder > over the last 48 hours. > > Have there been any changes to the group

Re: multiple django installation in one server

2016-09-07 Thread Luis Zárate
Take a look http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ , You can do this steps for ever django project in the same server 2016-09-07 7:28 GMT-06:00 miarisoa sandy : > Hi guys, > > I hope you are doing fine. > I have googled it but no fruitful resul

Re: How to split value where is comma ?

2016-09-07 Thread ludovic coues
That look a lot like a csv file. I strongly suggest you take a look at [1] and [2]. It should let you work with your data as if it's a list of dict. Pretty handy. If all you want is to add a newline after each comma, I suggest to use replace. >>> print("1,2,3".replace(",", ",\n")) 1, 2

How to split value where is comma ?

2016-09-07 Thread Asad ur Rehman
Here is my view.py import os.path import commands def call_report(request): a = commands.getstatusoutput('/usr/local/freeswitch/bin/fs_cli -x "show calls"') return HttpResponse(a) When i run this command it gives output which you can see... 0uuid,direction,created,created_epoch,nam

CSRF_COOKIE_SECURE and SESSION_COOKIE_SECURE to True when terminating SSL on load balancer

2016-09-07 Thread Camilo Torres
Hi. As you are currently using HTTPS, setting these to true make sense. These settings are used by the browser to ensure encripted cookies. It does not matter if you are using haproxy with ssl termination. Camilo Torres. -- You received this message because you are subscribed to the Google Gr

Re: multiple django installation in one server

2016-09-07 Thread Asad Jibran Ahmed
Hi, I have a similar setup for my projects. What I do is: 1. Create a new virtual environment for the project ( https://virtualenv.pypa.io/en/stable/). Virtual environments make sure that each project that you deploy can have it's own set of dependencies that do not conflict with the

multiple django installation in one server

2016-09-07 Thread miarisoa sandy
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 django that I can install in one server?? I have a lot of projects that I would like to check with django ( one project -> one django) to avoid some conf

CSRF_COOKIE_SECURE and SESSION_COOKIE_SECURE to True when terminating SSL on load balancer

2016-09-07 Thread pjotr
Hi, I use HAProxy as load balancer, where I also terminate the SSL. The traffic between HAProxy and the is unencrypted. I have force SSL enabled, so all requests with http will be redirected to https. Question is, does it serve any good to have CSRF_COOKIE_SECURE and SESSION_COOKIE_SECURE set

Re: django.core.exceptions.FieldDoesNotExist but the field exists

2016-09-07 Thread Stefano Tranquillini
It seems that i missed a part while merging. On Mon, Sep 5, 2016 at 5:55 PM, Michal Petrucha < michal.petru...@konk.org> wrote: > On Mon, Sep 05, 2016 at 08:44:55AM -0700, Stefano Tranquillini wrote: > > Hello > > > > I've a problem syncing the db. > > > > I run the command: django-admin migr

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

2016-09-07 Thread James Schneider
On Sep 6, 2016 10:44 PM, "Mike Dewhirst" wrote: > > I'm looking for a step-by-step system admin recipe to get away from Python 2.7 because unicode on 2.7 is doing my head in. This is ugly I know but that's how it is. > > Staging server is Ubuntu 12.04on local hardwarewith Python 2.7 and it runs Ap