403 Error with mod_python

2006-09-15 Thread dstephenson
I'm trying to use mod_python with django. I've been coding the project and testing with the builtin server (python manage.py runserver) and everything runs fine. Now that I want to let the world have access to it I have followed the instructions in the django docs to use apache with mod_python,

Re: Mac vs. PC for Django work.

2006-09-15 Thread Cheng Zhang
Totally agree with Tyson. You won't regret picking a Mac for Django/ Python or any web design work at all. TextMate is a great editor, at least as much powerful as Vim or Emacs, with a overwhelmingly damn pretty looking and enjoyable GUI. The only con of TextMate is it ain't free and open

Re: Mac vs. PC for Django work.

2006-09-15 Thread Cheng Zhang
On Sep 14, 2006, at 8:01 PM, spacedman wrote: > I'd be tempted to say to do your development on the platform that most > closely matches your deployment platform. We're using Apache and > mod_python on our own Linux web server here, so that's the best thing > for development for us. My opinion

Re: Re: Incorrect deletion of records in a relationship table

2006-09-15 Thread Russell Keith-Magee
On 9/15/06, Vizcayno <[EMAIL PROTECTED]> wrote: > > Russell: > The error happens using the Admin view. > I need to rectify one thing please, I beg your pardon, instead of > modifying Fredo to Frido please, modify for example Maria to Mario, > i.e. when I modify the data that has DATA3 as X

Re: CSS in media folder

2006-09-15 Thread Leon
In your template, define your css urls in your like you would a regular html page. The css url is simply your MEDIA_URL plus the css file name. Picio wrote: > Hello, > where can I find a simple guide about how to use CSS through the > "media" folder? > Thanks for any advice. > Picio

Re: Allowing users to partially update model

2006-09-15 Thread Leon
Thanks guys, using 'follow' worked perfectly. --~--~-~--~~~---~--~~ 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,

CSS in media folder

2006-09-15 Thread Picio
Hello, where can I find a simple guide about how to use CSS through the "media" folder? Thanks for any advice. Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Serving multiple projects based on different Django versions

2006-09-15 Thread Rob Hudson
Thanks everyone for the suggestion. -Rob --~--~-~--~~~---~--~~ 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,

Re: Re: Allowing users to partially update model

2006-09-15 Thread James Bennett
On 9/15/06, Don Arbow <[EMAIL PROTECTED]> wrote: > http://code.djangoproject.com/wiki/ > CookBookManipulatorWithPostpopulatedFields There's also this, which is a bit cleaner and doesn't require fiddling with the data before handing off to the manipulator:

Re: One project, multiple apps, all using their own DB

2006-09-15 Thread Joseph Kocherhans
On 9/15/06, Jason Murray <[EMAIL PROTECTED]> wrote: > > I'm a django newbie (still working on the first app). I'm trying to figure > out how to do something, only conceptually at this point. So I have no > errors to send. > > I host a few apps on my home machine. They each use their own DB (on

Re: Allowing users to partially update model

2006-09-15 Thread Don Arbow
On Sep 15, 2006, at 12:18 PM, [EMAIL PROTECTED] wrote: > How would I only have > {{form.profile}} editable by the user and have {{form.name}} not be > present when the user views the page? You can't do it with generic views, but here's how: http://code.djangoproject.com/wiki/

One project, multiple apps, all using their own DB

2006-09-15 Thread Jason Murray
I'm a django newbie (still working on the first app). I'm trying to figure out how to do something, only conceptually at this point. So I have no errors to send. I host a few apps on my home machine. They each use their own DB (on the same server). I'm thinking I should set up a project for the

Relevance

2006-09-15 Thread mrstone
Hi I'm fiddling around with MySQL fulltext search and run into a problem. Using the below code works: match_expr = "MATCH(name) AGAINST (%s IN BOOLEAN MODE)" qs = Place.objects.all().filter(name__search=query).extra(select={'relevance': match_expr}, params=[query]) But when calling

Re: Serving multiple projects based on different Django versions

2006-09-15 Thread Eric Walstad
James Bennett wrote: > On 9/15/06, Rob Hudson <[EMAIL PROTECTED]> wrote: >> We have an active project we're coding against 0.95. Fast forward to 6 >> months or so after 1.0 is released and we have a few projects underway >> based on 1.0. We have no time or money to bring the old project up to

Allowing users to partially update model

2006-09-15 Thread peonleon
Hi, I'm using the generic view, create_update.update_object, to allow users of the site to update their profiles through a basic page with a form. Everything works as long as I include all the model's fields in the template. For instance, lets say my profile model has 2 fields, I would have to

Re: Serving multiple projects based on different Django versions

2006-09-15 Thread James Bennett
On 9/15/06, Rob Hudson <[EMAIL PROTECTED]> wrote: > We have an active project we're coding against 0.95. Fast forward to 6 > months or so after 1.0 is released and we have a few projects underway > based on 1.0. We have no time or money to bring the old project up to > 1.0 support. Is there a

Re: Serving multiple projects based on different Django versions

2006-09-15 Thread Joseph Kocherhans
On 9/15/06, Rob Hudson <[EMAIL PROTECTED]> wrote: > > Here's something I realized we're going to have to face one day as I > read the post on the new Forms and Manipulators... > > We have an active project we're coding against 0.95. Fast forward to 6 > months or so after 1.0 is released and we

Serving multiple projects based on different Django versions

2006-09-15 Thread Rob Hudson
Here's something I realized we're going to have to face one day as I read the post on the new Forms and Manipulators... We have an active project we're coding against 0.95. Fast forward to 6 months or so after 1.0 is released and we have a few projects underway based on 1.0. We have no time or

Re: Re: How about search-api?

2006-09-15 Thread Rafael SDM Sierra
Hi, I've finished the "stable" version of xapian backend, look at http://code.djangoproject.com/ticket/2707 for more informationOn 9/13/06, Rafael SDM Sierra <[EMAIL PROTECTED] > wrote:On 9/12/06, Rafael SDM Sierra <[EMAIL PROTECTED]> wrote: On 9/12/06, James Bennett <[EMAIL PROTECTED]> wrote:

Re: How to combine generic object_detail and object_list view in a template?

2006-09-15 Thread Jay Parlar
On 9/16/06, Holger Schurig <[EMAIL PROTECTED]> wrote: > > I have a model similar to this: > > -- > class Device(models.Model): > id = models.AutoField(primary_key=True) > name = models.CharField(blank=False, maxlength=40) > #... > > class

FullHistory Branch

2006-09-15 Thread [EMAIL PROTECTED]
Has anyone managed to get it working as of the latest release? http://code.djangoproject.com/wiki/FullHistory Tried doing it on a fresh db and all and nothing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Incorrect deletion of records in a relationship table

2006-09-15 Thread Vizcayno
Russell: The error happens using the Admin view. I need to rectify one thing please, I beg your pardon, instead of modifying Fredo to Frido please, modify for example Maria to Mario, i.e. when I modify the data that has DATA3 as X and this data is related to other record in the same table,

Re: Psyco & Database Stored Procedures / Prepared Statements

2006-09-15 Thread scaba
frooyo wrote: > I have two questions about Django. > > 1. Does anyone know if Pythons Psyco performance improver works with > django? http://psyco.sourceforge.net/ There's even a setting for it: http://www.djangoproject.com/documentation/settings/#enable-psyco You'll have to test it in your

PATCH unique_together validation

2006-09-15 Thread libraM
Hello! Seems like another Django admin's defect with long history and easy solution ;) For patch, see http://code.djangoproject.com/ticket/2019 --- "manipulator_validator_unique_together does not work correctly". Good luck! Alex. --~--~-~--~~~---~--~~ You

Re: Has anyone run Django on a cpanel box (w/root access)

2006-09-15 Thread Sean Schertell
Right, rebuilding Apache 1.3 with mod_proxy looks like the only viable option at this point. I just wanted to see if anyone else had gone through this dilemma before and had some better ideas. Anyone? Django vs CPanel experience? :-) Sean On Sep 15, 2006, at 3:49 PM, Ian Holsman wrote:

Re: Ordering problems

2006-09-15 Thread libraM
Hello, Seth. Try this (half worked for me): http://groups.google.com/group/django-users/browse_frm/thread/d6aea50e82c7bc04/05882c3dfc0bec55?lnk=gst=ForeignKey+ordering=3#05882c3dfc0bec55 Good luck, Alex. --~--~-~--~~~---~--~~ You received this message because

Re: error with inspectdb using oracle (v0.95)

2006-09-15 Thread world_domination_kites
OK. That change did make inspectdb work, however it wasn't the end of the story... # manage.py syncdb gave me an invalid character error. Fixed that in oracle/base.py FormatStylePlaceholderCursor with: def execute(self, query, params=[]): query = self.convert_arguments(query,

Re: django_settings_module

2006-09-15 Thread Picio
You mean I don't need to set DJANGO_SETTINGS_MODULE = ? Wow, this is good.Thanks Picio P.s.: Do you are the guy who built woodlog? If yes, Is there a little guide to install it? 2006/9/15, limodou <[EMAIL PROTECTED]>: > > On 9/15/06, Picio <[EMAIL PROTECTED]> wrote: > > > > Hello, > > If my

Re: Core dump- how to diagnose?

2006-09-15 Thread Richard Phelps
ThanksOn 13 Sep 2006, at 23:42, Ian Holsman wrote:for future reference. the easiest way to get a hint on what is going on is to look at the   backtrace from the core dump and see what it says. $ gdb $(which python) --core= gdb> bt this is what I have done in the past, when python segfaulted..

Re: syncdb without prompt

2006-09-15 Thread Kenneth Gonsalves
On 14-Sep-06, at 7:14 PM, Russell Keith-Magee wrote: > As an indicator; I use the SVN stream at work, and I can't say I've > every had any problems with it. me too -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/

Re: Has anyone run Django on a cpanel box (w/root access)

2006-09-15 Thread Ian Holsman
why not build mod-proxy into the apache13 ? that would be the simplest option. regards Ian On 15/09/2006, at 2:50 PM, [EMAIL PROTECTED] wrote: > > Hi guys, > > I need to install a django app onto a client's cpanel box. I have root > access and can install whatever's needed. But the trouble is

RE: generic views and forms

2006-09-15 Thread Benedict Verheyen
>Cheers,>> It's not totally clear to me why i would want to go the way of >> creating code & using manipulators if all that can be done >> automatically :)>It can indeed be automatically done for an object creation. But what about sending a mail? Or what about a form involving two models? >Or made