Can I have a list as a session variable?
I want to add potential products to a session list and if an order is
placed iterate over that list and add them to an order.
Or are there better ways to do this?
Thanks.
Seth
--~--~-~--~~~---~--~~
You received this mes
On 2/23/07, Tim Chase <[EMAIL PROTECTED]> wrote:
>
> >> I haven't yet figured out a way to suppress the order_by portion,
> >> so what's currently in there is an ugly hack. But it would need
> >> to prevent the standard methods from inserting an ORDER BY clause
> >> against a non-aggregated field.
>> I haven't yet figured out a way to suppress the order_by portion,
>> so what's currently in there is an ugly hack. But it would need
>> to prevent the standard methods from inserting an ORDER BY clause
>> against a non-aggregated field.
>
> if you add an empty call (no parameters) to order_by
well.. i've only tried the myghtyboard once.. so i might be wrong..
but it seems to be very hard to integrate into a custom project.. into
a custom website.. many templates would need to be modified & co
before it would be usable in a default standard project
(since you modded it that much . you'v
On 2/22/07, Tim Chase <[EMAIL PROTECTED]> wrote:
>
> Below I've pasted my first attempt at an aggregate function
> class. Its __init__ takes a queryset (and an optional list of
> aggregate functions to perform if, say, you only want the "sum"s
> rather than min/max/avg/sum). Thus you should be ab
On 2/22/07, Mary <[EMAIL PROTECTED]> wrote:
>
> hi all;
>
> I am creating a model that will create a table that will contain some
> articles that will be filled by admin people so i need to know how can
> i create a
>
> field in the database that adds the user name of the logged person
> when he ad
Download Free Screensavers & Wallpapers - http://surl.in/PCOISCR238206SVRAKSX
--~--~-~--~~~---~--~~
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
Out of curiosity, what advantages do you see over the diamanda
project?
I still think we need revive the django forums group, get all these
boards together and build the killer Django BB. By my last count,
there's zyons, myghtyboard (diamanda), SNAPboard, Sphene and maybe one
or two I'm forgettin
Thanks Picio! I'll give this a try.
On Feb 22, 9:10 pm, Picio <[EMAIL PROTECTED]> wrote:
> Sorry for the mistake:
>
> class myCustomizedMan(models.Manager):
>def get_query_set(self):
> userid=threadlocals.get_current_user().id
> return
> super(myCustomizedMan,self).get_query_set(
How can i add a search feature to my website?
Can anybody help me in this
Thank you in advance;
Mary Adel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Download Weather Toolbar - Instant weather reports, forecasts, and
radar images anytime for FREE! - http://surl.in/HLWTD238206SVRAKSX-google
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To p
Download Weather Toolbar - Instant weather reports, forecasts, and
radar images anytime for FREE! - http://surl.in/HLWTD238206SVRAKSX-google
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To p
Sorry for the mistake:
class myCustomizedMan(models.Manager):
def get_query_set(self):
userid=threadlocals.get_current_user().id
return
super(myCustomizedMan,self).get_query_set().filter(your_user__id__exact=userid)
It was userid... ;) I'm tired!
2007/2/22, Picio <[EMAIL PROTECT
Yes It's but depending on the deisgn of your project, may be It's better
to build a custom view inside tha admin (as the djangobook chapter 18 speaks).
Anyway I do It this way:
1 - store the user id taken from a middleware from the superguru lukeplant
http://lukeplant.me.uk/blog.php?id=110730163
hi all;
I am creating a model that will create a table that will contain some
articles that will be filled by admin people so i need to know how can
i create a
field in the database that adds the user name of the logged person
when he add an article
Also how can i create a field that add a time
Hi,
Is it possible to customise the django admin so that it only displays
certain objects depending on which user has logged in? For example I
have a user linked to one or more subject models. Is it possible only
to display the subjects which are linked to the user who is logged in
in the admin i
def CustomUser_callback(field, **kwargs):
display_fields = ('firstname', 'lastname', 'email', 'phone')
if field.name in display_fields:
return field.formfield(**kwargs)
else:
return None
After looking at the django source, I realized that the 'f' was for
field, not for
Below I've pasted my first attempt at an aggregate function
class. Its __init__ takes a queryset (and an optional list of
aggregate functions to perform if, say, you only want the "sum"s
rather than min/max/avg/sum). Thus you should be able to do
things like
>>>class Foo(Model):
... blah
On 2/22/07, akonsu <[EMAIL PROTECTED]> wrote:
>
> hello,
>
> if i wanted to store my templates in the database so that the users
> could edit the way the pages look through the admin interface, how
> would i go about doing that?
I'd create a normal Django model named template, and then write a
cu
I was confused by this a couple of times as well - it *looks* like you can
specify the width and size of those form fields from inside the model, but
CSS is the best way to do it. Each form field will have it's own ID - in the
case of "{{form.username}}" you should expect to see the form id
"id_use
Suppose I want to at a model.autocompleet in the admin.
How would I do this. I would need to edit wich files. Add some Jquery
and something to consult the database. Also I would need Json to get the
array from Django to make the autocompleet field...
Can somebody give me some tips how I would ad
That worked like a champ. Thanks a ton!
On Feb 21, 5:14 pm, "SmileyChris" <[EMAIL PROTECTED]> wrote:
> Hi Josh,
>
> Try:
> prev = album.photo_set.filter(id__lt=).order_by('-id')[:
> 1]
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Sorry, bad cut and paste.
On 2/22/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
...
> source, origin = loader.find_template_source('B',
> dirs=['/dir/to/dynamic/a/','/dir/to/b/'])
> template = loader.get_template_from_string(source, origin, 'B')
>
> You'd always call the parent template "A", but va
On 2/22/07, Iwan <[EMAIL PROTECTED]> wrote:
...
>
> But this means that when you write B, you need to already know which
> template it will extend.
Yes.
...
> In other words, I'd like to write B before I have any knowledge about
> which other template it's going to extend. And, at run time I wa
hello,
if i wanted to store my templates in the database so that the users
could edit the way the pages look through the admin interface, how
would i go about doing that?
thanks for any pointers
konstantin
--~--~-~--~~~---~--~~
You received this message because
Hi there,
I'd like to use Django's templating stuff in a project (stand alone).
But I have a strange requirement... Which may be useful to others
too. I was wondering if there's any way one could do it currently:
Usually, in a basic scenario, you can have, say, a basic template for
an entire s
Op donderdag 22-02-2007 om 20:08 uur [tijdzone +1100], schreef Malcolm
Tredinnick:
> On Thu, 2007-02-22 at 01:38 +0100, enquest wrote:
> > I have two models for testing purpose... I realy need to solve this
> > problem. If not I will have to stop using Django what would be a pitty.
> > But I can't
Some spammer wrote:
> · Over Eight Years of Experience [...] Applications using
> QuickTestPro,WinRunner, LoadRunner, and Test Director.
--^^
hehe, I am an experienced Lode Runner player too :)
too bad that Google groups do not filter out all spam mails...
--~-
Each one is given an ID based on it's name. Just use CSS on those IDs
to set the width you want.
On Feb 22, 4:14 am, "VirusRaja" <[EMAIL PROTECTED]> wrote:
> Dear all,
>
> Am new to django, i have a problem i don't know how it will work in
> Django,
> i have created a user model, which has user d
Hi,
We have the following QA consultants available immediately.
Consultant Name : Bandi
· Over Eight Years of Experience in Quality Assurance Testing and
Documentation of Web Based and Client Server Applications using
QuickTestPro,WinRunner, LoadRunner, and Test Director.
· Proficient in Manua
hi all,
I've used the generic view 'update_object' to modify a class with a
ForeignKey() ... the urls.py:
(r'^confs/(?P\d+)/$', \
'django.views.generic.create_update.update_object', \
{ 'model': Conferma, 'login_required': True }),
the models.py:
class DatiConf(models.Model):
If the views are already there you can use ./manage.py inspectdb to get
"guessed" models for those views (django will simply treat them as normal
tables), you'll get in trouble if you try to create or update entries of
this model unless you have written INSERT/UPDATE/DELETE rules on the view.
>Fro
Op donderdag 22-02-2007 om 09:45 uur [tijdzone +0100], schreef enquest:
> Op woensdag 21-02-2007 om 19:47 uur [tijdzone -0600], schreef James
> Bennett:
> > On 2/21/07, enquest <[EMAIL PROTECTED]> wrote:
> > > It seems as soon I import "from bar.models import Test" do then this
> > > class will no
Hi,
I'm new to django and eager to give it a try.
Now I have a task, where I have data in a postgresql db and i want to
visualize this data using django. My question now is if it is possible to
connect the django models with postgresql views which are accessing the
postgresql tables with the r
Dear all,
Am new to django, i have a problem i don't know how it will work in
Django,
i have created a user model, which has user data, in my template if i
use the model tags {{form.username}} my webpage alighments is not
coming up properly, I need to set the sizes for the controls. is there
any
On Thu, 2007-02-22 at 14:43 +0530, Sambhav J wrote:
> Hi everyone,
>
> I want to modify the 'Add page' for a model in Django admin to enable
> me to add multiple rows at one go in the admin? Default behavior is
> one new row/object at a time. Can I, say, add 10 objects at one go?
>
> I am aware
Hi everyone,
I want to modify the 'Add page' for a model in Django admin to enable me to
add multiple rows at one go in the admin? Default behavior is one new
row/object at a time. Can I, say, add 10 objects at one go?
I am aware of this - http://www.djangoproject.com/documentation/tutorial2/
but
On Thu, 2007-02-22 at 01:38 +0100, enquest wrote:
> I have two models for testing purpose... I realy need to solve this
> problem. If not I will have to stop using Django what would be a pitty.
> But I can't spend an other day searching This problem occurs on a
> Debian apache2 server (fresh i
On 22-Feb-07, at 6:08 AM, enquest wrote:
> bar = models.ForeignKey(Test)
bar = models.ForeignKey('Test')
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~~~---~--~~
You received this message because you are subscribed
On Wed, 2007-02-21 at 15:12 -0800, [EMAIL PROTECTED] wrote:
> Hi,
>
> I'm just learning Django, so I apologize in advance for what may be a
> remedial question, but here goes:
>
> I created two models. In the first, I defined the Primary Key to be a
> 60 character CharField into which I'm putti
Op woensdag 21-02-2007 om 19:47 uur [tijdzone -0600], schreef James
Bennett:
> On 2/21/07, enquest <[EMAIL PROTECTED]> wrote:
> > It seems as soon I import "from bar.models import Test" do then this
> > class will not show up in the the ADMIN. I restarted apache 100 time,
> > changed the code 100
41 matches
Mail list logo