Lawrence Oluyede wrote:
>> * is there a way to do custom queries, and tie the result back into the
>> object model or into the queryset interface? I have a query which
>> (really) returns 'django objects', which is impossible to write with the
>> ORM, but after doing the query I would like to get
Hi all,
I have a class with a many2many field:
class Previsione(models.Model):
nave = models.CharField(maxlength=50)
data_manovra = models.DateField()
h_inizio = models.TimeField()
rims = models.ManyToManyField(Rim)
into the views.py I use this code to save the su
On 2/5/07, Lawrence Oluyede <[EMAIL PROTECTED]> wrote:
> I tried to set settings.DEBUG to True explicitly in the test case but
> nothing has changed.
>
> How do I get the debug page in the mocked test? Is it possible?
Not really. When you use Django to run a suite of tests, the test
runner force
On 2/6/07, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote:
>
>
> It doesn't... I need a "group by" which doesn't seem possible in any way
> in django.
It is possible, in a number of ways:
1) Get a connection.cursor(), and write the full SQL manually
2) Use the extra() clause on a queryset
3) Wr
On 2/6/07, Antonio <[EMAIL PROTECTED]> wrote:
> Hi all,
> I have a class with a many2many field:
...
> but when I update the data the old rims are deleted and the new inserted ...
> is
> possible to UPDATE the rims data ? cioe', is possible to leave unchanged the
> rims data if are the same ?
d
Hi Russel,
I think that it doesn't solve the problem.
I can use your solution to get my friends. But I need to include
people who added me in the same listing.
To get a list of people who added me I can use:
people_who_added_me =
auth.models.User.objects.filter(profile__friends=my_id)
My probl
Hi All,
I'm the CTO of a medium-sized hedge fund in Greenwich, CT and have
been the sole developer for our internal software projects. There's
too much on my plate for me to handle by myself and I'm looking to
hire a full-time Django/Python developer. I've been an avid reader and
occasional poste
Hi,
Can anyone provide any pointers on how I use MultiValueField? Can I
use it straight out of the box, or do I have to subclass to create a
new field and a new MultiValueWidget?
I thought that this code would just work:
postcode = forms.MultiValueField(fields=(forms.CharField(max_length=4),
f
* martedì 06 febbraio 2007, alle 20:10, Russell Keith-Magee wrote :
> data.rims.add(req.POST.getlist('rims'))
*
Exception Type: TypeError
Exception Value: list objects are unhashable
*
I've try with:
for newrim in req.POST.getlist('rims'):
dati.rims.add(n
* martedì 06 febbraio 2007, alle 20:10, Russell Keith-Magee wrote :
for the moment, I've resolved this way:
if req.method == 'POST':
myform = nf.models.form_for_model(Previsione)(req.POST)
if myform.is_valid():
dati = myform.save(commit=False)
sa
*Media Mall Toolbar : Advanced 1-click System to the Following Items :*
*- 200 Live TV Channels
- FM Radio With alot of Radio Stations and You Can Add More.
- Live WebCams around The World
- Tools and Essentials as : Online Spyware Scanners,Online Virus
Scanners and Online Firewall
Hey all,
I am writing a new Django based application that will replace our
current shopping cart system. All is great on that front and Django
has been amazing. I have written xcart_convert.py that sends queries
to the current database to pull out all of the information and move it
over to the
Download Weather Toolbar - Instant weather reports, forecasts, and
radar images anytime for FREE! - http://surl.in/HLWTD238206SVRAKSX
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
Download Weather Toolbar - Instant weather reports, forecasts, and
radar images anytime for FREE! - http://surl.in/HLWTD238206SVRAKSX
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
Platform: Django 0.95, Win XP & 2003, Apache 2.2/mod_python 3.2.10
I'm running into an issue when returning data to Internet Explorer
that has a content type other than text/html. More specifically, I'm
returning data in an html table format recognized by excel (content-
type: application/vnd.ms
The current framework only allow for one "profile class" per site.
If you want you can let this class return different profiles
depending on the user.
class mysiteprofile(models.Model)
user = models.ForeignKey(User, unique=True,
related_name='user_profile')
...
...
def get_for_user
Thanks mrstone for your reply, but there are some things that are not
too clear, please bear with me :)
I take it that I have to define every profile that I like separately
and reference them all using a ForeingKey to user ?
What do I fill in as the standard profile in AUTH_PROFILE_MODULE?
Thank
hey everyone,
should there be any reason for @staticmethod not to work in django model
classes?
or should I be using the non-decorator syntax?
( django dev server + python 2.5 )
- bram
--~--~-~--~~~---~--~~
You received this message because you are subscr
Hiya,
I've been mucking about with the SplitDateTimeWidget field, and it didn't
really work for me - it wouldn't accept "None", even when required was set to
"False", and it needed a "set to now" button :-)
Feel free to criticise the code, and have fun!
_now_button = """
"""
class SplitDat
Phil,
I think you must subclass it and define the compress method. See the
comments here http://code.djangoproject.com/browser/django/trunk/
django/newforms/fields.py#L412. You will also need a MultiWidget to
go with the field.
On Feb 6, 10:04 am, "Phil Powell" <[EMAIL PROTECTED]> wrote:
> Hi,
Phil,
Thought an example might help.
class VacationBudgetField(MultiValueField):
def __init__(self, required=True, label=None, widget=None,
initial=None, f_type=(), currency=(), amount=None):
fields = (ChoiceField(choices=f_type),
ChoiceField(choices=currency), IntegerField())
Here's the solution in case someone else runs into this problem:
On a lark, I modified the mod_python handler to ignore the 'Vary' header.
To my surprise, IE started working correctly. I noticed, however, that the
WSGI server always outputs the 'Vary' header, but it never caused IE to
crash.
The
Hi folks,
I need help to make my FileFields display nice "browse" buttons and be
of type "file" in admin.
I have a model class that looks like this:
class Award(models.Model):
"""
A film award.
"""
name = models.CharField(maxlength=100, unique=True)
image
hi, there.
i'm a writing a template with a section of javascript code in it. i
need to use django variables in the script and just wondering how i
can do it.
i tried
{{ variable_x }}
but it does not seem to work.
has anyone any clue?
--~--~-~--~~~---~--~~
Yo
assign it in java - just expect {{ variable_x }} to get replaced with
whatever you've pushed into the context from the view...
i.e.
var x = {{ variable_x }}
...
On 2/6/07, damacy <[EMAIL PROTECTED]> wrote:
>
>
> hi, there.
>
> i'm a writing a template with a section of javascript code in it. i
/java/javascript/
On 2/6/07, Joseph Heck <[EMAIL PROTECTED]> wrote:
>
> assign it in java - just expect {{ variable_x }} to get replaced with
> whatever you've pushed into the context from the view...
>
> i.e.
>
>
> var x = {{ variable_x }}
> ...
>
>
> On 2/6/07, damacy <[EMAIL PROTECTED]> wrote
On 2/6/07, Enrico <[EMAIL PROTECTED]> wrote:
>
> Hi Russel,
>
> I think that it doesn't solve the problem.
>
> I can use your solution to get my friends. But I need to include
> people who added me in the same listing.
>
> To get a list of people who added me I can use:
> people_who_added_me =
> a
On 2/7/07, Antonio <[EMAIL PROTECTED]> wrote:
>
> * martedì 06 febbraio 2007, alle 20:10, Russell Keith-Magee wrote :
> > data.rims.add(req.POST.getlist('rims'))
Oops - sorry - missed a small, but very important bit - You need to
roll out the list as arguments. Ordinarily, the usage of add() woul
What happened to the per object permission branches? Are they going
to be integrated into django?
--~--~-~--~~~---~--~~
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
I am wondering the same thing. Did you ever hear anything about those
branches?
On Jan 26, 2007, at 9:41 AM, Ramdas S wrote:
>
> Hi,
>
> I am working on something where I need to provide object level
> permissions or column level permissions at least.
>
> There are two branches which I see b
hi,
the recent changes display in admin only shows about 12. How do i
increase this number? Or see all changes?
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~~~---~--~~
You received this message because you are subscri
Nope,
People are pretty silent about this.
I think the argument that no one has tested these branches enough and hence
we cannot integrate it will not take this forward.
We need to see that one by one these trunks are integrated to SVN. As such
there are many bugs or missing features in the curr
I would like to see these branches merged with the trunk too but lack
sufficient experience with working with trunk/branches.
What are the steps needed to merge the last change from the trunk into
the branches to keep the branches up to date ?
How would you do it ? Start with the patch committed
33 matches
Mail list logo