Form wizard and dynamic choices

2011-11-26 Thread brian mckinney
I've been trying to implement a relatively simple django app, in which I need to have a multistep form and a dynamically generated choice field. I'm using Django 1.3 and the Form Wizard. In step one of the form, I ask for a URL from the user, which I'd like to use to dynamically generate the list

Re: Can anyone tell me how the hell to get url tags to work?

2008-09-16 Thread brian mckinney
e given month (Only available if make_object_list argument is True) """ return date_based.archive_year(request, year = year, queryset = Post.objects.published(), date_field = 'publish', make_object_list = True) ###Template By month {% for month in date_list

Re: Can anyone tell me how the hell to get url tags to work?

2008-09-16 Thread brian mckinney
:06 -0700, brian mckinney wrote: > > One more question. > > > How does reverse decide which directories to look in for the named url > > match? > > > I've got my main app (myapp) in one location and basic apps like a > > blog installed on elsewhere on my pyth

Re: Can anyone tell me how the hell to get url tags to work?

2008-09-16 Thread brian mckinney
ad of blog.blog_index like it should be. On Sep 16, 8:23 pm, brian mckinney <[EMAIL PROTECTED]> wrote: > Thanks for checking the code Malcolm, you were right on, I was > overlooking a line of code in my templates. Thanks again. > > On Sep 16, 7:27 pm, Malcolm Tredinnick <

Re: Can anyone tell me how the hell to get url tags to work?

2008-09-16 Thread brian mckinney
Thanks for checking the code Malcolm, you were right on, I was overlooking a line of code in my templates. Thanks again. On Sep 16, 7:27 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-09-16 at 14:33 -0700, brian mckinney wrote: > > I'm having a very simila

Re: Can anyone tell me how the hell to get url tags to work?

2008-09-16 Thread brian mckinney
I'm having a very similar problem. This code worked fine pre-Django 1.0, now I am really struggling to find the problem. url.py : url(r'^(?P\d{4})/$', blog_views.post_archive_year, name = "blog_archive_year"), views.py def post_archive_year(request, year): return date_based.archive_year(

Ma.gnolia API Django and time zone

2008-05-08 Thread brian mckinney
Does anyone happen to know the proper way to interact with an API that won't convert trailing UTC time zone specifications? I'm trying to sync up a Django app with the Ma.gnolia's api, and Ma.gnolia will not convert UTC adjusted times. The two hour differential will not allow me to sync up my loc

Re: Updating Django .95 -> .96 on Mac

2007-04-10 Thread brian mckinney
Thanks Jay, this worked perfectly. Can anyone shed some light on the purpose of the easy-install.pth file? Is this just adding django to the system path? On Apr 10, 8:56 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > Which directory does the .egg file and the 'django' directory live? > /Librar

Updating Django .95 -> .96 on Mac

2007-04-09 Thread brian mckinney
I am attempting to upgrade from .95 to .96 using the setup script both times and was not able to get my mac to look at the new version, since the old path is through 'Django-0.95-py2.4.egg', and the new path is simply located under 'django'. Could someone shed a bit of light on this? --~--~