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
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
:
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
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
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
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
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]>
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
>
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
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
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)
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
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
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
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
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
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,
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
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
, 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
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
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
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
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
="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
Thanks Ian. But, this is not really what I am doing here. I do not
want to create users from Apache.
Kind Regards, Brian
so,
this is fine by me.
Regards, 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!
101 - 128 of 128 matches
Mail list logo