Dynamic class definitions

2007-12-04 Thread DeliciousPy
I'm thinking of trying to start making a CRM/ERP system, I had just started working on an inventory app, when I ran into a problem. I want to be able to change the definition of an existing class (and the associated parts of the DB) during runtime, from a web interface. I'll describe the

Re: (newbie) Can I filter by the fields of a ForeignKey when making a QuerySet?

2007-12-04 Thread tenni
Ha ha! It works!! This is exactly what I was trying to get at! Thanks a lot Karen. ...funny thing is I had a browser tab open on that very docs page! Concentration levels must be dropping off... time for food. --~--~-~--~~~---~--~~ You received this message

Re: (newbie) Can I filter by the fields of a ForeignKey when making a QuerySet?

2007-12-04 Thread Karen Tracey
On 12/4/07, tenni <[EMAIL PROTECTED]> wrote: > > > Apologies if this is obvious. I'm still coming to grips with Views in > general... > I want to get a QuerySet of Items filtered by their ProductType for > use in a template. [Model below] > > I want to display a page of all the Items of a given

Re: Installing Django on VPS with 128mb ram

2007-12-04 Thread Chris Moffitt
On my blog post here - http://www.satchmoproject.com/blog/2007/sep/25/optimizing-django-vps-setup/ I wrote some of my tips for configuring MySQL to use less memory. I also have some general thoughts on vps setup for django apps. HTH, Chris --~--~-~--~~~---~--~~

Re: Installing Django on VPS with 128mb ram

2007-12-04 Thread walterbyrd
For me, it's all about the learning experience. Here is one thing I've learned: MySQL *devourers* memory. Just running my basic VPS: debian, ssh, lighttpd, uses about 12mb or ram. If I run - or rather try to run - mysql, memory usuage shoots up to 130mb and the system becomes nearly unusable. I

(newbie) Can I filter by the fields of a ForeignKey when making a QuerySet?

2007-12-04 Thread tenni
Apologies if this is obvious. I'm still coming to grips with Views in general... I want to get a QuerySet of Items filtered by their ProductType for use in a template. [Model below] I want to display a page of all the Items of a given ProductType. ie. all the different versions (Items) of

No more Expensive Gasoline

2007-12-04 Thread ivant
The Hydrogen Boost Fuel System is reusable and you will be able to install it and reinstall in any of your future cars. The system will pay off for itself guaranteed. And on top of saving money, improving gas mileage, horsepower and emissions, you also will be making more out of your gas, every

Problems with TIME_ZONE (bug?)

2007-12-04 Thread Diego pylorca
in models that contain DateTimeField with auto_now_add=True, some times the timezone fails (the row is saved with no TIME_ZONE that I have specified in the settings.py, but some time o.O ) I've a Debian etch linux server with : Apache2.2 prefork mysql Ver 14.12 Distrib 5.0.32, for pc-linux-gnu

Nintendo Wii ,

2007-12-04 Thread ivant
Nintendo wii , X box 360, PS3, Nintendo ds We have all games below wholesale price and all warranties only At www.bangbangboomboom.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Cannot resolve keyword 'userprofile' into field.

2007-12-04 Thread Malcolm Tredinnick
On Mon, 2007-12-03 at 18:53 -0600, James Bennett wrote: > On 12/3/07, gkelly <[EMAIL PROTECTED]> wrote: > > I'm getting the following Traceback sporadically (using Django 0.96 > > and mod_python on linux). > > I can hit refresh and the page comes up fine, but sometimes this error > > will happen

Re: Installation - symlink vs. python setup.py install

2007-12-04 Thread Graham Dumpleton
BTW, that it is looking in: /Library/Python/2.5/site-packages suggests your mod_python is using MacPorts Python. Where were you actually symlinking in to? If you were symlinking into /System/Library/Frameworks/Python/Current/ lib/site-packages it wouldn't find it as it doesn't look there.

Re: Installation - symlink vs. python setup.py install

2007-12-04 Thread Graham Dumpleton
On Dec 5, 10:29 am, Greig Rapley <[EMAIL PROTECTED]> wrote: > Unfortunately that hasn't worked. I even tried chown'ing the entire > tree beneath django-trunk, and the symlink itself, to www:www. Still > mod_python says that it cannot import django.core.handlers.modpython. > I have gone through

Developer job opening in Pacific Northwest

2007-12-04 Thread RyanP
Just a quick note to any Django developers on this list who might be interested in working in journalism up here in the Northwest: We're still taking resumes for a newsroom developer. Newspapers really are a great place for a programmer -- your skills are *highly* appreciated, you have a lot of

Re: Installation - symlink vs. python setup.py install

2007-12-04 Thread Greig Rapley
Unfortunately that hasn't worked. I even tried chown'ing the entire tree beneath django-trunk, and the symlink itself, to www:www. Still mod_python says that it cannot import django.core.handlers.modpython. I have gone through your mod_python mptest exercise again and everything works fine.

Help debugging Django/MySQLdb exception

2007-12-04 Thread Brian Morton
I'm not sure what could be causing this problem. This is a loader script that is loading a CSV and using the Django ORM to do lookups and inserts. This is on a workstation with 1GB of memory running Ubuntu Gutsy (the MySQL server is local also). I'm using MySQLdb 1.2.2 and there do not seem to

Re: Fwd: Break with Django SVN r6718

2007-12-04 Thread Josh Stone
I just found that commit 6871 fixed the problem by reverting 6718: "Undid [6718], as it broke 'django-admin.py runserver' for a reason I haven't figured out yet" But since there still seems to be some mystery, I went on with some debugging on 6718 anyway below. On Dec 2, 6:53 am, Malcolm

Re: Another new Django site

2007-12-04 Thread John M
Wow, thanks for the compliment, but I hardly know django at all but did give you that one SMALL hint on your question I recall. Neat site, good luck with it. John On Dec 3, 11:18 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Many, many folks on this list helped me with many many things

Re: Installing Django on VPS with 128mb ram

2007-12-04 Thread Graham Dumpleton
On Dec 5, 3:06 am, walterbyrd <[EMAIL PROTECTED]> wrote: > On Dec 4, 7:12 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 04-Dec-07, at 7:05 PM, walterbyrd wrote: > > > I may also install drupal on the same site, so I'll probably go with > > > mysql. I don't know if that matters. > > >

Re: Why are 'greater than', 'less than's getting rendered as HTML entities?

2007-12-04 Thread JHeasly
Ya see? I *knew* it was obvious ... as I already had the "Backwards- incompatible changes" page open. The problem was is that I was convinced it was a unicode-merge issue so I've been up and down http://code.djangoproject.com/wiki/UnicodeBranch#PortingApplicationsTheQuickChecklist and

Re: Why are 'greater than', 'less than's getting rendered as HTML entities?

2007-12-04 Thread James Bennett
On 12/4/07, JHeasly <[EMAIL PROTECTED]> wrote: > it works as expected. So it seems something in the templating response > food chain is converting the greater than's/less than's(?). > > What is the obvious thing I'm missing? You're going against the strong recommendation of the Django project,

Why are 'greater than', 'less than's getting rendered as HTML entities?

2007-12-04 Thread JHeasly
Hello, I'm missing something somewhere. Somebody please point me in the right direction. I'm using Rev. 6865. My view.py: def foo(request) : return render_to_response('classifieds/blank.html', { 'content': "", }, mimetype

Read these articles career development : Forward to your children.

2007-12-04 Thread P K Kothari
- How and when to apply for H-1B visa to the US - Should your company be worried about your blog? - 'I became a

Re: Memcached Shared Caching - What if one of the servers drops out?

2007-12-04 Thread [EMAIL PROTECTED]
> Memcached.py (the client library) will mark a server as dead, and then > continue to use the remaining servers. The tuple error seems to be in > how the error is passed to mark_dead: the client code is inconsistent > about what part of the failure exception it uses. Is this a problem/bug with

Re: Installing Django on VPS with 128mb ram

2007-12-04 Thread Kenneth Gonsalves
On 04-Dec-07, at 9:36 PM, walterbyrd wrote: >>> I may also install drupal on the same site, so I'll probably go with >>> mysql. I don't know if that matters. >> >> yikes >> > > Seriously? Am I trying to do to much with too little? > > None of these are critical sites. Maybe I should keep this

Re: Using raw SQL with filter-support (or: speeding up MySQL views)

2007-12-04 Thread Adrian R.
On 3 Dez., 18:43, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > I don't know how to go from raw sql to a QuerySet. My own custom managers > start with a model's default QuerySet and modify it using the standard > exclude(), etc. Can you describe your views in terms of regular Django >

Re: Installing Django on VPS with 128mb ram

2007-12-04 Thread walterbyrd
On Dec 4, 7:12 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 04-Dec-07, at 7:05 PM, walterbyrd wrote: > > I may also install drupal on the same site, so I'll probably go with > > mysql. I don't know if that matters. > > yikes > Seriously? Am I trying to do to much with too little?

Users select tag in Admin

2007-12-04 Thread Andre
Hey there. I've created a model, which is related to the Admin Users model, like this: user = models.ForeignKey(User) Now, when I open a page to add/edit a record of my model class, a select tag with all the users of my site is displayed. That's good. What is not, is that in that select I see

Re: Mod_Python Error - ImproperlyConfigured: Error loading psycopg module: No module named psycopg

2007-12-04 Thread Mauro Sánchez
2007/12/4, AY <[EMAIL PROTECTED]>: > > Hi! I am trying to configure Apache to use facbackopan directory as a > django project, and have the following mod_python error message. Help > would be very appreciated. Thanks in advance! > Hi. > > MOD_PYTHON ERROR > > ImproperlyConfigured: Error

Mod_Python Error - ImproperlyConfigured: Error loading psycopg module: No module named psycopg

2007-12-04 Thread AY
Hi! I am trying to configure Apache to use facbackopan directory as a django project, and have the following mod_python error message. Help would be very appreciated. Thanks in advance! MOD_PYTHON ERROR ProcessId: 2208 Interpreter:'LocalHost' ServerName: 'LocalHost'

Re: _real_get_response: global name '_' is not defined

2007-12-04 Thread Ian Lawrence
ah just read the complete thread with the solution...sorry for the line noise regards Ian On Dec 4, 2007 9:42 AM, vern <[EMAIL PROTECTED]> wrote: > > Hi > i am being bitten by this too...i think it has something to do with > python 2.5 not supporting an underscore at the start of a variable >

Re: Installing Django on VPS with 128mb ram

2007-12-04 Thread Kenneth Gonsalves
On 04-Dec-07, at 7:05 PM, walterbyrd wrote: > I am new to VPS hosting. I just signed up with an account that gives > me 128mb/ram. not a problem - I hope you have a VPS with a hard limit on memory and swap > > My immediate needs are very modest. But 128mb seems kinda wimpy. > > I am

Re: very slow behavior of dev server + strange errors before reaching view

2007-12-04 Thread Karen Tracey
On 12/4/07, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote: > > Djee, that was pretty dumb You were right, debug was set to False, > and in the 500 we're using the request. Does rendering of the 500 > normally use the context-processors? No, 500.html is rendered with no context variables,

Re: Sending two list...using for loop in template

2007-12-04 Thread Tim Chase
> return render_to_response('webpage.htm', {'manu': s, 'thelist': > mylist}) > > / > > Here is what I have in my template > > {% for a in manu %} > {{ thelist.{{forloop.counter0}} }} > {% endfor %} Given that you're not using "a" in your loop, is there

Re: _real_get_response: global name '_' is not defined

2007-12-04 Thread vern
Hi i am being bitten by this too...i think it has something to do with python 2.5 not supporting an underscore at the start of a variable name..i would suggest trying to run mod_python on 2.4 ...any better ideas or solutions are welcome regards ian On 22 oct, 15:22, l5x <[EMAIL PROTECTED]> wrote:

Re: very slow behavior of dev server + strange errors before reaching view

2007-12-04 Thread Bram - Smartelectronix
Karen Tracey wrote: > Traceback seems to indicate something during the request processing is > generating a 500 exception, but attempting to render the template for > the error response is failing on lookup for "request" in the empty > context used for generating the error response page. Do

Re: Installing Django on VPS with 128mb ram

2007-12-04 Thread Farcaller
You'd better use lighttpd. It's not that easy to fit apache in such RAM (counting other services). In fact your enemy is not a webserver but a django application itself. If you have VPS without burstable mem based on something like OpenVZ then you'll find python process using 70-80Mb of your

Installing Django on VPS with 128mb ram

2007-12-04 Thread walterbyrd
I am new to VPS hosting. I just signed up with an account that gives me 128mb/ram. My immediate needs are very modest. But 128mb seems kinda wimpy. I am wondering if I should use apache or lighttpd, or something else. I am little more familiar with apache, but if there is a big difference in

Re: How to make such query with django ORM?

2007-12-04 Thread Mauro Sánchez
2007/11/30, RajeshD <[EMAIL PROTECTED]>: > > > As others have recommended, just use the extra() method. It's not so > bad :) > Hi. What about if I want to do the same thing but in the admin interface? Let's say for example, that in the Article form, I just want to show the Blogs that have

Re: Another new Django site

2007-12-04 Thread [EMAIL PROTECTED]
There IS a ton of stuff at work there, and it took forever to put it all together. Thanks for the compliments! No, I didn't go with Satchmo. It looks like a very nice app, but I got the impression it would be overkill for my purposes, where I just have a very small number of items that rarely

Re: Cannot resolve keyword 'userprofile' into field.

2007-12-04 Thread Jarek Zgoda
gkelly napisał(a): > Hi, > > I'm getting the following Traceback sporadically (using Django 0.96 > and mod_python on linux). > I can hit refresh and the page comes up fine, but sometimes this error > will happen again (as if some httpd children pass and some fail). > > FYI: > def