Re: Looking for IDE + FTP

2011-02-08 Thread Austin Govella
I use Textmate ($55?) for editing. Great color coding for html, ruby, php, javascript, css, and python. :-) I use Terminal (free) for Subversion and Git (version control). I'd highly recommend Git. It is easier to use and les of a hassle than Subversion. I use Cyberduck (free) for FTP and Mac's

Iterating over a queryset to run another query?

2010-10-13 Thread Austin Govella
I have a category page that lists all of its subcategories on it. For each subcategory, I would like to query for one product in that subcategory. In PHP, I think I did this in the page, outputting HTML as I went. But I can't figure out how to do this in Django. My programming brain is just

Re: how to sort in django template

2008-06-18 Thread Austin Govella
On Jun 18, 2:53 am, laspal <[EMAIL PROTECTED]> wrote: > I have a list of employee and i want to sort it. > > Employee( this is my header) > under which i have list of employee. > > So now my question is on clicking employee header I want to change the > list. > Like it happens for user in

Re: Quick way to find list objects close to the current date?

2008-06-18 Thread Austin Govella
On Jun 18, 9:32 pm, mw <[EMAIL PROTECTED]> wrote: > I was thinking about ways to list some objects that are close to the > current date. I could do this using datetime and just subtract the > two dates, but this seems like something that has probably been done > before. It seems like there

Trouble querying across relationships

2008-06-18 Thread Austin Govella
don't want to see it. Seems easy, but I'm missing something. Pointers to the proper docs appreciated. Thanks, -- Austin Govella --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Trouble installing PIL

2008-05-23 Thread Austin Govella
On May 23, 4:35 am, Scott SA <[EMAIL PROTECTED]> wrote: > It seems, the problem _can_ be in how PIL is installed into the site-packages > directory. > The alternative is that your environment (i.e. sys.path) does not contain the > correct path > to the correct python site-packages directory. I

Re: Trouble installing PIL

2008-05-23 Thread Austin Govella
Does anyone have any insights on how to work around the bug noted in #7019? I need to add/edit a path somewhere, yes? But where? On May 20, 12:42 am, Austin Govella <[EMAIL PROTECTED]> wrote: > It was a PYTHONPATH problem. I fixed it using this tutorial: > *http://emmby.blogspot

Re: Trouble installing PIL

2008-05-19 Thread Austin Govella
th should I add/edit where? (And as an aside, I read somewhere that the proper way to import Image and ImageFile is to say "from PIL import ImageFile". This works, but "import ImageFile" doesn't. Is Django importing incorrectly?) Man

Re: Trouble installing PIL

2008-05-19 Thread Austin Govella
Still trying to get MacPorts to work... "port installed" says everything (plus more!) is installed: expat @2.0.1_0 (active) freetype @2.3.5_1 (active) gettext @0.17_3 (active) jpeg @6b_2 (active) libiconv @1.12_0+darwin_8 (active) ncurses @5.6_0 (active) ncursesw @5.6_1 (active)

Trouble installing PIL

2008-05-18 Thread Austin Govella
I used MacPorts to install jpeg (libjpeg), freetype, zlib, and then Python Imaging Library. When I validate, I get the "no PIL" error. Error: One or more models did not validate: imagetest.filetest: "image": To use ImageFields, you need to install the Python Imaging Library. Get it at

How/where do you add middleware (was: empty PATH_INFO with LiteSpeed / FastCGI)

2008-02-17 Thread Austin Govella
torial somewhere that explains where you save custom middleware files? -- Austin Govella --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

Re: Can't install MySQLdb... any links?

2007-09-18 Thread Austin Govella
nd MacPorts. Ubernostrum advised MacPorts for mysqldb. But I think I installed MySQL using the packages from MySQL.org. -- Austin Govella Thinking & Making: http://thinkingandmaking.com Thinking Links: http://thinkingandmaking.com/links --~--~-~--~~~---~--~---

Re: Can't install MySQLdb... any links?

2007-09-17 Thread Austin Govella
On Sep 17, 9:29 pm, "Austin Govella" <[EMAIL PROTECTED]> wrote: > I tried it again and I get this error: > error: could not create 'build/bdist.macosx-10.3-fat/egg': Permission denied sudo python setup.py install did something, but when I test it (import MySQLdb), I still g

Can't install MySQLdb... any links?

2007-09-17 Thread Austin Govella
? (P.S. Yes, the OS X reinstall totally wiped python, mysql, mysqldb, django, and any other libraries I installed.) Thanks, -- Austin Govella Thinking & Making: http://thinkingandmaking.com Thinking Links: http://thinkingandmaking.com/links --~--~-~--~~~---~--~~

Re: Reinstalled OS X... what do I need to reinstall?

2007-09-14 Thread Austin Govella
I've done more poking about. Django is totally gone and MySQL isn't running. (May be gone, too.) Is there a way to install django so it doesn't disappear when you reinstall the os? -- Austin Govella Thinking & Making: http://thinkingandmaking.com Thinking Links: http://thinkingandmaking

Reinstalled OS X... what do I need to reinstall?

2007-09-14 Thread Austin Govella
(If I wanted to reinstall django anyway, should I just install over the current installation?) -- Austin Govella Thinking & Making: http://thinkingandmaking.com Thinking Links: http://thinkingandmaking.com/links --~--~-~--~~~---~--~~ You received this me

Re: WordPress to Django Migration App

2007-09-02 Thread Austin Govella
eploying Django sites is a one or two click thing (or an upload the files thing), more analagous to how easy it is to deploy stuff in php, there will continue to be a HUGE gulf between the people that could and would use Django and those that actually do. I love Django, but deployment is cumbersome

What's this mean? 'module' object has no attribute 'TagField'

2007-08-28 Thread Austin Govella
Trying to install django-tagging. I put a copy of the tagging directory in my project folder: MyProject/ App1/ App2/ Tagging/ I ran tagging's setup.py from a separate directory outside of my project folder. Syncdb created tag and tagged_item tables. I added TagField to a model: tag

What's this mean? 'module' object has no attribute 'TagField'

2007-08-28 Thread Austin Govella
Trying to install django-tagging. I put a copy of the tagging directory in my project folder: MyProject/ App1/ App2/ Tagging/ I ran tagging's setup.py from a separate directory outside of my project folder. Syncdb created tag and tagged_item tables. I added TagField to a model: tag

Re: Manytomany relation with additional data

2007-08-20 Thread Austin Govella
Sounds like you need to add a Recipes model (table) with a M2M field for the ingredient and a separate column for the percentage. Then your Product table actually has the ability to have more than once recipe for each product. -- Austin Govella Thinking & Making: IA, UX, and IxD

Django app for locations? (countries, provinces, cities, venues...)

2007-08-19 Thread Austin Govella
Is there an existing Django app for managing locations? Specificall, countries, states/provinces, cities, and specific locations with addresses. (I was just adding such an app to my project, but thought I might be duplicating someone better effort...) Thanks, -- Austin Govella Thinking

User templates: store in the db or as files on the server?

2007-08-19 Thread Austin Govella
changes are immediately visible. (MovableType will store templates in the database, but it will also link the template "to a file" where it uses a file on the server for the template instead of pulling it out of the database.) Any thoughts or advice? Thanks, -- Austin Govella Thinking &a

newforms for idiots and designers?

2007-07-20 Thread Austin Govella
, but I can't get it to work here.) -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkingandmaking.com [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: How to query in multiple tables?

2007-06-30 Thread Austin Govella
pert-1 might be height and 2 might be weight. For another product, property-1 might be size and 2 might be a list of countries where you can't ship the part. A separate table would indicate what column title (height, weight, etc.) goes with which property for which product. -- Austin Govella Think

Re: Announcing Flutterbox

2007-06-04 Thread Austin Govella
f he asked for my ssn and mom's maiden named... or offered to consolidate my Bank of America accont news... But it's just Facebook and del.icio.us... wtf's the harm in that?!?! -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkingandma

Re: Music E-zine development in Django

2007-05-24 Thread Austin Govella
On Apr 13, 10:46 am, "temnoregg" <[EMAIL PROTECTED]> wrote: > i sent you private mail that I am interested, but without response... Sorry. Your last message disappeared somewhere in my inbox. I've refactored the code to separate the news from features (like interviews or longer articles), and I

Re: Music E-zine development in Django

2007-04-05 Thread Austin Govella
On 4/5/07, Austin Govella <[EMAIL PROTECTED]> wrote: > I have a code base for a music zine that you may be interested in using. Doh! That was supposed to be private. Sorry for the spam... :-( -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkingandmaking.com [EM

Re: Music E-zine development in Django

2007-04-05 Thread Austin Govella
ll the pieces work, but the template system isn't in place yet. If you're interested in using this code base, please let me know and I will finish the templates and give you access to the svn repository. -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkingandmakin

Error with a model? (I think)

2007-03-06 Thread Austin Govella
What does this mean? "unbound method contribute_to_class() must be called with TextField instance as first argument (got ModelBase instance instead)" And how do I know where to look to find the problem? -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkin

Re: Debugging Django: print statements?

2007-01-22 Thread Austin Govella
On 1/23/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > yes, but then deadlines dont always allow for that Then you need a debugger *and* new deadlines. -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkingandmaking.com [EM

Tag "joins"?

2007-01-21 Thread Austin Govella
to tutorials or documentation would be great. (Don't mind reading the instructions.) Thanks, -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkingandmaking.com [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you a

Is there an easy to "humanize" a list?

2006-12-20 Thread Austin Govella
I have a list from a queryset: * foo * bar * twinky Is there an easy way to output that as: "foo, bar, and twinky" (There are handy functions for this in PHP, ColdFusion, and Rails, but my Google-fu fails for Python or Django.) Thanks, -- Austin Govella Thinking & Making: I

Re: Problems Doing Slightly Complex Logic

2006-12-17 Thread Austin Govella
), and the M2M field would let users as many or as few properties as they wanted to. -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkingandmaking.com [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Having trouble filtering a queryset

2006-12-17 Thread Austin Govella
this type of filtering? Thanks, -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkingandmaking.com [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Adding a foreign key to list_display makes Admin hang

2006-12-14 Thread Austin Govella
and reinstalling the models, but I get the same (nothing) happens. Any pointers on where to look to find the problem? Thanks, -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkingandmaking.com [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You rece

Tips/advice on model and application design?

2006-12-14 Thread Austin Govella
?) Thanks, -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkingandmaking.com [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Re: How do I make a self-referential Many to Many relationship optional?

2006-12-13 Thread Austin Govella
And for the record, blank=True does make it not required. :-) Thanks guys! -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkingandmaking.com [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscr