Re: Advice on python version for new project

2016-08-15 Thread Nick Santos
I'd recommend Python 3 at this point unless you encounter a good, specific reason to use Python 2. If you use the six module, it's really easy to write code that can be used for both versions without writing conditionals everywhere. If you then encounter something

Re: Fwd: Moving from 1.2 to 1.6

2014-04-09 Thread Nick Santos
> your Django settings file. Change that to False, and only the initial > error message will be displayed. > > You can customize this page using the CSRF_FAILURE_VIEW setting. > > Johnf > > On 04/09/2014 04:25 PM, Nick Santos wrote: > > Hey John, > > Is this a

Fwd: Moving from 1.2 to 1.6

2014-04-09 Thread Nick Santos
Hey John, Is this a server you could turn set DEBUG=True for and send this list the results of the error page that's produced? That could be super valuable in tracking

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,

Re: Gunicor + Postgres + Python 3

2014-03-09 Thread Nick Santos
Hey Henrique, Can you send the code for the view that generates the page? -Nick On Sun, Mar 9, 2014 at 9:14 PM, Henrique Oliveira < henriqueollive...@gmail.com> wrote: > Hi there, > > I have set Django + gunicorn + python 3 in a production env, but I am > gettin

Re: DDT not showing

2014-03-09 Thread Nick Santos
Since you didn't say that you have - did you add it to your INSTALLED_APPS? -Nick On Sun, Mar 9, 2014 at 12:03 PM, Aiden wrote: > Hi all, > > Banging my head against a wall trying everything to get DDT to appear > using Gunicorn+nginx > I have the

Re: Django Windows Install Issues

2014-02-25 Thread Nick Santos
Hi Joe, You shouldn't need to set any paths to install Django. If you open a command prompt up and navigate to the folder (or hold down shift and right click in the folder and select "Open Command Window Here" then run the command "python setup.py install" it will install Django. Also, I'd

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: How do I test my Django App on my Phone

2013-12-09 Thread Nick Santos
I'm not familiar with the method you mentioned - and don't think it should work unless you establish a network connection through your USB connection, amongst other things. In a basic sense, 0.0.0.0 is nonroutable if you try to access it externally. That runserver command, if I remember correctly,

Re: To Django or not to Django

2013-11-24 Thread Nick Santos
I'd say the answer depends on your personal capabilities and objectives. "Best" tends to always be relative to what you know and your personal requirements as much as to you specific design requirements. Nothing you've said here sounds like it couldn't be done with a CMS and some plugins, and if

Re: Django: Temporary "wait page" while heavy compute processing is handled

2013-08-12 Thread Nick Santos
Hi Howard, You will want to look into Celery , which lets you do heavy processing outside of your web requests. You can then use some checking via Javascript to see if the work is done yet and load a new page, or ask the user to come back later. There's a celery "app"

Re: Using Django and R in a production environment?

2013-04-30 Thread Nick Santos
Is Django a hard and fast requirement? If so, is it just about integrating the routines? I think otherwise something like RStudio Server would work for you. I've deployed it previously and it was a pretty nice setup. It's based on Unix user accounts, so R processes run as if users were running

Re: performance of delete

2013-04-24 Thread Nick Santos
with some clever django-ing you can utilize the core principles of this. IN vs JOIN vs EXISTS: http://explainextended.com/2009/06/16/in-vs-join-vs-exists/ NOT IN vs NOT EXISTS vs LEFT JOIN / IS NULL: http://explainextended.com/2009/09/18/not-in-vs-not-exists-vs-left-join-is-null-mysql/ Nick Santos

Re: Django in Eclipse+PyDev, lot's of functions and imports are undefined/unresolved

2012-10-26 Thread Nick Santos
I don't have a solution, but I can indicate that the same thing has happened to me on a standard install of Python 2.7.2 (no virtualenv) on Windows 7, so I don't know that it's anything about your setup in particular, if that helps. -Nick On Fri, Oct 26, 2012 at 9:48 AM, Chris Pagnutti

Re: Should we have a database independent SQL like query language in Django?

2012-10-06 Thread Nick Santos
I agree with Babatunde. I think it would be too much of a barrier to entry and tries to solve some of the problems that the ORM/SQL in general solve or are intended to solve (generalizability). I'd personally rather enhance the ORM where necessary, or suggest that if you plan on switching between

Re: My "Contributors" page Conundrum

2012-08-27 Thread Nick Santos
Hi JJ, You're absolutely right that there is a better way to do this that doesn't involve repetition. To start with, check out the docs under example on the page for the URL dispatcher: https://docs.djangoproject.com/en/dev/topics/http/urls/ - I'll walk you through part of it though. First,

Re: After form validation, need to post and call a perl program to display to a log file

2012-08-24 Thread Nick Santos
Obligatory followup (though the docs I believe cover this pretty well) - be *very* careful calling subprocess with anything related to a form submission. Read the documents that Melvyn linked to carefully because you can be opening a massive security hole. If this is just temporary to check