Re: django-1.2.1 on ubuntu

2010-10-03 Thread Anthony DeBarros
Unless you want to be beholden to Ubuntu's schedule for updates, I recommend manually installing Django on your server rather than using the package in the repositories. On Oct 3, 6:10 pm, Michael wrote: > I believe that Ubuntu 10.10 (due out in 7 days now) will have django 1.2 > in the repositor

Re: Mongo - testing

2010-10-03 Thread xy zz
On Oct 4, 4:20 am, Russell Keith-Magee wrote: > Well... you can call runtests; you just need to handle your own > testing infrastructure. I haven't used MongoDB (or any other noSQL > store) enough to be able to make any concrete suggestions, but I would > suggest that you're going to need to eith

Re: mod_wsgi + mod_php = segmentation fault

2010-10-03 Thread Srik
Is mod_python enabled by any chance ?. Running both mod_python & mod_wsgi can cause similar errors sometimes. On Oct 3, 3:54 pm, Олег Корсак wrote: > Hello. I'm using apache Apache/2.2.16 (Unix) + mpm_worker on my ~amd64 > Gentoo Linux box. It has mod_php enabled and all my existing php > project

Re: Django website down?

2010-10-03 Thread Russell Keith-Magee
On Mon, Oct 4, 2010 at 2:50 AM, diogobaeder wrote: > Hi, Russ, > > I just added a reply there with the headers sent from my browser. Hope > it helps to find the source of the problem. Yeah - it looks like you've been bitten by the same problem. You have an Accept-Language header that includes "ch

Re: Mongo - testing

2010-10-03 Thread Russell Keith-Magee
On Sun, Oct 3, 2010 at 10:44 PM, xy zz wrote: > Hello, > > A couple of questions regarding nosql.  I am interested in MongoDB in > particular, but general answers are also ok. > > * Is there any work going on in Django to support nosql databases?  I > am aware of django-nonrel but will nosql suppo

facebook comments tutorial?

2010-10-03 Thread Bobby Roberts
has anyone gotten the facebook comments plugin to actually post comments back to facebook? can you provide instructions on how to do this? I've got the plugin working fine on the page but comments never post back to facebook -- You received this message because you are subscribed to the Google

Re: Facebook Comments

2010-10-03 Thread Bobby Roberts
what's the purpose of the "post back to profile" checkbox on the facebook comments plugin if it's not supposed to post back to facebook? On Sep 11, 6:10 pm, Sævar Öfjörð wrote: > Where exactly are you expecting them to be posted? > I think theFacebookCommentsplugin is only supposed to provide

Re: django-1.2.1 on ubuntu

2010-10-03 Thread Michael
I believe that Ubuntu 10.10 (due out in 7 days now) will have django 1.2 in the repositories. -- Michael On Sun, 2010-10-03 at 22:30 +0200, Jonas Geiregat wrote: > Hello > > I've been currently developing a django application on my Mac which runs > 1.2.1. > Now I've setup a ubuntu server whic

Help with my image editor.

2010-10-03 Thread 180lbs
I'm working on a small image editor with python and I am getting blank rows in my test pictures. Can someone look over my code and give some advice? def expand_height(picture, factor): height= media.get_height(pic) #width=media.get_width(pic) new_height=height*factor newpic=media.c

Re: Deleting a Django project/ app

2010-10-03 Thread Sithembewena Lloyd Dube
Thanks Peter - will keep this in mind. I did use setup.py. On Sun, Oct 3, 2010 at 10:43 PM, Peter Herndon wrote: > > On Oct 3, 2010, at 4:04 PM, Sithembewena Lloyd Dube wrote: > > > Howdy, fellow Djangites, > > > > This is going to sound downright loony - but is there a special method to > delet

apache reload

2010-10-03 Thread Олег Корсак
Hello. I'm using mod_wsgi 3.3 + apache 2.2.16 on Gentoo Linux box. Is it possible to make apache kinda "reload"/"re-read"/"re-compile" python files from my django code every time they are changed? Thanks signature.asc Description: OpenPGP digital signature

An app to create sprite bundles (django-imaginator)

2010-10-03 Thread Cesar Canassa
Hello everyone, I had this idea for an django application that creates image sprites automatically for you. I want an application that allows me to create and manage sprites by only using the admin interface. This is how it should work: - Add 'django-imaginator' to your INSTALLED_APPS - Run syncd

Re: Deleting a Django project/ app

2010-10-03 Thread Peter Herndon
On Oct 3, 2010, at 4:04 PM, Sithembewena Lloyd Dube wrote: > Howdy, fellow Djangites, > > This is going to sound downright loony - but is there a special method to > delete Django projects and apps, or is it fine to just delete the > directories? I know that most third party Python packages ca

django-1.2.1 on ubuntu

2010-10-03 Thread Jonas Geiregat
Hello I've been currently developing a django application on my Mac which runs 1.2.1. Now I've setup a ubuntu server which I like to move my project to. Ubuntu installs django-1.1 by default. My current setup on ubuntu uses apache and mod_wsgi with django version 1.1. I wish to move to version 1

Deleting a Django project/ app

2010-10-03 Thread Sithembewena Lloyd Dube
Howdy, fellow Djangites, This is going to sound downright loony - but is there a special method to delete Django projects and apps, or is it fine to just delete the directories? I know that most third party Python packages can be "uninstalled" by simply removing them from the default Python instal

Deleting a Django project/ app

2010-10-03 Thread Sithembewena Lloyd Dube
Howdy, fellow Djangites, This is going to sound downright loony - but is there a special method to delete Django projects and apps, or is it fine to just delete the directories? I know that most third party Python packages can be "uninstalled" by simply removing them from the default Python instal

Deleting a Django project/ app

2010-10-03 Thread Sithembewena Lloyd Dube
Howdy, fellow Djangites, This is going to sound downright loony - but is there a special method to delete Django projects and apps, or is it fine to just delete the directories? I know that most third party Python packages can be "uninstalled" by simply removing them from the default Python instal

Deleting a Django project/app

2010-10-03 Thread Sithembewena Lloyd Dube
Howdy, fellow Djangites, This is going to sound downright larney - but is there a special method to delete Django projects and apps, or is it fine to just delete the directories? I know that most third party Python packages can be "uninstalled" by simply removing them from the default Python insta

Re: Django website down?

2010-10-03 Thread diogobaeder
Hi, Russ, I just added a reply there with the headers sent from my browser. Hope it helps to find the source of the problem. Thanks! Diogo On 3 out, 00:02, Russell Keith-Magee wrote: > On Sun, Oct 3, 2010 at 10:47 AM, diogobaeder wrote: > > Never mind, must be something with my Firefox versio

Re: Why can't I use this model architecture?

2010-10-03 Thread Shawn Milochik
Check out 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-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups

Re: Why can't I use this model architecture?

2010-10-03 Thread mathphreak
Django doesn't modify table structures after they're created? That would explain it. Thanks! On Oct 3, 3:27 am, Daniel Roseman wrote: > On Oct 3, 2:37 am, mathphreak wrote: > > > I've got three different classes in models.py and register all three > > in admin.py within my app.  Viewing the ad

Re: Python Restarting After Every Request, MaxRequests Per Child is High

2010-10-03 Thread Koobz
I just switched it to the worker mpm and I'm getting the same results. Some more output here: [Sun Oct 03 11:59:37 2010] [error] import md5, re, time, urllib [Sun Oct 03 11:59:37 2010] [info] mod_wsgi (pid=29817): Destroying interpreters. [Sun Oct 03 11:59:37 2010] [info] mod_wsgi (pid=29817):

Python Restarting After Every Request, MaxRequests Per Child is High

2010-10-03 Thread Koobz
I'm getting about 0.5 requests per second using apache, and about 60 using the development server so something is definitely wrong :) After every requests I see: [Sun Oct 03 11:48:52 2010] [info] mod_wsgi (pid=27761): Python has shutdown. [Sun Oct 03 10:49:09 2010] [info] mod_wsgi (pid=27767): De

Re: Mongo - testing

2010-10-03 Thread xy zz
> > $ python runserver.py cms Oops - I meant $ python runtests.py cms -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-us

Mongo - testing

2010-10-03 Thread xy zz
Hello, A couple of questions regarding nosql. I am interested in MongoDB in particular, but general answers are also ok. * Is there any work going on in Django to support nosql databases? I am aware of django-nonrel but will nosql support be a part of Django core or contrib sometime? If yes, w

Re: Django website down?

2010-10-03 Thread diogobaeder
Well, thanks for that, then, Russ! I'll keep an eye on that, and try to figure out which addon may be causing this to me. Diogo On 3 out, 00:02, Russell Keith-Magee wrote: > On Sun, Oct 3, 2010 at 10:47 AM, diogobaeder wrote: > > Never mind, must be something with my Firefox version (I'm using

mod_wsgi + mod_php = segmentation fault

2010-10-03 Thread Олег Корсак
Hello. I'm using apache Apache/2.2.16 (Unix) + mpm_worker on my ~amd64 Gentoo Linux box. It has mod_php enabled and all my existing php projects work fine (with mysql too). When I'm enabling mod_wsgi in apache config and trying to run simple empty django project - I'm getting 500 Internal Server E

Re: Why can't I use this model architecture?

2010-10-03 Thread Masklinn
On 2010-10-03, at 11:27 , Daniel Roseman wrote: > On Oct 3, 2:37 am, mathphreak wrote: >> I've got three different classes in models.py and register all three >> in admin.py within my app. Viewing the admin page that I have, >> however, gives mehttp://dpaste.com/252244/which doesn't look good. >>

Re: Any way to select which Model to initialize without resorting to "if-elfi" statements?

2010-10-03 Thread Michael
You can always pre-define them all in a dict: cat2form = {'TV': TVForm, 'Laptop': LaptopForm} model_form = cat2form[category] model_form_instance = model_form() This way you forms don't have to follow a strict naming convention. -- Michael On Sun, 2010-10-03 at 01:04 -0700, Andy wrote: > I

Re: Any way to select which Model to initialize without resorting to "if-elfi" statements?

2010-10-03 Thread Steve Holden
On 10/3/2010 4:04 AM, Andy wrote: > I need to model many different product categories such as TV, laptops, > women's apparel, men's shoes, etc. > > Since different product categories have different product attributes, > each category has its own separate Model: TV, Laptop, WomensApparel, > MensSho

Working example of django-generic-images

2010-10-03 Thread Marek Dudek
Hello Did anyone happen to run into some piece of working code using 'django-generic-examples'? I'm following documentation at http://django-generic-images.googlecode.com/hg/docs/_build/html/index.html but I can't get it into working like it supposed to. Meaning: I can't get admin of

Re: Get simple data from form

2010-10-03 Thread petarda
Sorry, that I was so brief. It is a modeform: form = modelform(instance=object) instantiated after click on detail of brand for update this brand. But, First I need only get and view raw data from form.. like title, description etc.. then I need to view full form(but this is not problem, ofcourse).

Re: Get simple data from form

2010-10-03 Thread Daniel Roseman
On Oct 2, 9:33 pm, petarda wrote: > Hello, > I have simple question. How Can I get raw data from form object in my > template? > I don't need html tags only data. > I am trying {{ form.myfield.data }} , but always get None.. What sort of form is it? What data are you trying to get? How are you in

Re: Why can't I use this model architecture?

2010-10-03 Thread Daniel Roseman
On Oct 3, 2:37 am, mathphreak wrote: > I've got three different classes in models.py and register all three > in admin.py within my app.  Viewing the admin page that I have, > however, gives mehttp://dpaste.com/252244/which doesn't look good. > Is this a Django bug, or do I need to rewrite my app?

Re: [Announcement] Vim for Python and Django

2010-10-03 Thread Antoni Aloy
2010/10/2 Rene Vallecillo : > nvm, the folder name was wrong, it was suppose to be colors and I had color. > And it seems it still needs to be under ~/.vim/ dir > Yes, The best way is to make a symbolic link to .vimrc and .vim of the trespams-vim files, that you can clone in a separated dir. --

Any way to select which Model to initialize without resorting to "if-elfi" statements?

2010-10-03 Thread Andy
I need to model many different product categories such as TV, laptops, women's apparel, men's shoes, etc. Since different product categories have different product attributes, each category has its own separate Model: TV, Laptop, WomensApparel, MensShoes, etc. And for each Model I created a Model