making this app re-usable

2010-05-26 Thread Jeffrey Taggarty
Hey Guys, I am trying to build this app so we ca re-use it throughout all of the projects we build. The re-usable app has it's own model and a FK to a specific model that it is related to, this is required. Right now I have a setting in my project settings.py that uses the re-usable that has this

An odd issue with loading /media/ files

2010-03-19 Thread Jeffrey Taggarty
Hi guys, I have a bit of an issue I can't seem to work out. Maybe someone can shed some light on the issue. I have a app that generates an xml, inside the xml nodes are paths to flash assets i.e: /media/assets/leader1.swf. A flash file loads the xml file, reads it and loads in the flash assets d

Modeling question

2010-03-02 Thread Jeffrey Taggarty
Hi Guys, I have a website (go figure!) where there is a main navigation, there is going to need to be sub pages for each main nav item, but this sub page can belong to more than 1 main nav, typically in the past I used a self referencing FK to handle this, but this time it's a m2m, any tips on how

Trying to get an image in a RadioSelect

2010-02-04 Thread Jeffrey Taggarty
Hi, I am trying to get an image as a label in a RadioSelect... I have been trying to get a grasp on using the RadioFieldRenderer() but I am having no luck. I currently have this in my widgets.py from django.forms import widgets from django.utils.encoding import force_unicode from django.utils.sa

Should a decorator be used here or should I do something else.

2010-01-20 Thread Jeffrey Taggarty
Hi Guys, I have a bit of a dilemma in terms of design of a small web application... I have this requirement where content is being served by age group. On first load the user selects their age group and I store that in the cookie. I read that cookie and query content for the pages based on that ag

Re: A Friendship relationship question.

2009-12-02 Thread Jeffrey Taggarty
Hi guys, thanks for responding. I didn't want to have to create 2 entries in the database for a friendship because of the obvious integrity issues such as friendship deleting and friendship relationships to files etc seems like a lot of unnecessary duplication. I didn't see that symmetrical m2m

A Friendship relationship question.

2009-12-02 Thread Jeffrey Taggarty
Hi, I am having difficulties with listing this type of data. Scenario is as follows: 1) user1 add's a friend called user2 2) user2 confirms that user1 is his friend what should happen is user2 and user1 see's each others name in their friends list. What's happening now is I am able to add user2 t

Django cookies

2009-10-25 Thread Jeffrey Taggarty
Hello, I have a web site which shows different content based on a location the visitor chooses. e.g: User enters in 55812 as the zip. I know what city and area lat/long. that is and give them their content pertinent to that area. My question is how can I store this in a cookie so that when they r