On 12/1/06, James Bennett <[EMAIL PROTECTED]> wrote:
> Now, does anybody want to talk about Django?
Yes!
Is anyone writing financial or money-handling applications in Django?
Any particular issues or "gotchas" the world should know about?
a
--~--~-~--~~~---~--~
have done some work on comparative
performance, but couldn't squeeze it into our schedule. If anyone out
there would like to do some performance research with the Habitual
Readers codebase, you're welcome to, and please drop us a line if we
can help in any way.
Cheers,
Alan.
--
Al
the Rails programmer's prior Ruby experience.
Excellent point. Will fix. Thankyou.
Cheers,
Alan.
>
> -David Sissitka
>
> >
>
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
--~--~-~--~~~---~--~~
You received this message because
Cheers,
Alan.
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
--~--~-~--~~~---~--~~
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@googlegroup
'latest_posts': posts,
> })
That's it there, I think. RequestContext takes a request object as its
first parameter. Try
c = RequestContext(request, {
'latest_posts': posts,
})
Cheers,
Alan
--
Alan Green
[EMAIL PROTECTED] - http://bri
Fields says, "we don't recommend you use them."
http://www.djangoproject.com/documentation/model_api/#one-to-one-relationships
One of my applications has a UserProfile object. After trying
OneToOneFields and not quite getting the results I wanted, I settled
on using a ForeignKey inst
ng your web server and database of choice.
Alan.
>
> --
>
> regards
> kg
> http://lawgon.livejournal.com
> http://nrcfosshelpline.in/web/
>
>
>
> >
>
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
--~--~-~--~~~---~--
ice that I substituted the game.id for the forloop.counter. This
makes it much easier to retrieve the selected game later, not to
mention making the page more resilient to changes in the backing
database)
Hope all that helps,
Alan.
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
-
forme detallado de un viaje"-
>
> def viajes(request):
>"Genera listados de viajes por distintos criterios"
>clie = 'Todos'
>prov = 'Todos'
>desde = 'Sin limite'
>hasta = 'Sin limite'
>paxs = 'Tod
part of the code is
>
> amxdev/contable/views.py
> ...
>
> def viajes(request):
> if request.GET['numero'] != '':
> resp = viaje(request)
> return resp
>
>
> def viaje(request, numero=None):
> ...
>
where the
tags are loaded from.
Either way wouldn't make much difference to me, though the Django devs
obviously have a preference from the current behaviour.
Regards,
Alan.
>
> Thanks,
> Rob
>
>
> >
>
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
--~--
may find the Django FlatPage app helpful:
http://www.djangoproject.com/documentation/flatpages/
Cheers,
Alan.
>
>
> >
>
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
--~--~-~--~~~---~--~~
You received this message because you are subscr
e fields, it may be
worthwhile coding up your own subclass of django.forms.FormField or
django.forms.HiddenField, which renders the three drop-down lists and
does the validation.
Alan.
>
> Regards,
>Jakub
>
>
> >
>
--
Alan Green
[EMAIL PROTECTED] - http://br
ot; =
> %s','"django_content_type"."model" != %s'], ['%profile',
> 'users','profile'])
Thanks for the sample. The only thing I'd add is that, if your custom
Q object may be combined with other Q objects in the same query,
Dj
if the Ticker is required for every request. If not,
you might consider writing a custom tag that can be called by
ticker.html and would load the context with the correct variables.
Hope it works out for you,
Alan.
--
Alan Green
[EMAIL PROTECTED]
On 8/27/06, Michael van der Westhuizen <[EMAIL PROTECTED]> wrote:
> On 8/27/06, Alan Green <[EMAIL PROTECTED]> wrote:
> > I'm having a problem with the Admin "View on site" button. According
> [snip]
> > My model objects have a get_absolute_url() metho
19c3bbf9a52c375?lnk=st&q=included+template+object+django&rnum=3&hl=en#819c3bbf9a52c375
> post about inclusion tags, and it's not exactly what I want. As far as
> I can tell, inclusion tags would allow me to load an object in the
> paren
iour?
syncdb only ever adds records to the database. The code that does this
is in django/contrib/auth/management.py.
So, yes, this is normal behaviour.
When you say 'stale records' do you mean records for permissions for
tables that no longer exist?
Cheers,
Alan.
>
>
> &g
On 8/22/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
> On 8/22/06, Alan Green <[EMAIL PROTECTED]> wrote:
> > Has anybody found a way to add an table to query with an outer join?
> It isn't really a documented feature, and I haven't worked through the
&
ttp://www.voidspace.org.uk/python/movpy/
> 2. Can I kick off Django via my run.py script but not have it throw up
> a command window? I'm guessing maybe something with Tk/Tkinter but I'd
> like to avoid those extra dependencies if I can.
pythonw.exe (in your python install di
_data = dict(template.__dict__)
By the way, be really careful about accessing the __dict__ attribute
in Django code. Django sprinkles all kinds of interesting stuff into
its own objects, so you may sometimes get a surprise.
Alan.
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
--~--~--
s. It
works, but it's ugly.
Anybody got a different way to do it?
Alan.
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" g
t a fragment of HTML - just that part that needs
to go on both pages. It should not have HTML, HEAD or BODY tags.
Make sense? If not let us know and I'm sure you'll get a fuller explanation.
Alan
--
Alan Green
What's that Django template doing the
t object to the login
> method, then it goes into infinite recursion
Are you confusing the login method from django.contrib.auth with the
login method from django.contrib.auth.views? Both take a request as
the first parameter, but the first has two positional parameters,
while the second as o
{% endif %}
>
> To display an appropriate number of stars for a video clip in a
> template.
Hi Mae,
The widthratio tag may be helpful:
http://www.djangoproject.com/documentation/templates/#widthratio
Alan.
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
--~--~-~--~--
er's session:
http://www.djangoproject.com/documentation/sessions/
Kind regards,
Alan.
>
> The todo "Todo object" was deleted successfully.
>
>
> >
>
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
--~--~-~--~~~---~--
ar.id"?
4. You might also try using a Django query rather than looping over
the data in code. Something like:
def get_events(self):
return SerialNumber.objects.filter(year = self.year.id)
Alan.
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
--~--~-~--~~--
l2python(new_data)
> new_place=manipulator.save(new_data)
> return HttpResponseRedirect(new_place.get_absolute_url())
> else:
> errors = {}
> new_data = manipulator.flatten_data()
> new_data.update(dict(request.GET.items()))
> form
o ensure that type of data in
request.session.pfilter matches the type of data in project.id. Either
that, or create your own filter.
Alan.
>
>
> >
>
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
--~--~-~--~~~---~--~~
You received th
="multipart/form-data" to the form, then Django will put the
uploaded files into request.FILES. You can then verify the uploaded
files and save them wherever you want to in the file system.
HTH,
Alan.
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
On 8/7/06, Adam Seering &l
On 8/5/06, Simon Willison <[EMAIL PROTECTED]> wrote:
>
> http://www.twit.tv/floss11
>
> Django gets some good discussion about 50 minutes in.
Guido sure says nice things about Django. Congratulations!
a
--
Alan Green
[EMAIL PROTECTED] - http:
Field not suitable for that case.
For just one field in just one application, I recommend treating it as
a regular text field and implementing your own rendering and
validation.
HTH,
Alan.
>
> --
> --
> Michael
> >
>
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.c
ou may need a custom
AddManipulator, or perhaps even a form manipulator. These are not
difficult to use, and you should be up and going within a few hours.
Alan
>
> Thanks,
> medhat
>
>
> >
>
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
--~--~-~--~~--
ng userdata I havenĀ“t
> thought about ... suggestions are more than welcome.
>
> hope I put the issue across ...
>
> thanks,
> patrick
>
> >
>
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
--~--~-~--~~~---~--~~
You rec
example.
Callable defaults - impressive!
a
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
application_data_.html
Alan.
>
>
> Gen
>
>
> >
>
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
e at the right time and its simplejson module makes short work of
servicing AJAX requests.
The only hoop I've had to jump through with AJAX is relearning the DOM
- I have dabbled in DHTML previously, but the functionality I'm now
implementing requires more than dabbling.
Alan.
--
Alan Gr
- for example, if method
a raises an exception, which b catches and doesn't re-raise.
a
--
Alan Green
[EMAIL PROTECTED] - http://bright-green.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users&q
38 matches
Mail list logo