Hey there,
The last Django application I worked on was in 0.96 and I'm trying to
get used to the new stuff in there.
I've been following the docs here:
http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#id2
trying to use the formset_factory on some forms.
I have a Contact model,
but it comes back that it doesn't
exist. Any suggestions?
On Sun, Apr 13, 2008 at 12:56 PM, Tane Piper
<[EMAIL PROTECTED]> wrote:
> Hi Malcolm,
>
> values() seems to be the way to go for now. I've extracted some of
> the code back to a context variable, and anything within a
, Malcolm Tredinnick
<[EMAIL PROTECTED]> wrote:
>
>
> On Sun, 2008-04-13 at 11:46 +0100, Tane Piper wrote:
> [...]
>
> > What I want to
> > know is there any way I could simplify the method and have it remove
> > the password field any time a user object is b
object is being selected as part of
a related query?? I'm sure there is a need for it when doing
authorisation, but once a session has been confirmed, is it needed
again?
--
Tane Piper
Blog - http://digitalspaghetti.me.uk
Skype: digitalspaghetti
This email is: [ ] blogable [ x ] ask first
lletine
> (because discussion about it rated vBulletine as best).
> I am preferring Django based app.
> Otherwise, I would go with SimpleMachineForum (SMF). So if the django-
> app for forum is not available, please tell me how to integrate the
> SMF with django (session and autheticat
t.setDaemon(True)
> t.start()
> return HttpResponse(..)
>
> Or does django/apache have limitation on how threading can be used?
> Would my thread be killed, once the response is sent back?
>
> >
>
--
Tane Piper
Blog - http://digitalspaghetti.me.uk
Skype: digitalspaghetti
in a template view and put it into an error box that would pop
> up over the webpage should the user cause an issue. Any help would be
> appreciated. Thanks for your time.
> Jacob
> >
>
--
Tane Piper
Blog - http://digitalspaghetti.me.uk
Wii: 4734 3486 7149 1830
This email is: [ ]
versions of this concept, with various add-ons to deal with other
> interesting and specific problems. The core, though, it pretty simple.
> I wanted a stand-alone version that I could run only having Python 2.5
> on a box (windows, linux, mac, whatever) - so that's what became the
> seed for DQS at
effect. Or if some other technique was widely used
> among Django users.
>
> Any help or ideas appreciated.
>
> Thanks,
> Michael
>
>
>
> >
>
--
Tane Piper
Blog - http://digitalspaghetti.me.uk
Wii: 4734 3486 7149 1830
This email is: [ ] blogable [ x ] ask fi
CTED]> wrote:
> > I want to use django-queue-service to run long running processess in
> > background, but I can not find any documentation about this. Their
> > website http://code.google.com/p/django-queue-service/ does not
> > contain any docs. Does any one have any links
going on with a page.
Hope that helps.
On Jan 23, 2008 3:17 PM, Claudio Escudero <[EMAIL PROTECTED]> wrote:
> Hi,
>
> How I see the SQL generated in the system in development?
> Its appears on the console?
>
> Thank,
> Claudio Escudero
>
> >
>
--
Tane Pip
esn't have the right data at the moment it should
still write each line for each active extention.
Can anyone help?
--
Tane Piper
Blog - http://digitalspaghetti.me.uk
Wii: 4734 3486 7149 1830
This email is: [ ] blogable [ x ] ask first [ ] private
--~--~-~--~~~---
is ). The problem I am having is HOW to I get the
now-run WSGI app to display as the page in Django?
Any help will be VERY appreciated.
--
Tane Piper
Blog - http://digitalspaghetti.me.uk
Wii: 4734 3486 7149 1830
This email is: [ ] blogable [ x ] ask first [ ] private
Sorry folks, something weird is going on with my email - I'm able to
send emails but I don't receive them from the list, so I never got
your replied (and it would have saved me a long time searching)
Thanks for your replies
On Dec 14, 8:56 am, "Tane Piper" <[EMAIL PROT
Managed to fix it. Had a hunt in the django code for what the admin
modules does and discovered the Model.objects.get_or_create function.
Now works perfectly!
On 13/12/2007, Tane Piper <[EMAIL PROTECTED]> wrote:
> Ok, I've modified this slightly, however still cannot get this
with a sender (being IssueType, IssueSeverity and
IssueStatus) - however when the models are created they don't get
called. Take the sender away and each function gets called 8 times -
very strange.
Can anyone help?
On 13/12/2007, Tane Piper <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
>
> {{{
> class Category(models.Model):
> ...
> def save(self):
> if not self.slug:
> self.slug = slugify(self.name)
> self.num_entries = self.entry_set.count()
> super(Category, self).save()
> ...
> }}}
>
> Hope that helps, or at leas
elds = ['body', 'title']
date_hierarchy = 'pub_date'
ordering = ('pub_date',)
On Dec 5, 2007 6:28 PM, RajeshD <[EMAIL PROTECTED]> wrote:
>
>
> >
> > Hope that makes sense, as if I can do it this way instead of
> > calculating i
> Yet another solution is to convert your cats queryset to a list, loop
> over it to get an entry count, and then sort the list in Python to
> pass on to your template.
>
> So there seem to be many ways to skin this cat.
>
> -Rajesh Dhawan
> >
>
--
Tane Piper
had tried before to store this value in a field, but
couldn't get it to save, otherwise I would just pass in a field
'num_entries' so if anyone can suggest anything, that would be great.
Thanks,
--
Tane Piper
Blog - http://digitalspaghetti.me.uk
AJAX
Ok, I've fixed it now. Instead of trying to save the value, I show
the value on my list page:
def num_leafs(self):
return self.leaf_set.count()
num_leafs.short_description = "Number of Leafs"
Thanks for your help anyway.
On Dec 1, 2007 3:40 PM, Tane Piper <[EMAIL PROT
, and not the id. Any ideas?
On Dec 1, 2007 3:15 AM, Simon Willison <[EMAIL PROTECTED]> wrote:
>
> On Nov 30, 4:48 pm, "Tane Piper" <[EMAIL PROTECTED]>
> wrote:
> > As you can see in the Branch model, there is a field called num_leafs
> > - I've been readi
). I also
need to go reduced it by one each time a leaf is removed. If I could
get some help with this first one (which I was able to implement
easily in PHP but just cannot translate to Django) I think I'll be
fine.
--
Tane Piper
Blog - http://digitalspaghetti.me.uk
AJAX Pastebin - http
atic-html-escaping
>
> Karen
>
>
>
> On 11/29/07, Tane Piper <[EMAIL PROTECTED]> wrote:
> >
> > I was actually just about to reply to say I had found this problem :)
> > Silly me. However, I now have an issue (which is probably out of
> > scope here,
AIL PROTECTED]> wrote:
>
> On 11/29/07, Tane Piper <[EMAIL PROTECTED]> wrote:
>
>
> >
> > Hi Folks,
> >
> > I have only been using Python since the weekend, and Django since
> > Tuesday so I'm quite new to the API, and I've hit a snag with what I'm
&g
erns =
patterns('',\r\n (r'^$',
'django.views.generic.list_detail.object_list', info_dict),\r\n
(r'^(?P\\d+)/$',
'pastemonkey2.pastes.views.show_paste'),\r\n)",
,
)
Instead of nice marked up code. I'm wondering if anyone can suggest
where I am going wrong?
Thanks
Tane Piper
Blog - http://di
26 matches
Mail list logo