Re: virtualenv on Windows

2014-02-03 Thread Mike Dewhirst
On 4/02/2014 5:31pm, Avraham Serour wrote: You can easily install pillow on windows using 'easy_install pillow' it comes with the necessary binaries and you don't need to compile Bingo! Yes - it puts it in an egg. Thanks Avraham On Feb 4, 2014 2:30 AM, "Mike Dewhirst"

Re: Weird deletions in Django

2014-02-03 Thread Avraham Serour
Sending an email can be faulty, I would use a logger and write the stacktrace Also, is it possible that something other than you django application it's agreeing the database? On Feb 3, 2014 10:32 PM, "heidi" wrote: > I have a web game in which an alliance can have multiple

Re: virtualenv on Windows

2014-02-03 Thread Avraham Serour
You can easily install pillow on windows using 'easy_install pillow' it comes with the necessary binaries and you don't need to compile On Feb 4, 2014 2:30 AM, "Mike Dewhirst" wrote: > Thanks Nick > > All this goodness is coming to light just I have (almost) given up

Re: Do I need an API?

2014-02-03 Thread Drew Ferguson
Hi guys Have you considered using a Content Management System? This is what they are designed for - to make it easy to add and manage content. Check out the various Django CMSs and their plugins/extra modules. Or there are some excellent non-Django OSS CMSs out their too. There are good reasons

Re: Do I need an API?

2014-02-03 Thread m1chael
I deal with the same thing... and i've set up the template directories for them to access, and it works OK.. but I still hear complaints from the old timers that won't want to conform to this new way of doing things, This isn't a stupid question at all. I'm hoping someone can give a truly

Re: virtualenv on Windows

2014-02-03 Thread Mike Dewhirst
Thanks Nick All this goodness is coming to light just I have (almost) given up Windows altogether. I only need to persuade one more person on my network to walk away from Microsoft and I'm free! FREE! Sob ... Mike On 4/02/2014 10:39am, Nick Santos wrote: FYI, virtualenvwrapper was ported

Re: virtualenv on Windows

2014-02-03 Thread Nick Santos
FYI, virtualenvwrapper was ported to windows: https://pypi.python.org/pypi/virtualenvwrapper-win It works seamlessly like the linux/OSX versions -Nick On Mon, Feb 3, 2014 at 3:10 PM, Mike Dewhirst wrote: > Michel > > I learned quite a lot and

Re: virtualenv on Windows

2014-02-03 Thread Mike Dewhirst
Michel I learned quite a lot and appreciate it greatly! Thankyou Mike On 4/02/2014 7:37am, werefrog wrote: Hello, For Windows, I tried many ways that worked but I finally installed Visual Studio 2008 C++ for the compilation problems and only pillow and psycopg2 resist in my case (I simply

Collapsible inlines in Django Admin

2014-02-03 Thread heidi
Is there an up-to-date option for allowing collapsible inlines in the Django admin site? I've looked at https://code.djangoproject.com/ticket/494, How to add 'collapse' to a Django

Re: virtualenv on Windows

2014-02-03 Thread werefrog
Hello, For Windows, I tried many ways that worked but I finally installed Visual Studio 2008 C++ for the compilation problems and only pillow and psycopg2 resist in my case (I simply extract the content of the binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/, copy content from

Weird deletions in Django

2014-02-03 Thread heidi
I have a web game in which an alliance can have multiple members. This is represented by a foreign key field on each member's class (seeing as a member can only be part of one alliance). I've been getting weird instances of worlds and alliances being deleted. I narrowed it down to where I

Do I need an API?

2014-02-03 Thread BikerJim
Hi, I have a fairly simple Django site up and running on Heroku kind of a test project for me, all is well and I'm pretty happy with my progress so far: easylaughs.herokuapp.com Its a site for managing weekly theatre shows, workshops and courses and it was intended to run alongside, possibly

Re: How to count the amount of objects in a django joined table?

2014-02-03 Thread Lucas Magnum
{% for user in object_list %} {{ user.id }} Number of assets: {{ user.assets_set.count }} {% endfor %} []'s Lucas Magnum. 2014-02-03 hykyd : > My problem is simple: I have **Users** who

How to count the amount of objects in a django joined table?

2014-02-03 Thread hykyd
My problem is simple: I have **Users** who own **Assets** or **Assets** which belong to Users If you prefer and I cannot make it to retrieve the number (count) of **Assets** each **User** has. I know this might be sound silly to most of you but I am new to python/django (coming from PHP/MySQL)

Experience with django-redshift & django-pyodbc-azure ORMs?

2014-02-03 Thread damondeville
Would anyone be kind enough to share with us their experience in using the following django drivers for cloud databases: - django redshift: https://github.com/binarydud/django-redshift, which adapts the postgresql driver to the specificities of Amazon Redshift - django sql azure:

Re: virtualenv on Windows

2014-02-03 Thread CLIFFORD ILKAY
On 02/03/2014 05:11 AM, Mike Dewhirst wrote: > > However, this evening at the Melbourne PUG meeting I heard about > Anaconda which apparently make virtualenv passé. Haven't looked at it > yet. Might be a day or so ... That's an unfortunate choice of a name for a Python related project given that

Re: virtualenv on Windows

2014-02-03 Thread Mike Dewhirst
On 29/01/2014 7:10pm, Sam Lai wrote: Oops, my memory failed me. They don't work with pip, but they do work with easy_install, which virtualenvs have as well (at least mine do). http://stackoverflow.com/a/5442340/150999 For example, easy_install

Re: djangopackages certificate

2014-02-03 Thread Mike Dewhirst
On 3/02/2014 4:40pm, Russell Keith-Magee wrote: On Mon, Feb 3, 2014 at 12:49 PM, Mike Dewhirst > wrote: Just visited https://www.djangopackages.__com/ and got a "certificate expired" warning.

Re: Pre-populating data in the admin panel

2014-02-03 Thread kerviel patrice
Le vendredi 31 janvier 2014 09:22:46 UTC+1, kerviel patrice a écrit : > > In the Django Admin I want to populate fields for a foreign key record > when I click the add (+) button > I tried with formfield_for_foreignkey but it does not work > > model > > class Property(models.Model): > name