Trying to delete objects from the django admin or app code, I'm
getting an error:
File "/home/styleseat/ssenv/lib/python2.6/site-packages/django/db/
models/base.py", line 595, in _collect_sub_objects
sub_obj._collect_sub_objects(seen_objs, self, related.field.null)
AttributeError: ‘NoneType’ obj
Hi,
1) My need for getting the current user is that I want the following columns on
all tables: created, created_by, updated and updated_by.
So I defined this abstract class which I inherit from on all models:
class AbstractCommonAll(models.Model):
r''' All our tables will be defined with t
hi,
a web search did not help, so does anyone know if there is a django
plugin/extension for geany?
--
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
ok in beginning
how i can get percentage for each vote ?
this result code
def results(request, poll_id):
p = get_object_or_404(Poll, pk=poll_id)
return render_to_response('polls/results.html', {'poll': p})
--
You received this message because you are subscribed to the Google Groups
On Thursday, March 31, 2011 4:57:20 PM UTC+11, bird sky wrote:
>
> hi Graham:
> i'm using the nginx+fcgi . And my startup command is below
>
> python manage.py runfcgi host=127.0.0.1 port=3033 method=prefork
> pidfile=/var/run/fcgi.pid minspare=5 maxspare=30 maxchildren=60
> maxrequests=20
Le 31 mars 2011 à 07:57, 付毅 a écrit :
> hi Graham:
> i'm using the nginx+fcgi . And my startup command is below
>
> python manage.py runfcgi host=127.0.0.1 port=3033 method=prefork
> pidfile=/var/run/fcgi.pid minspare=5 maxspare=30 maxchildren=60
> maxrequests=200
>
> p.s I've invite you
Hi
I missed out on that one, is it possible to see it online afterwards? I have
no problem paying the everbrite fee.
// mika
On Wed, Mar 30, 2011 at 10:17 PM, Shawn Milochik wrote:
> It just so happens that there's a two-hour Webinar by Jacob
> Kaplan-Moss tomorrow on this very topic:
>
> http
hi Graham:
i'm using the nginx+fcgi . And my startup command is below
python manage.py runfcgi host=127.0.0.1 port=3033 method=prefork
pidfile=/var/run/fcgi.pid minspare=5 maxspare=30 maxchildren=60
maxrequests=200
p.s I've invite you on gtalk, hope your response.
On Thu, Mar 31, 2011 at 6:
hi Diederik:
I think you can see something from my attach file, that indict i've
60M-70M per python process cost. That is because I start the flup with
command below:
python manager.py runfcgi host=127.0.0.1 port=3033 method=prefork
pidfile=/var/run/fcgi.pid minspare=5 maxspare=30 maxchildren=6
On Wed, 2011-03-30 at 22:24 -0400, Calvin Spealman wrote:
> They are completely unrelated. WX is a library for working with
> desktop-based UI toolkits, and Django is a framework for producing and
> delivering HTML/CSS/JS web content to a browser.
>
>
not really so - I remember writing apps in w
Assuming the South is very similar to Django from the documentation at the
link. Here are some pointers.
1. Have you tried listing manage.py by trying ls command?
2. If you try ls -l, what are the permissions for manage.py?
3. Have you tried python manage.py?
4. Is there a shebang line at the top o
What do you think about using Dajax and Dajaxice in Django? is it worth? or
you like to write your own ajax code?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe
I can't tell you how helpful this User Group has been to me!
With the help of several helpful responses and a lot of great articles
out there, I was finally able to install virtualenv and
virtualenvwrapper and get dajaxice working. I wrote all about it on my
blog, if there are any newbies wanting s
IBM_DB_DJANGO-1.0.2
---
IBM_DB_DJANGO adaptor enables access to IBM databases from Django
applications http://www.djangoproject.com/. The adaptor is developed
and maintained by IBM.
What's New?
- Added support for Django-1.3
- Backward compati
On Wednesday, March 30, 2011 07:24:24 pm Calvin Spealman wrote:
> They are completely unrelated. WX is a library for working with
> desktop-based UI toolkits, and Django is a framework for producing and
> delivering HTML/CSS/JS web content to a browser.
>
> On Wed, Mar 30, 2011 at 10:03 PM, Aref
On Wednesday, March 30, 2011 06:48:15 pm dlamotte wrote:
> I've documented what is going on here:
>
> http://stackoverflow.com/questions/5494178/why-doesnt-memory-get-released-t
> o-system-after-large-queries-or-series-of-queri
>
> Basically, the memory doesn't "grow continuously" but it isn't
>
You could add a header to the HTTP response that the JS on the
clientside can see and interpret as "OK, this is ready to close now."
I have done something similar to cause ajax-submitted forms to cause a
redirect in the containing page.
On Wed, Mar 30, 2011 at 10:24 PM, Mike Ramirez wrote:
> On W
Python itself allocates memory in large chunks and can't release them
until all objects in them have been garbage collected. Older versions
of CPython didn't even release this chunks at all.
On Wed, Mar 30, 2011 at 9:48 PM, dlamotte wrote:
> I've documented what is going on here:
>
> http://stack
On Wednesday, March 30, 2011 06:36:56 pm CrabbyPete wrote:
> I have a ajax form using smoothbox and mootools to show a form.
> Smoothbox has a button to close the box, but I want to force it closed
> once the submit button is pressed and the form validated. Is there a
> way django can close a brows
They are completely unrelated. WX is a library for working with
desktop-based UI toolkits, and Django is a framework for producing and
delivering HTML/CSS/JS web content to a browser.
On Wed, Mar 30, 2011 at 10:03 PM, Aref wrote:
> Hello,
>
> I have created a small app with wxpython to manage and
Hello,
I have created a small app with wxpython to manage and query databases
and now I am learning django and was wondering if it is possible to
incorporate some of the wxpython code in django. What I am trying to
do is to create the same app as the one in wxpython but make it web-
based rather t
I've documented what is going on here:
http://stackoverflow.com/questions/5494178/why-doesnt-memory-get-released-to-system-after-large-queries-or-series-of-queri
Basically, the memory doesn't "grow continuously" but it isn't
released to the system (yes DEBUG = False in settings.py). What I'm
see
I have a ajax form using smoothbox and mootools to show a form.
Smoothbox has a button to close the box, but I want to force it closed
once the submit button is pressed and the form validated. Is there a
way django can close a browser window?
--
You received this message because you are subscribe
On Wednesday, March 30, 2011 05:34:05 pm Jason Culverhouse wrote:
Just to add, if you have a seperate server and/or non-normal directory layout
for for images and css files, this method doesn't work that well either.
Again I'm not saying your suggestion is not a good one, it's just not one tha
On Wednesday, March 30, 2011 05:34:05 pm Jason Culverhouse wrote:
I don't think you don't grok me, I'm not arguing they aren't allowed and I do
know how they work. Your suggestion has been thought about, tossed around and
rejected, way before this conversation took place.
Mike
--
Of all forms
On Wed, Mar 30, 2011 at 6:34 AM, ALJ wrote:
> Hi Karen,
>
> Here is an example that I use to replicate the error:
>
> view >>
> [snip]
> >>
>
> form >
> class RatingsListFilterForm(
On Mar 30, 2011, at 5:10 PM, Mike Ramirez wrote:
> On Wednesday, March 30, 2011 05:01:08 pm Jason Culverhouse wrote:
>> On Mar 30, 2011, at 4:50 PM, Mike Ramirez wrote:
>>> On Wednesday, March 30, 2011 04:20:32 pm Shawn Milochik wrote:
I have the exact same problem. I hope there is a solutio
On Wednesday, March 30, 2011 05:01:08 pm Jason Culverhouse wrote:
> On Mar 30, 2011, at 4:50 PM, Mike Ramirez wrote:
> > On Wednesday, March 30, 2011 04:20:32 pm Shawn Milochik wrote:
> >> I have the exact same problem. I hope there is a solution, because
> >> good site design often results in imag
On Wednesday, March 30, 2011 04:58:42 pm Sells, Fred wrote:
> This may be using a canon to swat a fly, but...
>
> I had a project some time ago where I needed a very repetitive
> java/swing UI. I ended up creating python classes that had a __repr__
> method that generated the java source code. T
On Mar 30, 2011, at 4:50 PM, Mike Ramirez wrote:
> On Wednesday, March 30, 2011 04:20:32 pm Shawn Milochik wrote:
>> I have the exact same problem. I hope there is a solution, because
>> good site design often results in image references in the CSS.
>
>
I think you guys are over analyzing the
This may be using a canon to swat a fly, but...
I had a project some time ago where I needed a very repetitive
java/swing UI. I ended up creating python classes that had a __repr__
method that generated the java source code. Then I was able to have
very concise python files that instantiated the
On Wednesday, March 30, 2011 04:20:32 pm Shawn Milochik wrote:
> I have the exact same problem. I hope there is a solution, because
> good site design often results in image references in the CSS.
The best one I've come up with and it's far from 'best' is to run a command
that edits css template
for different databases the query could be formatted as
s=temp1.objects.using("mytemp").filter(refId=table1.objects.using("normal").get(pk=something).id)
where temp1 is table in database mytemp.table1 in databse normal
I cannot understand the get argument but may be if you give it a try
with a sui
for different databases the query could be formatted as
s=temp1.objects.using("mytemp").filter(refId=table1.objects.using("normal").get(pk=something).id)
I cannot understand the get argument but may be if you give it a try with a
suitable args."using" differentiates between databases.
For the fir
I have the exact same problem. I hope there is a solution, because
good site design often results in image references in the CSS.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
Like many people, I'm switching over to use a static directory to
serve site media. Overall, it works extremely well, but I have a
question about one aspect of it.
I have a CSS file that includes urls. I was wondering about the
possibility of the staticfile app inserting the proper STATIC_URL as
i
The method works perfectly. Thanks once again.
On Mar 30, 5:36 pm, rohan wrote:
> Hey Ryan,
>
> That seems very helpful. I will try using this argument.
> Thanks a lot.
>
> Rohan
> On Mar 30, 5:10 pm, Ryan Osborn wrote:
>
>
>
>
>
>
>
> > Have you considered using the 'through' argument for the m
Hey Ryan,
That seems very helpful. I will try using this argument.
Thanks a lot.
Rohan
On Mar 30, 5:10 pm, Ryan Osborn wrote:
> Have you considered using the 'through' argument for the many to many
> field? This lets you specify your own intermediate table to which you can
> add extra data. So
Why are you using prefork MPM and running Django embedded that way.
Prefork MPM may be fine for PHP, but it is a poor solution for fat Python
web applications unless you are prepared to give it the necessary memory
resources and configure Apache properly specifically for that single Python
web
Hi. I write blog application. I want multiline TextField.
Sample : paragraph or tab or return
thanks.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from
Have you considered using the 'through' argument for the many to many
field? This lets you specify your own intermediate table to which you can
add extra data. So you could add in a quantity field so you would know how
many of each molecule you need.
Here is the documentation:
http://docs.dj
Op woensdag 30 maart 2011 17:48:38 schreef 付毅:
> hi Xavier Ordoquy
> So , you mean 60M per python process is in a normal status? I really
> encouter this kind of website before
Please note this is for the entire website, not per apache instance.
There is one Django process (via mod_wsgi, or standa
On Mar 30, 2011, at 2:31 PM, Pablo Vidal wrote:
> I need to know how to filter in the django admin model License, the
> licenses of the user logged-in to the admin.
>
> class License(models.Model):
>user = models.ForeignKey('wiki.User')
>name = models.CharField(max_length = 100)
>
>
I need to know how to filter in the django admin model License, the
licenses of the user logged-in to the admin.
class License(models.Model):
user = models.ForeignKey('wiki.User')
name = models.CharField(max_length = 100)
def __unicode__(self):
return self.name
Example:
So i
Guys, can I have a persistent connection in models django
eg I have an infinite loop with a sleep (1) and then a model.save ()
but every save he opens and closes a new connection, creating an unnecessary
deman of connections and processing.
Anyone know how to circumvent it? for example using a con
Hi,
I am creating a chemistry database using django's admin interface in
Sqlite3.
The database has a simulations table which has a many to many
relationship with the compounds table.
Each simulation needs to start off with a fixed number of compounds
that it has and each simulation can have 1 or
What do you mean by "if I refresh a page"? If you refresh a page that
has a form on it but has not been submitted, I wouldn't expect the
behavior you describe.
If you submit a form improperly and it displays errors, then you hit
'refresh,' the view will still get the POST (or GET) and will do
what
On 30 mar, 21:55, justin jools wrote:
> I've just started using custom tags and need some help parsing info
> to:
>
> @register.tag
> def friends_of(parser, token):
> tag_name, user_var = token.split_contents()
Don't assume you'll only have what you expected here. The canonical
form would b
I have an edit screen with more than a dozen fields on it of various
types (text/CharField, select/CharField, date/DateField). When I
refresh the screen sometimes I want to suppress all of the field
required errors generated by empty fields prior to the refresh
actually taking place. So far I have
I think 60M is fine. For us, with nginx in front of gunicorn, we can get
many simultaneous connections per process.
-Adam
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To u
MrMuffin,
You've also have the editra group where the author use to answering
quickly all of the questions posted there:
https://groups.google.com/group/editra?hl=en
I like your ideas and features to add into the plugin for django.
Good luck !
Roberto
On Mar 30, 4:21 pm, MrMuffin wrote:
> I`m
yeah, shawn said the exact dilemma I am having. I am working with a
plugged in app and dont want to change its code and mess with its
views and create a new fork, it just seems like small thing to make a
change for (and I would probably mess something else up).
On Mar 30, 11:58 am, Shawn Milochik
On Wed, Mar 30, 2011 at 3:14 PM, jay K. wrote:
> hello,
>
> what i'm trying to do is to create a subpage for a website written in
> django
>
> e.g.
>
> for http://www.xzy.com/subpage I'd like to add 'subpage2', so it would
> look like
>
> http://www.xzy.com/subpage/subpage2
Read: http://docs.dj
Probably adding "http://www.xzy.com/subpage/subpage2"; to your URLConf.
2011/3/30 jay K. :
> hello,
>
> what i'm trying to do is to create a subpage for a website written in django
>
> e.g.
>
> for http://www.xzy.com/subpage I'd like to add 'subpage2', so it would look
> like
>
> http://www.xzy.co
hello,
what i'm trying to do is to create a subpage for a website written in django
e.g.
for http://www.xzy.com/subpage I'd like to add 'subpage2', so it would look
like
http://www.xzy.com/subpage/subpage2
how do i do that?
thanks
On Wed, Mar 30, 2011 at 4:20 PM, Xavier Ordoquy wrote:
>
> L
I've just started using custom tags and need some help parsing info
to:
@register.tag
def friends_of(parser, token):
tag_name, user_var = token.split_contents()
return FriendsOfNode(user_var)
class FriendsOfNode(template.Node):
def __init__(self, user_var):
self.user_var = tem
Using eclipse you can create a run configuration that starts the
dbserver and it will auto-reload whenever you change a file. Of course
since the dbserver auto restarts when it detects a file change, the
command line is not all that bad.
-Original Message-
From: django-users@googlegroups.
I`m trying to develop a simple plugin[0] for the Editra[1] editor for
django development. Right now it can create django projects and apps
from within the editor. The editor is based on wxPython and I want to
start the devserver from within the editor, show a simple form with
the option to stop or
Le 30 mars 2011 à 21:16, jay K. a écrit :
> Hello,
>
> How do you create a new subpage in django?
>
> thanks
Hi,
What do you mean or I'd rather ask, what are you trying to do ?
Regards,
Xavier.
--
You received this message because you are subscribed to the Google Groups
"Django users" gro
Hi,
Sounds correct to me.
Regards,
Xavier.
Le 30 mars 2011 à 17:48, 付毅 a écrit :
> hi Xavier Ordoquy
> So , you mean 60M per python process is in a normal status? I really encouter
> this kind of website before
>
> On Wed, Mar 30, 2011 at 11:35 PM, Xavier Ordoquy wrote:
>
> Le 30 mars 2011
Hello,
How do you create a new subpage in django?
thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr..
The problem I'm having is this. Those fields that I do not include in
my form attempt to update the DB, when the post data is missing those
values it blanks out those fields in the DB.
I have gotten around this by explicitly stating the fields I would
like to update but if I try to include data th
Jacob,
This sort of thing comes up so frequently on this list that we've all
seen those answers dozens of times, although not usually in so concise
a manner.
My question, to which there seems to be no answer, is what a good
approach to do something that I know (from spending a long time on
this l
On Mar 30, 2011, at 9:47 AM, Calvin Spealman wrote:
> I think your best bet is
>
> MyModel.objects.filter(some_field__in=ok_values).count() == len(ok_values)
>
> On Wed, Mar 30, 2011 at 12:44 PM, dmitry b wrote:
>> Hi,
>>
>> is there a way to check in bulk for record existence and get back a
On Wed, Mar 30, 2011 at 1:11 PM, Tony wrote:
> Is there a way to use the "request.user" attributes in a custom model
> manager? So I could filter by certain attributes the current logged
> in user has? This is the preferable way I would like to filter the
> objects the user sees, so if there is
I am using inlineformsets_factory on a form and every time I save
those fields that are not made available in the form are overridden to
null values on save.
How do i get it just to update those fields that are specifically
listed in the form?
--
You received this message because you are subscri
Is there a way to use the "request.user" attributes in a custom model
manager? So I could filter by certain attributes the current logged
in user has? This is the preferable way I would like to filter the
objects the user sees, so if there is a way, I would appreciate the
help. If there is no wa
I've got a strange situation and I was wondering how to handle it.
The database has stored procedures that crunch on tables and store the
results in temporary tables. These resulting tables point to various
records in persistent tables.
The first question is how to control the connection in Djan
If you're talking about the line that imports your app, that usually
means you have an error in your application code (the views or the
models). Try starting the shell and run "import x" manually and
see what errors you get.
-Eddie
On Mar 30, 11:57 am, "jay K." wrote:
> hi, Shawn
>
> I finall
I think your best bet is
MyModel.objects.filter(some_field__in=ok_values).count() == len(ok_values)
On Wed, Mar 30, 2011 at 12:44 PM, dmitry b wrote:
> Hi,
>
> is there a way to check in bulk for record existence and get back a
> map of results similar to what's returned by in_bulk(). In my cas
Hi,
is there a way to check in bulk for record existence and get back a
map of results similar to what's returned by in_bulk(). In my case, I
need to look up records by a unique field which is not the primary key
and I don't want object instances back, just true or false.
Thanks
Dmitry
--
You
I've been googling and trying this for 2 days now, I'm sure I'm just
confused about something basic because it cannot be that hard. I've
tried all the hints I found via google and they made sense but no
success.
I'm running RHEL 6 Python 2.6.5, django 1.2.4 and mod_wsgi 3.2. I'm
trying to config
On Wed, Mar 30, 2011 at 11:57 AM, jay K. wrote:
>
> hi, Shawn
>
> I finally managed to get python manage.py shell to work, by commenting
> out those INSTALLED_APPS that had an issue with 'import x'
>
> it turns out that 'import x' was the problem.
>
> do you have any suggestions to fix 'im
hi Xavier Ordoquy
So , you mean 60M per python process is in a normal status? I really
encouter this kind of website before
On Wed, Mar 30, 2011 at 11:35 PM, Xavier Ordoquy wrote:
>
> Le 30 mars 2011 à 15:41, 付毅 a écrit :
>
> > i don't think 100 instance means to 100 CPUs. I just want to use
> ht
hi, Shawn
I finally managed to get python manage.py shell to work, by commenting
out those INSTALLED_APPS that had an issue with 'import x'
it turns out that 'import x' was the problem.
do you have any suggestions to fix 'import x'?
thanks
On Wed, Mar 30, 2011 at 12:25 PM, jay K.
On Mar 30, 9:36 am, Dipo Elegbede wrote:
> Hi all,
>
> I have a django application that uses mysql database.
>
> Everything works just fine except that I noticed some queries do spend a lot
> of time to load.
>
> I have about 15,000 checklists the system would have to browse through to
> render my
Le 30 mars 2011 à 15:41, 付毅 a écrit :
> i don't think 100 instance means to 100 CPUs. I just want to use http_load to
> test pressure to my web server. if i make the 100 cocurrent request per
> second with 100 cocurrent connection. I will make 100 python process instance
> when I deploy my web
Hello, Shawn
I type python manage.py shell in my project directory and get the following
error
Error: No module named xx
regards
On Wed, Mar 30, 2011 at 11:52 AM, Shawn Milochik wrote:
> Check the permissions on manage.py. I'm guessing it's not executable.
>
> Either use chmod +x on manag
Hi,
Try it: python manage.py
On Wed, Mar 30, 2011 at 9:52 AM, Shawn Milochik wrote:
> Check the permissions on manage.py. I'm guessing it's not executable.
>
> Either use chmod +x on manage.py or execute it with Python: python
> manage.py.
>
> --
> You received this message because you are subs
In need of 2 Python, Django developers, for Mobile Applications, ASAP
In the NYC area for the 3 largest media company in the country.
Permanent roles
Functions:
Develop back end services for Mobile Applications
Develop extensible online applications
Develop and maintain Automated Testing
Check the permissions on manage.py. I'm guessing it's not executable.
Either use chmod +x on manage.py or execute it with Python: python manage.py.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-user
Hello,
I am following the tutorial at
http://south.aeracode.org/docs/installation.html#installation-configure in
order
to install South.
I've installed it successfully and modified INSTALLED_APPS so
it includes 'south', in the settings.py
now I execute the command: ./manage.py shell inside my cu
Hi David. Thanks for the response. Took a detour and just returned to this
task.
I decided to do a quick check on file extension after all. This is in the
admin area and for now this will have to do:
def save_model(self, request, obj, form, change):
try:
file_name = reque
All-caps hurts my eyes. Did not read.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
F
No, the forms.ValidationError has to be raised in one of the clean()
methonds of your model. Otherwise it will result in a stack trace.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroup
Hi all,
I have a django application that uses mysql database.
Everything works just fine except that I noticed some queries do spend a lot
of time to load.
I have about 15,000 checklists the system would have to browse through to
render my dashboard, which indicates which checklists is totally c
Hi all,
In the admin.py code of my project, I have an override to a save() method
where I check a file upload's extension and, based on that,
should either save the instance object or update show an error message on
the admin form as follows:
def save_model(self, request, obj, form, change):
Do you have any caching in front of things?
On Wed, Mar 30, 2011 at 7:07 AM, Chris Curvey wrote:
> When my Django system is under heavy load (system CPU > 90%), I start
> getting complaints from users that their authentication changes in the
> middle of a session. For example:
>
> 1) Bob logs in
Use South:
http://south.aeracode.org/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
F
send your error also ;)
On 03/30/2011 06:40 PM, jay K. wrote:
Hello,
I've been struggling for quite a white with this
whenever i change my models.py file by adding a new text area
I get a 'error 500 internal server error'
besides i keep getting an error whenever i try to syncdb my database
c
Hello,
I've been struggling for quite a white with this
whenever i change my models.py file by adding a new text area
I get a 'error 500 internal server error'
besides i keep getting an error whenever i try to syncdb my database
can anyone please explain what i'm doing wrong?
thanks
--
You
It just so happens that there's a two-hour Webinar by Jacob
Kaplan-Moss tomorrow on this very topic:
http://www.eventbrite.com/event/1008507473
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@go
hi Bennett:
i attache my ps output file, just see the RSS column, that is the real
memory usage for every instance
On Wed, Mar 30, 2011 at 9:51 PM, James Bennett wrote:
> On Wed, Mar 30, 2011 at 8:41 AM, 付毅 wrote:
> > i don't think 100 instance means to 100 CPUs. I just want to use
> http_load
2011/3/30 Thiago Carvalho D' Ávila :
> I have a project running in Django 1.2.5 and I want to update it (the code)
> to Django 1.3. I've seen the release notes, but there is no direct
> instructions to what I have to change in the code.
Every item in the release notes that mentions a required chan
On Wed, Mar 30, 2011 at 8:41 AM, 付毅 wrote:
> i don't think 100 instance means to 100 CPUs. I just want to use http_load
> to test pressure to my web server. if i make the 100 cocurrent request per
> second with 100 cocurrent connection. I will make 100 python process
> instance when I deploy my we
I've found one of my app module has a large model. there are 207 models in
models.py. When I add this app module into INSTALL_APPS, the process
instance memory increase nearly 10M more.
I think can I move these model classes out of my models.py file and move
them in to another .py file. And when
i don't think 100 instance means to 100 CPUs. I just want to use http_load
to test pressure to my web server. if i make the 100 cocurrent request per
second with 100 cocurrent connection. I will make 100 python process
instance when I deploy my web project in prefork environment. Any others
agree w
You can setup gmail in your settings.py
DEFAULT_FROM_EMAIL = 'your-email@your-domain'
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'your-gmail-usern...@gmail.com'
EMAIL_HOST_PASSWORD = 'your-gmail-password'
And you can use the email_user() method of the mo
Hi,
django-registration can take care of this for you:
https://bitbucket.org/ubernostrum/django-registration/
Ryan
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscr
I have a project running in Django 1.2.5 and I want to update it (the code)
to Django 1.3. I've seen the release notes, but there is no direct
instructions to *what I have to change in the code*.
It would be very useful to me, to all the community (I know that a lot of
people may be in the exact s
1 - 100 of 116 matches
Mail list logo