Re: Package a virtualenv to deploy across multiple systems?

2016-09-22 Thread ludovic coues
As long as you use similar hardware and the same OS version everywhere, a zip should work. You might get some issue if each machine have a different version of some lib on which python have dependencies 2016-09-22 3:25 GMT+02:00 'Abraham Varricatt' via Django users

Re: Package a virtualenv to deploy across multiple systems?

2016-09-22 Thread Ricardo Daniel Quiroga
create a docker image alternative? 2016-09-22 11:20 GMT-03:00 Saeon Tao : > i just been learning about openstack... which i think uses a lot of > docker... the idea is to make all apps independent of OS > > On Thursday, September 22, 2016 at 3:25:48 AM UTC+2, Abraham Varricatt

Someone can solve this error

2016-09-22 Thread shaoranzerolk
Traceback (most recent call last): File "/home/souma/Descargas/pycharm-2016.1.4/helpers/pycharm/django_manage.py", line 41, in run_module(manage_file, None, '__main__', True) File "/usr/lib64/python3.4/runpy.py", line 182, in run_module return _run_module_code(code, init_globals,

Mock external api call (xero)

2016-09-22 Thread Karim
Hello everyone, I would like to test my code that call the xero api server and to do that I want create mocked response to test different scenarios. At the moment I want test just few endpoints, my Idea is to create a class as a container of the items needed to render. The items are generated by

Foreign key set template

2016-09-22 Thread jorrit787
I have a question about using *model.foreignkey_set* in Django templates. I was trying to use *model.foreignkey_set* to determine if there were any foreign keys for this model, but it appears that *model.foreignkey_set* returns something different than *model.foreignkey_set.all* - why is that?

Re: Foreign key set template

2016-09-22 Thread Tim Graham
model.foreignkey_set returns a manager while model.foreignkey_set.all returns a QuerySet. https://docs.djangoproject.com/en/stable/topics/db/queries/#following-relationships-backward On Thursday, September 22, 2016 at 7:09:27 AM UTC-4, jorr...@gmail.com wrote: > > I have a question about using

Re: Package a virtualenv to deploy across multiple systems?

2016-09-22 Thread Vadym Serdiuk
=the idea is to make all apps independent of OS= Yeah! Docker do this. And any more... Docker can launch all parts of application in independent containers. And you can make independent scenarios and even load different libraries for different parts of application. And with docker-composer you can

Re: Package a virtualenv to deploy across multiple systems?

2016-09-22 Thread Saeon Tao
i just been learning about openstack... which i think uses a lot of docker... the idea is to make all apps independent of OS On Thursday, September 22, 2016 at 3:25:48 AM UTC+2, Abraham Varricatt wrote: > > Hello, > > Do we have any standard/recommended way to distribute the python >

Re: Package a virtualenv to deploy across multiple systems?

2016-09-22 Thread Vadim Serdiuk
Hi. I suggest you to look at Docker. четверг, 22 сентября 2016 г., 4:25:48 UTC+3 пользователь Abraham Varricatt написал: > > Hello, > > Do we have any standard/recommended way to distribute the python > virtualenv used in a django application across multiple servers? > > I'm able to write a

How to save images present in Django application directory to models

2016-09-22 Thread Krishn Bera
I am making a Django application that will do some sort of image manipulation. As an intermediate step, I am generating new images in the Django application directory. Now I want to save these images(.jpg) to a model that contains ImageField. How should I go about saving this image in