Passing in dynamic id's to a template tag?

2008-11-28 Thread truebosko
Mulling over the docs I can't find an answer to this, say I want to do something like so: {% get_shipping 'ontario' product.id %} Parsing ontario is simple enough, but how do I parse product.id to actually come in as a number? No matter what I've tried it just comes in as 'product.id' and I can'

Re: Tabular data, limited columns in a template.

2008-07-21 Thread truebosko
Thanks guys, both viable solutions but took up Daniel's :) Thanks again! On Jul 21, 3:46 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Jul 21, 8:28 pm, truebosko <[EMAIL PROTECTED]> wrote: > > > > {% if is_new_row forloop.counter %} > > ... > >

Re: how to display custom messages in admin site

2008-08-29 Thread truebosko
I'm not sure on that specific one, but you can over-ride admin templates piece by piece See: http://www.djangoproject.com/documentation/tutorial02/#customize-the-admin-look-and-feel Basically lets you over-ride templates. Maybe that message is simply part of a template, not sure .. but hopeful

Cache and upload handlers .. fun times!

2008-10-19 Thread truebosko
Hi there, So I spent the last few hours trying to get a ProgressBar Upload handler working What it does: User uploads a file, when they hit the submit button, javascript is called and begins polling the server (a django view) for progress. Progress is stored in a cache_key, very simple idea. Th

Custom upload handlers: Potential multi threading, session, etc issues. Take a look!

2008-10-20 Thread truebosko
Hi there, I wrote a previous post but I have discovered a bit more since. Here's my situation: What I'm trying to do: Write a custom upload handler that allows me to intercept it with Javascript calls and return a simple progress upload bar to the user. What is happening: The custom upload hand

Re: Custom upload handlers: Potential multi threading, session, etc issues. Take a look!

2008-10-20 Thread truebosko
As I said in my post, I put it up on a non-dev server (lighttpd/fcgi setup with mediatemple) because I know dev server can't handle it. On Oct 20, 11:56 am, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > truebosko wrote: > > What I found though, is that the view that is

Re: How to return this kind of JSON?

2008-03-24 Thread truebosko
callback fn: > > var jsonObject = eval('(' + jsonString + ')'); > var html = jsonObject.html; //now you can inject this into a > container > var listLength = jsonObject.tweet_count; //you can use the extra meta- > data too > > Hope that helps, > Udi >

Filling a form with database model content

2008-03-24 Thread truebosko
Hi there, I've been working on a rather large Django project and I've hit one roadblock. I've been using django-registration to handle my registration of users, but I also wanted to have more profile fields, so I extended the user model. Here is a paste of my forms.py for my BigfootProfile (This

Log a user in after registration?

2008-03-26 Thread truebosko
I want to log a user in after they have registered on my site. Right now, I am using django-registration to handle user registration but it is modified to not have activation. I know it doesn't really matter what I am using as all the login is handled by django.contrib.auth I've looked in the fi

Re: Log a user in after registration?

2008-03-26 Thread truebosko
n Mar 26, 10:52 pm, truebosko <[EMAIL PROTECTED]> wrote: > > > I want to log a user in after they have registered on my site. > > > Right now, I am using django-registration to handle user registration > > but it is modified to not have activation. I know it doesn'

Use django auth db for phpbb?

2008-04-06 Thread truebosko
I am in an odd situation where I need to use a django auth database for a phpbb forum for a friend of mine. He wants the phpbb forums but he is not happy with users having to register for both the phpbb and django side (Which is the main site) My options are: - Whenever a person makes an account

Large file upload to Amazon S3?

2008-04-27 Thread truebosko
Hi there, Recently been toying with the idea of using Amazon S3 to host a bunch of media for a community site I run For small files, Amazon S3 is slick and awesome. But I also want to have the ability to upload larger files. With the standard Amazon S3 library this is just not feasible (It dies

Filtering a query based on potential arguments

2008-06-11 Thread truebosko
I have a card store and I would like to add 3 options a user can search by. Year, Brand, and Card Title Normally this would be easy but my dilemna here is: - All of these are optional, and if they do not search for a certain one, the query should ignore that filter entirely and display in full (S

Displaying sets of data in-line together

2008-06-25 Thread truebosko
This may be kind of hard to explain but what I am trying to accomplish in Django is this: I have 2 possible sets of data (It can also be one, depending on what's easiest) #1 is Reviews where FOO = X #2 is Reviews where FOO = Y Each Review contains several category type fileds. Summary, Value, F