Re: Apache2 mod_python VirtualHost configuration

2006-01-16 Thread [EMAIL PROTECTED]
It seems that now the links to stylesheets and javacript files are not mapping properly, when i run my project site under Apache. How can I fix it? I was looking through documentation and searching a bit online, but didn't find a solid answer to this issue.

Re: Apache2 mod_python VirtualHost configuration

2006-01-16 Thread [EMAIL PROTECTED]
Thanks, Bryan! Works fine. One thing, which I did not do was to modify Postgres host configuration to allow for connections from 'GoodCompany'. A small thing, but it will raise error if it's not configured properly.

blog archive links

2006-01-16 Thread Bryan Murdock
I'm building myself a little blog with the django blog app that is found in the djangoproject.com code. I like the archive links (seen on the right-hand side of http://www.djangoproject.com/weblog/). However, I'd like those links auto-generated according to whether there are blog entries for tho

Re: Apache2 mod_python VirtualHost configuration

2006-01-16 Thread Bryan Murdock
On 1/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > My VirtualHost config look now like this: > > > ServerName GoodCompany I don't think you want this: > DocumentRoot "/work/django/GoodCompany" > > allow from all > Options All > I'm pretty sure you don't want your we

Re: Apache2 mod_python VirtualHost configuration

2006-01-16 Thread [EMAIL PROTECTED]
My VirtualHost config look now like this: ServerName GoodCompany DocumentRoot "/work/django/GoodCompany" allow from all Options All SetHandler mod_python PythonHandler django.core.handlers.modpython PythonPath sys.path+['/work/django'] SetEnv DJANGO_SETTINGS

Re: Apache2 mod_python VirtualHost configuration

2006-01-16 Thread Peter Ma
expect solutionthe same question 2006/1/17, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Actually, I had messed up my DocumentRoot and /etc/host file which waspointiong to my PHP projects path. The Welcome screen was from symfony framework, which I had installed previously.Now, after I fixed it, I'm gett

Re: Apache2 mod_python VirtualHost configuration

2006-01-16 Thread [EMAIL PROTECTED]
Actually, I had messed up my DocumentRoot and /etc/host file which was pointiong to my PHP projects path. The Welcome screen was from symfony framework, which I had installed previously. Now, after I fixed it, I'm getting this error: Mod_python error: "PythonHandler django.core.handlers.modpytho

Re: Apache2 mod_python VirtualHost configuration

2006-01-16 Thread Bryan Murdock
On 1/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, there! > > I found Django this afternoon and was impressed by what I found. After > getting the framework from SVN trunk and installing it on my Fedora > server, I followed the first 2 parts of the tutorial. Worked great and > i got

Apache2 mod_python VirtualHost configuration

2006-01-16 Thread [EMAIL PROTECTED]
Hi, there! I found Django this afternoon and was impressed by what I found. After getting the framework from SVN trunk and installing it on my Fedora server, I followed the first 2 parts of the tutorial. Worked great and i got the admin section up in no time. (Awesome stuff!). I run my little pr

Re: Apache2 - Mod_python: ValueError: Empty module name

2006-01-16 Thread Dody Suria Wijaya
It used to be that if user does not define the environment variable, django tell us with a more helpful line like "Environment variable DJANGO_SETTINGS_MODULE is undefined". Adrian Holovaty wrote: On 1/16/06, Krietjur <[EMAIL PROTECTED]> wrote: line 32, in ? mod = __import__(me.SETTIN

Re: making slug field unique

2006-01-16 Thread Julio Nobrega
Afaik Django enforces uniqueness at the application level, but you could always add it to the database: ALTER TABLE table ADD UNIQUE (slug) I don't think it's a bad idea at all, it all depends ;) On 1/16/06, Bryan Murdock <[EMAIL PROTECTED]> wrote: > > I think I want my model's SlugField to

Re: Comparing model objects ...

2006-01-16 Thread ZebZiggle
Actually, you know, I'm getting several situations where that comparision is failing, but if I explicitely do foo.id = blah.id it works. Looks like a bug. It seems to occur when I a foreign key lookup like: if foo.get_blah() == myBlah: # doesn't always work ... while if foo.get_blah().id ==

making slug field unique

2006-01-16 Thread Bryan Murdock
I think I want my model's SlugField to be unique (let me know if this is a Bad Idea for any reason). So I edit my model and change slug=meta.SlugField() to slug=meta.SlugField(unique=True). Do I need to do anything to update the database now? Thanks, Bryan

Re: django 0.90 -> 0.91 : raw_id_admin representation changed: HELP!

2006-01-16 Thread Emanuele
Thanks rob and Adrian, I don't use custom admin templates (I hope to someday but I need to study the documentation, if it is available, is it?). My code is a bit more elaborate than the example I sent but the structure is the same and I'm _really_ sorry but I didn't test the example before sending

Re: Apache2 - Mod_python: ValueError: Empty module name

2006-01-16 Thread Adrian Holovaty
On 1/16/06, Krietjur <[EMAIL PROTECTED]> wrote: > line 32, in ? > mod = __import__(me.SETTINGS_MODULE, '', '', ['']) > > ValueError: Empty module name Hey Krietjur, This error is happening because mod_python isn't finding your settings module. Do you have the line "SetEnv DJANGO_SETTINGS_MOD

Apache2 - Mod_python: ValueError: Empty module name

2006-01-16 Thread Krietjur
I've setup a Gentoo Linux server for use with django, but I have some difficulties with the apache configuration I think. The python webserver works fine, but now I want to have it working with apache2 and mod_python. I've a config like in the tutorial (http://www.djangoproject.com/documentation/m

JOB POSTING: Toronto,Ontario,Canada

2006-01-16 Thread Jakub Labath
Hi, While the job posting below is relatively generic. What we are really looking for is someone to help us build next generation of our websites in Django. If you are interested please email your resumes to: [EMAIL PROTECTED] ST. JOSEPH MEDIA POSITION: Web Developer REPORTS TO: VP, IMS LOCATIO

Re: Dreamhost - problem with Django installation

2006-01-16 Thread Eugene Lazutkin
PythonistL wrote: Hello James, I assume it was not a private letter. do you use their service at present? I am hosted with DreamHost: http://lazutkin.com/ I followed the instructions at http://wiki.dreamhost.com/index.php/Django but that did not work for me It worked for me. Did you fo

Re: Retrieving choices from model->field->choices

2006-01-16 Thread Mike
Thanks guys, Person._meta.get_field('height').get_choices() worked just fine. Needed it for my custom manipulator. Regards, Mike

Re: django 0.90 -> 0.91 : raw_id_admin representation changed: HELP!

2006-01-16 Thread Adrian Holovaty
On 1/16/06, Emanuele <[EMAIL PROTECTED]> wrote: > - in Django0.90 there will be a piece of text showing the __str()__ > representation on that Author just over that ID > - in Django0.91 that string disappears, so the user cannot know if the > author's ID he inserted was correct. The same happens i

Re: Dreamhost - problem with Django installation

2006-01-16 Thread [EMAIL PROTECTED]
I can recomment rimuhosting (http://rimuhosting.com) for a VPS setup- that means you can install/run what you like. They will setup most stuff if you put what you want into your order. Support, the few times I've needed it, has been great. I don't have Django on that setup, yet- just got lighttpd

Re: django 0.90 -> 0.91 : raw_id_admin representation changed: HELP!

2006-01-16 Thread oggie rob
> I've just upgraded from Django0.90 to Django0.91 my production server (running a django app on a LAN). [kicks tires a bit] Yep, thar's yer problem right there. Ya put tha tires on backwards. Seriously, you should plan a little better than that! First of all it is known the 0.x is not backward

django 0.90 -> 0.91 : raw_id_admin representation changed: HELP!

2006-01-16 Thread Emanuele
Hi djangonauts, I've just upgraded from Django0.90 to Django0.91 my production server (running a django app on a LAN). Everything works well except the representation of fields with raw_id_admin=True when using admin interface. My application strongly relies on automatically generated admin interf

Re: Dreamhost - problem with Django installation

2006-01-16 Thread James Bennett
On 1/16/06, PythonistL <[EMAIL PROTECTED]> wrote: > Hello James, > do you use their service at present? > I followed the instructions at > http://wiki.dreamhost.com/index.php/Django > but that did not work for me No, I'm hosted at TextDrive. I have clients who are on Dreamhost, but none of them u

Re: Bulk delete?

2006-01-16 Thread Russell Keith-Magee
> >things.delete(type__exact='foo') ... > > Have I overlooked something? > > Nope - *we've* overlooked something; this totally should be > possible. I've opened a ticket so we can keep track of this (http:// > code.djangoproject.com/ticket/1219). I've just submitted a patch on magic-removal

Re: Dreamhost - problem with Django installation

2006-01-16 Thread PythonistL
Hello James, do you use their service at present? I followed the instructions at http://wiki.dreamhost.com/index.php/Django but that did not work for me So I tried this script from the troubleshooting part there # #!/usr/bin/python2.3 from fcgi import WSGIServer def test_app(environ, start

Re: Dreamhost - problem with Django installation

2006-01-16 Thread tonemcd
Their (DreamHost) prices are ridiculous (ie low), and to keep them low, they can only spend time on things that have an identified market (they say this in their FAQs or KnowledgeBase or whatever its called). It's the main reason they don't provide PostGres. I guess FCGI for Django hasn't hit the

Re: Dreamhost - problem with Django installation

2006-01-16 Thread James Bennett
On 1/16/06, PythonistL <[EMAIL PROTECTED]> wrote: > Does it mean Dreamhost stopped Django support?? Perusing the Django-powered sites that are known to be hosted at Dreamhost, none of them seem to be down, so Django apparently still works just fine on Dreamhost. Most likely their response was mea

Re: Retrieving choices from model->field->choices

2006-01-16 Thread Russell Keith-Magee
On 1/16/06, Mike <[EMAIL PROTECTED]> wrote: > > How do I do that? To retrieve a field's choices from the model? > > class Person(meta.Model): > height = meta.CharField(maxlength=100, > choices=(('tall','Tall'),('short','Short'))) > > >>> Person.height.choices # In the magic removal branch

Re: Dreamhost - problem with Django installation

2006-01-16 Thread PythonistL
As to my problem with Django installation I received a reply from Dreahost.com support team saying: "At the moment, fastcgi is only enabled for use w/ ruby on rails." Does it mean Dreamhost stopped Django support?? Regards, L.

Re: create object method

2006-01-16 Thread Max Battcher
The Boss wrote: that was needed. one problem with django i guess is figuring out what exactly are the correct names and hierarchy, Precisely, which is why the magic-removal branch has changed this particular annoyance (model classes now don't jump to a different namespace) and a few others.

Re: create object method

2006-01-16 Thread The Boss
thanks Joseph! that got me on the right track. it wasn't quite... from django.models.mypp.group import Group but... from django.models.mypp import groups that was needed. one problem with django i guess is figuring out what exactly are the correct names and hierarchy, but i just to