Re: How do you remove a manytomany relationship in django?

2009-08-19 Thread Ray
ate, get_or_create, and get_query_set AND THEN, I tried the remove function with the queryset object, "Group.objects.get(id=3).members.all().remove(member1)" and I got this error: 'QuerySet' object has no attribute 'remove' I'm at a loss as to how I'm supposed to update these rel

How do you remove a manytomany relationship in django?

2009-08-18 Thread Ray
I know in the backend, a manytomany relationship is essentially a join table, but there seems to be no easy way to delete relationships from it. The only remove option is made only for ForeignKey relationships. Is there a workaround? Why would django design a relationship that you can only add

Automatically printing display of model object's data

2009-01-27 Thread Brian Ray
: atr =getattr(res,instr) print "%s: %s" % (instr,atr) It sort of prints out an easy to read representation of any model object. Is there a better way to do this? I am sure there was something already in Django to do this, but I am having a hard way of finding. I am s

Re: Designing the model of a website

2008-09-28 Thread Ray Smith
Django will add an "id" field to each of your tables which will be the primary key (this is the default behavior but can be changed). The names of your URL's are defined in the URL dispatcher, see http://docs.djangoproject.com/en/dev/topics/http/urls/ Regards, Ray Smith http://RaymondSmi

Re: Help to get going with Django

2008-09-19 Thread Ray Smith
sed a step > Hi Jason, The "command line" isn't the Python interpreter. You can start a "command prompt" by clicking on the "start" button, "Accessories", "Command Prompt". I'd suggest you also do a search for a tutorial on how to use the com

Re: Admin interface troubles

2008-09-16 Thread Ray Smith
Hi, There are backwards incompatible changes between 0.96 and 1.0 for admin. A good source (plus screencast) is available at: http://oebfare.com/blog/2008/jul/20/newforms-admin-migration-and-screencast/ It also has links back to the main doco. Ray Smith http://RaymondSmith.com [EMAIL

Re: Where is the source code for Practical Django Projects?

2008-09-02 Thread Ray Smith
I'd be pretty sure 99.999% of Django people are happy for James to keep working 1.0 final released before getting the fully updated source code for the book completed ;) Regards, Ray Smith http://RaymondSmith.com On Tue, 2 Sep 2008 18:13:34 -0700 (PDT), Joeyx2 <[EMAIL PROTECTED]>

Re: django web hosting

2008-09-02 Thread Ray Smith
Hi, Have you looked at: http://djangofriendly.com/hosts/ Regards, Ray Smith http://RaymondSmith.com On Tue, 2 Sep 2008 16:30:56 -0700 (PDT), Ed Wong <[EMAIL PROTECTED]> wrote: > > hi all, > > i am looking for a good web host for my django website. does anyone >

Re: Problems With The Tutorial

2008-08-27 Thread Ray Smith
y startproject mysite then cd mysite is there a "manage.py" file in that directory? Regards, Ray Smith http://RaymondSmith.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: numerous problems with the source code in this book

2008-08-21 Thread Ray Smith
Hi, I'm half way through the book (using 1.0 beta). I have made a couple of changes as I went through. What is the current error you have? (Looking back through the archives of django users I believe the author is still working on updated versions of the source code). Regards, Ray Smith

Re: error when installing the django-tagging

2008-08-21 Thread Ray
Try looking here: http://code.google.com/p/django-tagging/issues/detail?id=110 On Aug 22, 1:20 pm, Chr1s <[EMAIL PROTECTED]> wrote: > > I got error message like this. > >     raise ImportError("Settings cannot be imported, because > environment variable %s is undefined." % ENVIRONMENT_VARIABLE)

Re: WebFaction memories

2008-05-29 Thread Ray Cote
Django Debug mode. b: The Apache 'restart' command they provide you is actually a reload command and will not reduce your memory footprint. If you've been running in Debug mode, you'll want to switch out and then do a stop followed by a start. Then your memory will be nicely reduced. Hope this he

Re: Getting file selected for upload to survive validation.

2008-03-04 Thread Ray Cote
At 1:31 AM +1100 3/5/08, Malcolm Tredinnick wrote: >On Tue, 2008-03-04 at 08:58 -0500, Ray Cote wrote: >> I have file uploads working using newforms. >> >> However, if I run into validation errors on the form (say a mandatory >> field is not filled), then when the fo

Getting file selected for upload to survive validation.

2008-03-04 Thread Ray Cote
I have file uploads working using newforms. However, if I run into validation errors on the form (say a mandatory field is not filled), then when the form re-displays for the user, the file they previously selected is no longer selected. I've been reading through a variety of file upload

Re: Integrating Django with existing site.

2007-09-06 Thread Ray Cote
RL. >> Perhaps something like: >>mysite.com/components/module1.html >> In Joomla, create a plug-in that simply calls the component. >> >> As you migrate away from Joomla to Django, simply use the template >> tag directly in your Django template so you don't need

Re: Integrating Django with existing site.

2007-09-05 Thread Ray Cote
erhaps something like: mysite.com/components/module1.html In Joomla, create a plug-in that simply calls the component. As you migrate away from Joomla to Django, simply use the template tag directly in your Django template so you don't need to make the extra call. --Ray -- Raymond Cote Appro

Re: Scalability / Traffic-Volume Numbers

2007-05-16 Thread Ray Dookie
I'm starting off with everything on 1 server. As for traffic at the start I'm looking at 2000-3000 hits/10K - 20K page views per day. Maybe I should have asked this instead : If you used one of www.slicehost.com VPS's (say the 512MB ram one).. from any experience you may have on similar setups,

Re: Scalability / Traffic-Volume Numbers

2007-05-16 Thread Ray Dookie
Thanks... I'll check out the article. As for what kinda of data i'm serving, the site would be pretty dynamic and as for the level of caching, i'm not sure as yet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Scalability / Traffic-Volume Numbers

2007-05-16 Thread Ray Dookie
Guys guide me a bit here.. I'm interested to know how much load can a django box say with 512MB ram handle. I'm brining out a site soon, and was planning on taking either the 256mb or 512mb (VPS) setup that www.slicehost.com offers. what i was wondering, is with a box with those specs (on

Newforms: adding a date picker

2007-04-14 Thread Ray Cote
, I don't see a way to add a class to a field with newforms. Any help appreciated as I'm fairly new to both Django and JavaScript. --Ray --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Session problems

2006-11-28 Thread Brian Ray
sions were not working properly for many reasons. I can recall once I build mod_python linking to the wrong libraries, and some strange stuff happened. -- Brian Ray (http://kazavoo.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Image Upload..

2006-11-01 Thread Ray Dookie
Let me first say, I'm a Django noob and only recently picked up python last week after using Ruby on Rails for the past few months.Here's what I want to Do :I have 2 tables : CarsidtitledescriptionImages idcar_idimage_url - stores the path to the image.what i want do do.. is in a form allow say

Re: Is AJAX Alone Reason to Use TG?`

2006-08-03 Thread Ray
Dan Shafer wrote: > I've spent the last few days looking intently at both Django and TG. I > haven't yet built anything useful in either, but i've poked at them enough > that I think I'm beginning to see through the fog, however dimly. > > My plan for the next six months is to create 4-6

Manipulator Change calls INSERT

2006-01-27 Thread Brian Ray
is a AccountManipulatorChange. I double checked by calling HttpResponse on manipulator.__class__.__name__. I do use a "_pre_save" in my model and I was wondering if this somehow was causing this unexpected behaviour. tia, Brian Ray <http://brianray.chipy.org> aim: brianray34

Database API Boolean Queries

2006-01-24 Thread Brian Ray
="t"); Alhtough, I am unsure if this will work if I switch Database platforms. Is there a better way? Thanks, Brian Ray bray sent com http://brianray.chipy.org

Re: Apache Authentication

2006-01-07 Thread Brian Ray
Thanks Ian. But, this is not really what I am doing here. I do not want to create users from Apache. Kind Regards, Brian

Re: Apache Authentication

2006-01-07 Thread Brian Ray
so, this is fine by me. Regards, Brian Ray

Re: Apache Authentication

2006-01-07 Thread Brian Ray
Adrian, I took a look at modpython.py. I changed line 16 to: _str_to_bool = lambda s: s.lower() in ('1', 'true', 'on', 'yes') Note the parethesis. Seems to work now. Cool, Thanks!

<    1   2