Re: A subprocess call fails, but only under Django

2014-03-11 Thread Shawn Milochik
On Tue, Mar 11, 2014 at 8:07 PM, Shawn Milochik wrote: > > I tried to circumvent the entire problem by adding an "if __name__ == > '__main__'" block to the script and having it take a command-line argument > via argparse and print the desired output. Then I did a > subprocess.check_output call on

Re: A subprocess call fails, but only under Django

2014-03-11 Thread Shawn Milochik
Hi Russ, thanks for the reply. What I mean by "under Django" is if I call it from within a view or with "manage.py shell" I get the problem. On the system in question, "manage.py shell" does in fact invoke iPython. However, invoking iPython manually (without manage.py) works. Executing the script

Re: A subprocess call fails, but only under Django

2014-03-11 Thread Russell Keith-Magee
On Wed, Mar 12, 2014 at 2:06 AM, Shawn Milochik wrote: > Hi everybody. I have a weird problem. I have a small script that does a > subprocess call. It works. It works when run via iPython. It blows up when > run in manage.py shell or under Django with OSError: [Errno 12] Cannot > allocate memory.

Re: A subprocess call fails, but only under Django

2014-03-11 Thread Shawn Milochik
On Tue, Mar 11, 2014 at 9:24 PM, Nick Santos wrote: > Hey Shawn, > > What does your web stack and environment look like? If it's failing during > a fork with an out of memory, that makes me wonder if the host process for > django is consuming a chunk of memory for some reason, and when it gets >

Re: A subprocess call fails, but only under Django

2014-03-11 Thread Shawn Milochik
On Tue, Mar 11, 2014 at 9:06 PM, Drew Ferguson wrote: > Hi > > Could your problem be some SELINUX issue? > > Perhaps disable SELINUX temporarily and see if the problem persists. > > How would selinux cause the problem to only happen under certain conditions? I don't think it's running. Based on th

Re: A subprocess call fails, but only under Django

2014-03-11 Thread Drew Ferguson
Hi Could your problem be some SELINUX issue? Perhaps disable SELINUX temporarily and see if the problem persists. On Tue, 11 Mar 2014 20:07:48 -0400 Shawn Milochik wrote: > Hi Russ, thanks for the reply. > > What I mean by "under Django" is if I call it from within a view or with > "manage.py

Re: Ticket #7231, join in extra for querysets ?

2014-03-11 Thread Russell Keith-Magee
On Tue, Mar 11, 2014 at 8:42 PM, Matthieu Rigal wrote: > Hi Russel, > > On Tuesday, March 11, 2014 1:16:19 AM UTC+1, Russell Keith-Magee wrote: > >> >> On Tue, Mar 11, 2014 at 2:14 AM, Matthieu Rigal >> wrote: >> >>> Hi guys, >>> >>> I wanted to talk about the ticket https://code. >>> djangoproje

Re: A subprocess call fails, but only under Django

2014-03-11 Thread Nick Santos
Hey Shawn, What does your web stack and environment look like? If it's failing during a fork with an out of memory, that makes me wonder if the host process for django is consuming a chunk of memory for some reason, and when it gets forked, it'll get replicated over (which supposedly would fail, e

Re: Looking for direction on some admin console customization.

2014-03-11 Thread Dennis Marwood
Derik, thanks for the reply. I reread my post; you are right, it is not very clear. I att

Re: Running into Unicode Decode Error when using django-admin.py startproject.

2014-03-11 Thread Erik Cederstrand
This might be because you have non-ASCII characters somewhere in your file path. Try getting a stacktrace to see where the error comes from: django-admin.py startproject mysite --traceback Erik Den 11/03/2014 kl. 18.13 skrev Billy Garnet : > I am having the same issue. Did you find a solution

Re: Timeseries Data Collection as a Reusable App

2014-03-11 Thread Russell Keith-Magee
On Tue, Mar 11, 2014 at 11:42 PM, RLange wrote: > I'm currently working on an app for browsing and visualizing time-series > data. Each point of time-series data may be a mix of Strings, Floats, and > Ints. In my current design, I have a separate model for each of my data > types, and I have been

A subprocess call fails, but only under Django

2014-03-11 Thread Shawn Milochik
Hi everybody. I have a weird problem. I have a small script that does a subprocess call. It works. It works when run via iPython. It blows up when run in manage.py shell or under Django with OSError: [Errno 12] Cannot allocate memory. Does anyone have any idea on how to fix this? It's not doing

Re: Timeseries Data Collection as a Reusable App

2014-03-11 Thread C. Kirby
Like number 2 but a little more amenable to searching https://github.com/bradjasper/django-jsonfield On Tuesday, March 11, 2014 10:42:24 AM UTC-5, RLange wrote: > > I'm currently working on an app for browsing and visualizing time-series > data. Each point of time-series data may be a mix of Str

Re: Documentation of modules

2014-03-11 Thread C. Kirby
There is a link to the module index on the django project site. Direct link: https://docs.djangoproject.com/en/1.6/py-modindex/ On Tuesday, March 11, 2014 11:33:24 AM UTC-5, Christian Waterkeyn wrote: > > Hello, > > I am looking for a reference documentation of the django modules. > For example dj

Re: Running into Unicode Decode Error when using django-admin.py startproject.

2014-03-11 Thread Billy Garnet
I am having the same issue. Did you find a solution? Python is working, Django is reporting a version number. When I run django-admin.py startproject mysite I get the folder create and then the following errors: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/

Documentation of modules

2014-03-11 Thread Christian Waterkeyn
Hello, I am looking for a reference documentation of the django modules. For example django.core.management I found by google the url: http://docs.nullpobug.com/django/trunk/django.core.management-module.html But I am not sure it is up-to-date, and surprised not to find it inside the djangoproje

Attempting to setup Graphite (Django/Gunicorn) DJANGO_PATH not set and "no such table: auth user"

2014-03-11 Thread Tony Su
Apache 2.4 on Ubuntu 13.10 First, If anyone knows of a working install script to install Graphite on any distro preferably (but not critical) using Apache2.4, gunicorn and WSGI, I'd appreciate it. I've been wending my way through a variety of undocumented and less documented issues that differ

Re: Timeseries Data Collection as a Reusable App

2014-03-11 Thread Jason Arnst-Goodrich
Without knowing much about your specifics, I would suggest looking into MongoDB. You'll have some of the issues in #2 and you obviously won't have a generic app that people without Mongo can use but I'd at least look into it before you go any further. On Tuesday, March 11, 2014 8:42:24 AM UTC-7

Timeseries Data Collection as a Reusable App

2014-03-11 Thread RLange
I'm currently working on an app for browsing and visualizing time-series data. Each point of time-series data may be a mix of Strings, Floats, and Ints. In my current design, I have a separate model for each of my data types, and I have been writing a new view for each one. In other words, my a

Re: Ticket #7231, join in extra for querysets ?

2014-03-11 Thread Matthieu Rigal
Hi Russel, On Tuesday, March 11, 2014 1:16:19 AM UTC+1, Russell Keith-Magee wrote: > > > On Tue, Mar 11, 2014 at 2:14 AM, Matthieu Rigal > > > wrote: > >> Hi guys, >> >> I wanted to talk about the ticket >> https://code.djangoproject.com/ticket/7231 in the django-dev forum, but >> my contribut

Re: Django-Associations v0.1.7 Released.

2014-03-11 Thread graeme
The docs say: It may or may not work with traditional Function Based Views Almost all views I write are function based. Its the same in most of the code I have seen from other people. You say "maybe" so I will try it when I get a chance... I would also really like to see it as a panel for DDT

error in displaying data from posgresql

2014-03-11 Thread Cherrymae Tulfo
hi again. . i am trying to display a feature queried from postgis. . i also designed a user input field to enter the id of the desired feature to be displayed. . i have already queried the attributes first before displaying the feature polygon. . and the attributes were already displayed on th