Re: Django gracefully shutdown

2012-12-08 Thread Roberto De Ioris
> > Hello! > > After lot of work I'm ready to deploy my site on production. I'll use > Nginx > with uWSGI or fastCGI (not sure yet), and my doubt is how can I shutdown > my > production Django app gracefully (for make changes for example). Of course > I can kill django-python-fcgi processes and re

Re: Django gracefully shutdown

2012-12-08 Thread fuxter fuxter
I found this solution pretty easy and to my likings: $ uwsgi ... --touch-reload /var/run/any_file_actually.pid ... # launching uwsgi $ touch /var/run/any_file_actually.pid # anytime i want to reload all the python code I'm using using uWSGI in master mode with handfull of small sites and this

Re: Model method versus overriding save()

2012-12-08 Thread Derek
Rather than use a trigger (which is DB-specific and also hard to debug because not part of your code base), suggest you use signals[1]. Derek [1] https://docs.djangoproject.com/en/dev/topics/signals/ On Saturday, 8 December 2012 04:27:50 UTC+2, Chris Cogdon wrote: > > It's a simple performance

Re: Django gracefully shutdown

2012-12-08 Thread Odagi
Thank you for all comments, hints and suggestions. I'll dive a bit more in uWSGI signals and documentations. Gunicorn seems to be a good option too, thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web v

Re: Scripting for Django-related Android apps?

2012-12-08 Thread Timothy Makobu
The book definitely helps. The phone app can interact with the django app via REST. On Sat, Dec 8, 2012 at 4:05 PM, Derek wrote: > Hi > > Can anyone share any experience on writing Android apps with Python ( > via SL4A) that interact with Django; and does the book "Pro Android > Python with S

Using etags for backend caching

2012-12-08 Thread Tom Eastman
Hey guys, My project makes pretty heavy use of etags for browser-level caching, but I'd like to go one step further and be able to cache pages on the backend keyed by the page's etag. As far as I can tell, none of the current built-in caching middleware/decorators or conditional processing d

Re: Internal Error after chaning SITE domain name and modifying html file...?

2012-12-08 Thread Ramiro Morales
On Fri, Dec 7, 2012 at 6:16 PM, easypie wrote: > Here's my apache log. I know this is outside of django but this might help > find the cause: http://dpaste.org/V9ONE/ thanks for the helps. >From the traceback you attached to the first message I'd say you need to review or post the /home/easyi/.v

Using X-editable with Django?

2012-12-08 Thread Steven L
I am trying to get X-Editable inline editing of a model in Django. I am simply trying to change attributes of a model instance (in this case, the name of a Dataset object). Whenever I try to make the inline edit, I get an error that says that t

Re: Internal Error after chaning SITE domain name and modifying html file...?

2012-12-08 Thread Ramiro Morales
On Fri, Dec 7, 2012 at 6:21 PM, easypie wrote: > Here's my wsgi.py file located in my project: http://dpaste.org/dBRqQ/ > Sorry I miesread the traceback. In,oine 4 of wsgi.py you import settings and the one reporting the about about /etc/apache2/https is settings.py Is it possible that you someh

Re: Model method versus overriding save()

2012-12-08 Thread Thomas Lockhart
On 12/8/12 5:37 AM, Derek wrote: Rather than use a trigger (which is DB-specific and also hard to debug because not part of your code base), suggest you use signals[1]. Hmm. Triggers have advantages over application-level code where they can be used. They are likely more efficient (no data needs

IOError, Permission Denied using Amazon s3 w/ django-storage?

2012-12-08 Thread easypie
I encountered an error where whenever I go to upload a file, it tells me that a folder doesn't have enough permission. What kind of permission do we give these folders? I use Apache server. Do I change the whole project folder to group www-data? Then set chmod to 775 to the project folder and a