|
I'm running Django, and I'm creating threads that run in parallel while Django runs. Those threads sometimes run external processes that block while waiting for external input.
When I restart Django, those threads that are blocking while awaiting external...
Started by Brian M. Hunt on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Alternatively, you could be very heavyWhat are you using to restart django? I'd put something in that script to look for process id's handed and just run something like....
In the socket file(s) and kill those before starting django.
|
|
I'm using Django 1.1 with Mysql 5.* and MyISAM tables.
Some of my queries can take a TON of time for outliers in my data set. These lock the tables and shut the site down. Other times it seems some users cancel the request before it is done and some queries...
Started by Paul Tarjan on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
You can at least get doing a Django DB-replication app....
A less drastic measure (based on what you think is "long") and kill ones it sees are running too long.
It seems that the only reliable way to abort a query is the kill command .
|
|
This is one of the things I've been hearing in Django VS ASP.NET discussion. I personally find it hard to believe but I never tried Django.
So my question is: assuming that I am equally familiar with both python and the .NET framework but I do not know...
Started by JohnIdol on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
I find....
Yes, if you are familiar with Python and do to all, "it depends" on many factors .
Always.
Use what you already know.
Do you know Python? Do you know Django? Do you know how to configure your web server to work with Python or Django.
|
Ask your Facebook Friends
|
Have you considered using Django and found good reasons not to do so?
Started by hamdiakoguz on
, 15 posts
by 15 people.
Answer Snippets (Read the full thread at stackoverflow):
Before, they were stalling at 0.96 from......
Django 1.0 has just been released.
I personally don't like Django's ORM at all, and usually opt for SQLAlchemy if I choose some presentation code mixed into your Python business logic after all.
|
|
I wanted to reset a database and issued a drop database followed by a create database on a postgresql server accessed through psycopg2 by a django app.
When I do ./manage.py syncdb I get the following error:
(prod)root@ns204612:/home/someproject/prod/...
Answer Snippets (Read the full thread at stackoverflow):
During syncdb Django does some db from either django....
It down to the commit at 2979ea3d4541f7b3c51c17e160bc95b468ac999b on django-mingus
If you reset back of this was an issue in django-request which is used by Django-Mingus.
|
|
I moved my first Django project from DjangoEurope to Webfaction, and that started an issue looking like a memory leak. With every single request memory usage of the server process goes up about 500kb. It never goes down. This goes on until Webfaction ...
Started by Ludwik Trammer on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Your-django-mod-python-memory-usage-down
We have deploy an app in WebFaction and we are not having/p/django-dowser/ , it is a very useful app for detecting memory leaks and figuring out what parts the most recent version od mod_wsgi (Webfaction....
|
|
I'm running a django instance behind nginx connected using fcgi (by using the manage.py runfcgi command). Since the code is loaded into memory I can't reload new code without killing and restarting the django fcgi processes, thus interrupting the live...
Started by evo on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Except for the fcgi server socket, close the fcgi server socket in parent, exec a new django process of FastCGI
http://www.eflorenzano.com/blog/post/spawning-django/
So I went ahead and implemented=prefork pidfile=$pid_file echo $port_....
|
|
I would like to dynamically create thumbnails based on parameters in the URL. For example, http://mysite.com/images/1234/120x45.jpg would create a 120x45 thumbnail for image id 1234 .
The obvious solution to this is to have a django view which does the...
Started by Gattster on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Simply have your server....
You don't have to use Django to serve the static content directly.
Http://bitbucket.org/jdriscoll/django-imagekit/wiki/Home
You can also try sorl , it is being used by Satchmo .
Check out django imagekit.
|
|
How to serve users a dynamically generated ZIP archive in Django?
I'm making a site, where users can choose any combination of available books and download them as ZIP archive. I'm worried that generating such archives for each request would slow my server...
Started by zuber on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
You can use Django's cache ....
Django doesn't directly handle the generation.
To be served from Django? A 90's era CGI script to generate a zip and spit it to stdout is really all that's required here, at least as far as I can see.
|
|
Hi stack overflow,
I guess this is a really novice question, still I'm having trouble with django templates and CharField models.
So I have a model with a CharField that creates a slug that replaces spaces with underscores. If I create an object Somename...
Started by Markos Gogoulos on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Django sees the object internally as having two spaces (judging by the two underscores and two, though I don't know offhand how you'd get Django to encode the output of that specific object.
|