Re: Using the enumerate() function in a loop?

2007-07-23 Thread Kenneth Gonsalves
On 22-Jul-07, at 10:09 AM, Greg wrote: > {% for i, a in enumerate(mychoice) %} if this is the python enumerate function, you cant put python code in a template - and i dont think you can pass parameters withing () anyway in a template. -- regards kg http://lawgon.livejournal.com http://n

Re: Which database, and why?

2007-07-23 Thread Kenneth Gonsalves
On 22-Jul-07, at 11:33 AM, Nicola Larosa wrote: >> I think it's this historical baggage of non-ANSI-compliance for MySQL >> that dings it to a lower status than PostgreSQL. As the newer, more >> compliant versions of MySQL begin to be more available on hosting >> services, this gap will close.

Re: Using Threadlocals: Error binding parameter 5 - probably unsupported type.

2007-07-23 Thread Michael Lake
Hi all I have solved the problem I described below. I just guessed at the solution after reading Ticket #3413 (closed: invalid). In that case a class object was being passed as a param to the database instead of a user id. And indeed clue was the full error message in the traceback /u

Re: Multiple for loops, alternating between key and value?

2007-07-23 Thread Russell Keith-Magee
On 7/24/07, drkfce <[EMAIL PROTECTED]> wrote: > > Is there any possible way to have the first loop just display the key? Sure - you just need to walk through the data correctly. Your context contains the `switch_info`, which is a list of dictionaries. When you print {% for item in switch_info %

Trouble with last bit of Tutorial

2007-07-23 Thread [EMAIL PROTECTED]
I'm trying to put the last bit on the tutorial. I'm running django 0.96 on ubuntu, and I got stuck here: Did I replace every instance of poll with object correctly in my poll_detail.html template? When I view it, it show the question, and the button below, but no choices. Have I done something wr

Re: Django - technology or magic?

2007-07-23 Thread Russell Keith-Magee
On 7/24/07, to_see <[EMAIL PROTECTED]> wrote: > Am I having a fairly normal introduction to a web framework? I cannot > see this as technology. All I see is magic. You should note that when Clarke made that comment, he was referring to the fact that if you don't understand the fundamentals of

Re: Porting Depot tutorial from "Agile Web Development with Rails" to Django?

2007-07-23 Thread [EMAIL PROTECTED]
yes, this is a completed sample On Jul 24, 2:24 am, diz <[EMAIL PROTECTED]> wrote: > Hi, smart people! > > Is there any chance that some kind soul will port Depot tutorial from > Rails book to Django (or create something different with comparable > depth)? It's soo incredibly cool! --~-

Re: Random character in rendered HTML

2007-07-23 Thread Ned Batchelder
It's hard to say for sure. What is the character? When you say "random", do you mean it changes all the time, or it's a constant but inexplicable value? I would look into whether the different HTML files maybe have different file encodings or Unicode byte treatments. A hexdump utility can b

Django - technology or magic?

2007-07-23 Thread to_see
"Any sufficiently advanced technology is indistinguishable from magic." Arthur C. Clarke, "Profiles of The Future", 1961 (Clarke's third law) After getting the tutorial example to work, then making a first-draft version of my proposed application, I hit a wall trying to do something that seem

Re: Should I give up on dreamhost?

2007-07-23 Thread Nathan Ostgard
First, I've recently setup a Dreamhost account myself with no problems -- feel free to email me directly if you want some help, and I'll see what I can do. That said... Django and Python are still going through growing pains in the shared hosting department. The same thing was going on with Ruby

Multiple for loops, alternating between key and value?

2007-07-23 Thread drkfce
Hi all, first time poster, beginner Django user. RIght now, I'm trying to build a page that telnets into two or more switches, gathers the data from each switch, and puts the information into a palatable form. I managed to get the information into a format that I think is acceptable; a list of d

Re: prepare() on oldforms.CheckboxSelectMultipleField not working properly?

2007-07-23 Thread Daniel Kvasnicka jr.
getlist() saved my day, thanks much :) Cheers, Dan On Jul 23, 6:57 pm, rskm1 <[EMAIL PROTECTED]> wrote: > On Jul 22, 10:16 am, "Daniel Kvasnicka jr." > > <[EMAIL PROTECTED]> wrote: > > errors = form.get_validation_errors(data) > > > which in effect calls prepare() on every field, my data from th

Re: Instant Django

2007-07-23 Thread cjl
Nathan: Thank you for the suggestion, I'm sure you're right. I'll add in a start-up message to 'start.bat' the next time I upload an update. Cam: Thank you for the kind words. If you do get a change to play around with it, I would appreciate feedback and bug reports. Rob: I see you read my 'di

Re: Should I give up on dreamhost?

2007-07-23 Thread walterbyrd
On Jul 23, 12:38 pm, Tyson Tate <[EMAIL PROTECTED]> wrote: > On Jul 23, 2007, at 11:23 AM, walterbyrd wrote: > Blaming Django for FastCGI problems on discount-rate hosting services I don't "blame" Linux for not running all the newest hardware, but if need a certain piece of HW, and Linux doesn't

Re: How to make use of the hooks in newforms-admin?

2007-07-23 Thread Jonathan Buchanan
AndyB wrote: > Page 18 and 19 of this PDF: > http://www.vanpyz.org/Djangojam/django_vancouver.pdf > > give examples of some of the new hooks available in newforms-admin. > This is the only documentation I can find anywhere for this at the > moment. > > The examples involve declaring a class cal

Re: ForeignKey('self') field displays primary key in list_filter

2007-07-23 Thread John
Nevermind, I deleted and syncdb'd the models and what i expected showed up On Jul 23, 3:28 pm, John <[EMAIL PROTECTED]> wrote: > Hi guys, > > In a model I have the line: > > base_lot = models.ForeignKey('self', blank=True, null=True, > related_name='base') > > In the admin, when I set list_filter

Re: Django Blocking/ Background Jobs

2007-07-23 Thread Norjee
Apart from twisten there are other libraries which offer remoting for python: spyro: http://lsc.fie.umich.mx/~sadit/spyro/spyro.html pyro: http://pyro.sourceforge.net/manual/PyroManual.html If i remember well there is atleast one more, i forgot the name of that project. I'm affraid there is no r

Insert vs. Update

2007-07-23 Thread PyMan
Can anyone tell me why Django do this while using save()? : 1) do select 2) if found do update 3) else do insert In both case (insert or update) it ends in 2 steps. It could be so : 1) Do insert 2) If ok then stop (1 step) 3) else if error because of PK's dupkey then do update (2 step only in

Re: Should I give up on dreamhost?

2007-07-23 Thread Tim Chase
>> Personally, I'm of the opinion that Dreamhost should be >> taken off the list of Django-friendly hosts. > > I totally agree. A host called "Django-friendly" should > directly offer support for how to use Django on their servers. > Without that it requires a little bit too much effort for ... >

Re: Should I give up on dreamhost?

2007-07-23 Thread Horst Gutmann
[EMAIL PROTECTED] wrote: > Personally, I'm of the opinion that Dreamhost should be taken off the > list of Django-friendly hosts. I totally agree. A host called "Django-friendly" should directly offer support for how to use Django on their servers. Without that it requires a little bit too much

ForeignKey('self') field displays primary key in list_filter

2007-07-23 Thread John
Hi guys, In a model I have the line: base_lot = models.ForeignKey('self', blank=True, null=True, related_name='base') In the admin, when I set list_filter to 'base_lot', it displays the primary key of the record it is related to instead of what the __str__ model function returns. Is this norma

Re: Should I give up on dreamhost?

2007-07-23 Thread machineghost
>> Personally, I'm of the opinion that Dreamhost should be taken off the >> list of Django-friendly hosts. Let me second that. I struggled with Dreamhost for awhile before finally giving up and buying a WebFaction account, and boy was I glad once I did. Dreamhost does NOT deserve to be called "D

Auth framework: count the number of logins

2007-07-23 Thread Michel Thadeu Sabchuk
Hi guys! Is there a default way to count how many times a user logged in over the django auth framework? As I read the source of django.contrib.auth I didn´t find anything, but I must be sure of this before starting my own solution. Thanks in advance! --~--~-~--~~~-

Re: Should I give up on dreamhost?

2007-07-23 Thread [EMAIL PROTECTED]
Personally, I'm of the opinion that Dreamhost should be taken off the list of Django-friendly hosts. They don't officially support it, what support they do offer is hit and miss (since it is unofficial) and it seems to me that anything more than a small, lightly trafficked site is going to overpow

Re: mod_python problem?

2007-07-23 Thread James McManus
It works if I change: return HttpResponseRedirect('/polls/%s/results/' % p.id) to return HttpResponseRedirect('/mysite/polls/%s/results/' % p.id) in polls/view.py and change: to in template poll_detail.html. On 7/23/07, James McManus <[EMAIL PROTECTED]> wrote: > > I spoke to soon. Using

How to make use of the hooks in newforms-admin?

2007-07-23 Thread AndyB
Page 18 and 19 of this PDF: http://www.vanpyz.org/Djangojam/django_vancouver.pdf give examples of some of the new hooks available in newforms-admin. This is the only documentation I can find anywhere for this at the moment. The examples involve declaring a class called Admin. I think I might be

Re: Should I give up on dreamhost?

2007-07-23 Thread AndyB
Me too. I've had my share of problems but the two key things that got it working reliably was asking Dreamhost support to increase the servers 'softlimit' setting and to use the filename 'dispatch.fcgi' rather than 'django.fcgi' so that Dreamhost's process pruner doesn't keep killing Django. I've

Re: Django Blocking/ Background Jobs

2007-07-23 Thread Andrey Khavryuchenko
Paul, PB> On Jul 23, 3:50 pm, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote: >> Paul, >> PB> Are there any better approaches? I'm sure someone has needed PB> background tasks liked spidering, querying whois, downloading PB> images,... before, without stalling the whole process. >> >> I

Random character in rendered HTML

2007-07-23 Thread brutimus
I've been having this problem with what I believe is a random Unicode character showing up in my rendered HTML. Here's the template setup... {% block content %} {% include "whatever.html" %} {% endblock %} So here are my tests. I've put a marker (just some unique word) right before the op

Re: mod_python problem?

2007-07-23 Thread James McManus
I spoke to soon. Using in httpd works but of course it sets mysite as the root directory to my web site. I do not want to do that, at this time. If I use and r'^mysite.polls in mysite/urls.py everything works up to the point of voting, when the second problem occurs. When I vote the URL changes f

Re: Should I give up on dreamhost?

2007-07-23 Thread Horst Gutmann
walterbyrd wrote: > Also, wondering if I should give up on django, at least for now. > > I just can not get fastcgi working. I have read the django wiki, I > have tried to follow jeffcroft's tutorial. I just can not get it to > work. From what I'm seeing on the message boards, it's a common > pro

Re: Should I give up on dreamhost?

2007-07-23 Thread Tyson Tate
On Jul 23, 2007, at 11:23 AM, walterbyrd wrote: > From what I'm seeing on the message boards, it's a common > problem. [snip] > Now, some people are suggesting that I buy a third account > from WebFaction. This is getting old folks. Old and expensive. If it's clear on the message boards that d

Porting Depot tutorial from "Agile Web Development with Rails" to Django?

2007-07-23 Thread diz
Hi, smart people! Is there any chance that some kind soul will port Depot tutorial from Rails book to Django (or create something different with comparable depth)? It's soo incredibly cool! --~--~-~--~~~---~--~~ You received this message because you are s

Should I give up on dreamhost?

2007-07-23 Thread walterbyrd
Also, wondering if I should give up on django, at least for now. I just can not get fastcgi working. I have read the django wiki, I have tried to follow jeffcroft's tutorial. I just can not get it to work. From what I'm seeing on the message boards, it's a common problem. I've never used fastcgi

Re: mod_python problem?

2007-07-23 Thread James McManus
Using in httpd worked, best in that it resolved the second problem. I did have an additional problem in the last section of the tutorial. In polls/urls.py I had to change: (r'^(?P\d+)/vote/$', 'mysite.polls.views.vote'), to (r'^(?P\d+)/vote/$', 'mysite.polls.views.vote'), for vote to work. Ot

unicode migration problem

2007-07-23 Thread dummy
Hi all, I have a project which I currently migrate to the svn-trunk with unicode support. I have the following simple Model: class MyModel(models.Model): name = models.CharField(maxlenght=60) def __unicode__(self): return self.name # no def __str__ ! In a view I want to translate

Make Money

2007-07-23 Thread Mirko48
www.mirko-homepage.tk --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PR

Re: Overriding the model's save() method

2007-07-23 Thread Nic James Ferrier
Chris Hoeppner <[EMAIL PROTECTED]> writes: > If I get this right, you're saving the original file, and a separate > thumb file. While this seems interesting, it's not what I want to > implement. It's more of a bit of catching the incoming data and > transforming it before it gets saved in the mod

Authentication with remember me like option

2007-07-23 Thread acidity
Hello I am reading the sessions docs at: http://www.djangoproject.com/documentation/sessions/. I have a question. If I use the auth system and a user logs in, he is automatically logged in for 2 weeks by default. Thats how SESSION_COOKIE_AGE is set by default? I want to implement a "Remember M

Make Money with E-Mails

2007-07-23 Thread Mirko48
Hallo Ihr, auf meiner Homepage: www.mirko-homepage.tk Auf der Homepage gibt Interessante Links zum Geld verdienen mit seiner eigenen Homepage oder man kann Geld verdienen durch das Lesen von E-Mails. --~--~-~--~~~---~--~~ You received this message because you are

Re: How to do not escape a unicode string in Django

2007-07-23 Thread Jacob Kaplan-Moss
Hi David -- It's probably just your shell; try ``print myobject`` instead. Jacob --~--~-~--~~~---~--~~ 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.

Re: Instant Django

2007-07-23 Thread Nathan Ostgard
Pretty sweet, good job! I would recommend echoing some info when one runs start.bat. I thought it wasn't working right at first because it just opened a normal command prompt. Just telling people a few of the Django commands that are available to them would probably be enough. On Jul 23, 8:14 am

Re: upload progress bar (ticket #4165)

2007-07-23 Thread Dirk van Oosterbosch, IR labs
Thanks for replying Chatchai, with Firebug on I do see some errors indeed, occurring every second: uncaught exception: [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXMLHttpRequest.send]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "

Re: Overriding the model's save() method

2007-07-23 Thread Chris Hoeppner
Nic James Ferrier escribió: > Chris Hoeppner <[EMAIL PROTECTED]> writes: > >> Maybe something like >> >> def save(self): >> self.imageField = pil.thumbnail(self.imageField) >> >> Can't really tell if I'm on the right track here. > > Search the list... I've got this from the list: > > > I

Re: Overriding the model's save() method

2007-07-23 Thread Nic James Ferrier
Chris Hoeppner <[EMAIL PROTECTED]> writes: > Maybe something like > > def save(self): > self.imageField = pil.thumbnail(self.imageField) > > Can't really tell if I'm on the right track here. Search the list... I've got this from the list: IMAGE_SIZE = [300, 300] THUMBNAIL_SIZE = [100

Re: prepare() on oldforms.CheckboxSelectMultipleField not working properly?

2007-07-23 Thread rskm1
On Jul 22, 10:16 am, "Daniel Kvasnicka jr." <[EMAIL PROTECTED]> wrote: > errors = form.get_validation_errors(data) > > which in effect calls prepare() on every field, my data from those > selects are trimmed and contain only the last checked item. So when I > have the following choices from which

Re: Instant Django

2007-07-23 Thread rtconner
Jazz is good music. I suppose you've never seen a good Jazz trio play at a nice club while you sip some wine with a lovely woman. Otherwise you would like Jazz a little more. On Jul 23, 9:14 am, cjl <[EMAIL PROTECTED]> wrote: > Group: > > Over the last few weeks I put up a little website called I

Re: Overriding the model's save() method

2007-07-23 Thread Sydney Weidman
On Jul 23, 11:07 am, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > Hi there! > > I haven't been able to find this documented anywhere (and I'll kindly > apologize if there actually *is* some doc about it), and thought I'd > turn to you guys ;) > > I'd like to override a model's save() method in orde

Re: Instant Django

2007-07-23 Thread Cam McVey
On 7/23/07, cjl <[EMAIL PROTECTED]> wrote: > Over the last few weeks I put up a little website called Instant > Django: > > http://www.instantdjango.com I looked at this earlier today. Excellent work! As a windows user, I really appreciate your efforts here and I'm going to install a copy onto m

Re: Overriding the model's save() method

2007-07-23 Thread John Shaffer
There are short docs here: http://www.djangoproject.com/documentation/model-api/#overriding-default-model-methods That's really all you need to know. Just manipulate your fields and then call the original save method (through super). Another simple example. This save method emulates the behavior

Re: Django Blocking/ Background Jobs

2007-07-23 Thread Benjamin Slavin
On 7/23/07, Paul Böhm <[EMAIL PROTECTED]> wrote: > How do you get data to and from them ? I don't need scheduled tasks, > but background tasks. > > The jobs are running just a few seconds and i need quick response We have a combination of scheduled (cron-like) and asynchronous (background) tasks,

Re: reverse pagination

2007-07-23 Thread Amit Upadhyay
On 7/23/07, Nis Jørgensen <[EMAIL PROTECTED]> wrote: > > Is there anything in your proposal that isn't solved by using something > like > > MyModel.objects.order_by('some_field') > > for the queryset passed to the paginator? This will reverse the order of objects, you do not want to show the olde

Overriding the model's save() method

2007-07-23 Thread Chris Hoeppner
Hi there! I haven't been able to find this documented anywhere (and I'll kindly apologize if there actually *is* some doc about it), and thought I'd turn to you guys ;) I'd like to override a model's save() method in order to "thumbnailize" the data from an image field. Users are able to upload i

Re: URL reverse

2007-07-23 Thread Chris Hoeppner
John Shaffer escribió: > Why not use the URL's name? > > {% url anuncios-entry-detail category=entry.category.slug,entry=entry.id %} > > --~--~-~--~~~---~--~~ > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Re: URL reverse

2007-07-23 Thread John Shaffer
Why not use the URL's name? {% url anuncios-entry-detail category=entry.category.slug,entry=entry.id %} --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: Django Blocking/ Background Jobs

2007-07-23 Thread Paul Böhm
Andrey, On Jul 23, 3:50 pm, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote: > Paul, > > PB> Are there any better approaches? I'm sure someone has needed > PB> background tasks liked spidering, querying whois, downloading > PB> images,... before, without stalling the whole process. > > I'm usin

Re: Related Field has invalid lookup: icontains

2007-07-23 Thread l5x
Okay. It works! The missing part in my code was: Q(author__username__icontains=phrase). I couldn't find it. Thank you for your help. @Tim: I will remember to debug it that way in the future. Thanks. --~--~-~--~~~---~--~~ You received this message because you are

Instant Django

2007-07-23 Thread cjl
Group: Over the last few weeks I put up a little website called Instant Django: http://www.instantdjango.com It includes a simple tutorial, and a no-installation-required, portable django development environment for windows that can be run from a USB thumb drive. I have just finished a very ro

Re: List with pagination, sorting and simple search interface

2007-07-23 Thread Sydney Weidman
I don't think there are pre-made components that will provide you with all of those things, and being somewhat new to django I can only point you to one bit of documentation and code that I found helpful for pagination: http://code.djangoproject.com/wiki/PaginatorTag Regards, Syd On Jul 23, 7:3

Re: Related Field has invalid lookup: icontains

2007-07-23 Thread Tim Chase
> news = News.objects.filter( > Q(title__icontains=phrase) > | Q(tags__icontains=phrase) > | Q(short__icontains=phrase) > | Q(content__icontains=phrase) > | Q(author__icontains=phrase) > | Q(source__icontains=phrase) > ) > > Does anybody know what can I do to fix that ? A couple i

Re: Related Field has invalid lookup: icontains

2007-07-23 Thread Nis Jørgensen
l5x skrev: > Hello, > > I have code for searching: > > news = News.objects.filter( > Q(title__icontains=phrase) > | Q(tags__icontains=phrase) > | Q(short__icontains=phrase) > | Q(content__icontains=phrase) > | Q(author__icontains=phrase) > | Q(source__icontains=phrase) > ) > News m

Re: Advertisement Management

2007-07-23 Thread James Aylett
On Mon, Jul 23, 2007 at 07:35:39AM -0700, [EMAIL PROTECTED] wrote: > I have a bone-simple solution I use that allows setting up advertisers > and assigning them to sections of the site, and I'd be happy to share > it, but... > 1) I haven't really thought much about making it portable. I know I >

Re: Advertisement Management

2007-07-23 Thread [EMAIL PROTECTED]
What do you need it to do? I have a bone-simple solution I use that allows setting up advertisers and assigning them to sections of the site, and I'd be happy to share it, but... 1) I haven't really thought much about making it portable. I know I just moved it over to a new site I'm creating, and

Re: upload progress bar (ticket #4165)

2007-07-23 Thread meledictas
1. Check if your upload temp dir is contain file with 32 length random character is created. 2. If not, check you javascript that summit upload form, it should have 32 random character as a query string. 3. For firefox, use filebug extension to see if there are polling for upload status, it occur

Related Field has invalid lookup: icontains

2007-07-23 Thread l5x
Hello, I have code for searching: news = News.objects.filter( Q(title__icontains=phrase) | Q(tags__icontains=phrase) | Q(short__icontains=phrase) | Q(content__icontains=phrase) | Q(author__icontains=phrase) | Q(source__icontains=phrase) ) News model looks like that: class News(m

Re: Django Blocking/ Background Jobs

2007-07-23 Thread Andrey Khavryuchenko
Paul, PB> Are there any better approaches? I'm sure someone has needed PB> background tasks liked spidering, querying whois, downloading PB> images,... before, without stalling the whole process. I'm using plain cron jobs that do regular jobs. There are plenty of example snippets describing

Re: REST authentication with apache

2007-07-23 Thread [EMAIL PROTECTED]
On Jul 23, 2:05 pm, Nic James Ferrier <[EMAIL PROTECTED]> wrote: > Can't you just read the base64 data from the auth header and decode > it? Yes if the 'AUTH_TYPE' in request.META was not is None And I can understand why. --~--~-~--~~~---~--~~ You received this

Name of inclusion-tag template built in run-time

2007-07-23 Thread Peter Melvyn
Hi all, I have a box containing some static texts in different languages and I would like to plug-in into few pages as inclusion tag. But I'm not able to find-out a way how to supply language code for its template name containing thos static text. I need something like this: register.inclusion

Django Blocking/ Background Jobs

2007-07-23 Thread Paul Böhm
Hey there, i'm porting a rather large pre-launch site from rails to django right now because we're tired of debugging rails.. making fairly good progress too. I have one question though: what's a good way to handle background jobs? Is there some standard python solution for that? i've looked for

Re: REST authentication with apache

2007-07-23 Thread Nic James Ferrier
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Hi, > I'm trying to implement a REST service with django and I have a > problem in authentication. > My current approach is with .htaccess with apache password(Basic > Authentication), simple and straight. > But I want to validate users in django,

REST authentication with apache

2007-07-23 Thread [EMAIL PROTECTED]
Hi, I'm trying to implement a REST service with django and I have a problem in authentication. My current approach is with .htaccess with apache password(Basic Authentication), simple and straight. But I want to validate users in django, with roles etc. I've tryed: AuthType basic

List with pagination, sorting and simple search interface

2007-07-23 Thread Pigletto
Hi! I need to implement list (grid) with pagination, sorting and simple search interface. I've looked at djangosnippets, generic list etc, but so far I didn't find something that has all of these things. So my question is if there are any ready components that allows to simply create such form (I

URL reverse

2007-07-23 Thread Chris Hoeppner
Hi there! I just don't get the url template tag to work. After reading the docs 5 times and trying every possible name-param combination, I'm about to start hardcoding all my urls. A line of my url.py looks like this: url(r'^categoria/(?P[-\w]+)/(?P[0-9]+)/$', 'view_entry', name="anuncios-entry-d

upload progress bar (ticket #4165)

2007-07-23 Thread Dirk van Oosterbosch, IR labs
Hi, About a progress bar for uploading files. I think the standard upload progress bar should be javascript not Flash. Something like http://ajaxian.com/archives/dojo-file-upload-progress- bar-widget How to do this with Django? I applied the patches and followed all the steps mentioned in ticket

Re: How to display all my post data

2007-07-23 Thread Thejaswi Puthraya
> What method do I use to see all the POST elements? request.POST is a dictionaryuse any method that is convenient to you. For example: request.POST.items() request.POST.has_key() etc But remember that request.POST usually contains uncleaned dataso might have to clean them before you use

Template debugging

2007-07-23 Thread Chris Hoeppner
Hi there! I was wondering if this is even possible (perhaps, some middleware?). I'd like to have a closer look into the context that is getting rendered in each view, including the data I get from the RequestContext. So far, I've been triggering assertion errors to view the django debug page. Ma

Re: How to communicate with Authorize.net?

2007-07-23 Thread Chris Hoeppner
Chris Moffitt escribió: > The url for satchmo is - http://www.satchmoproject.com > > The module that sends data to authorize.net is here- > http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/payment/modules/authorizenet/processor.py > > -Chris > > > > --~--

Re: Satchmo

2007-07-23 Thread Chris Hoeppner
James Bennett escribió: > On 7/22/07, kbochert <[EMAIL PROTECTED]> wrote: >> If I do install it, will I be able to use it? The Satchmo site has >> zips for 'those who have trouble using svn'. If you professionals have >> trouble, what chance have I? > > The biggest problem with SVN that I've seen

Re: File upload using Flash

2007-07-23 Thread [EMAIL PROTECTED]
On Jul 23, 8:25 am, Michal <[EMAIL PROTECTED]> wrote: > http://digitarald.de/playground/uplooad.html Thanks guys, dunno why i had the impression it was Django specific ;-) Lorenzo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Blog engine

2007-07-23 Thread David Reynolds
On 20 Jul 2007, at 8:49 pm, James Bennett wrote: On 7/20/07, Rob Hudson <[EMAIL PROTECTED]> wrote: #2 is particularly interesting to me because I've written a simple blog in Django and there are some non-obvious things that having a reference implementation to look at would be nice. Things l

How to do not escape a unicode string in Django

2007-07-23 Thread David Larlet
Hi, I've just switched from 0.96 to the trunk and follow the quick unicode check list. Here is my problem: I've previously made some tests which verify the render of some __repr__ of my objects and those ones are on multiple lines. E.g.: >>> myobject Now that I've got unicode, it auto-e

Re: File upload using Flash

2007-07-23 Thread Nic James Ferrier
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Hi all, > > some time ago, probably on this list, someone posted a link to a > component in Flash with which you could do file upload from Django. > The component featured a progress bar. > > Does anybody have a link to it? Not to hand... but it'

Re: reverse pagination

2007-07-23 Thread Nis Jørgensen
Amit Upadhyay skrev: > Hi, > > You are all aware of object pagination, search results, your photo on > flickr, stories on reddit, all have a next page/previous page paradigm. > Django makes it trivially easy to create such pages by providing object_list > generic view. There are some problems with