Re: virtualenv, PIP, fabric and patches to external projects

2009-11-30 Thread Wes Winham
We solve this problem by keeping forks of the external projects on github, bitbucket, etc. Since PIP works so nicely with those tools, it's pretty easy to do. You'll also find that beyond the initial work of creating your own fork (which is actually really really easy on both github and

Re: Value proposition of Rails

2009-03-19 Thread Wes Winham
It's also important to note the architectural differences between Java and your favorite LAMP flavor. LAMP is generally a "shared nothing" situation where scaling out is a matter of just adding more machines with some transparent load balancing (on the non-database side). Java scaling tends

Re: Your IDE of choice

2009-01-12 Thread Wes Winham
I still really like WingIDE (in VIM mode). If you think it's worth throwing some cash down, I don't think it can be beat. -Wes On Jan 6, 3:32 pm, Ovnicraft wrote: > 2009/1/6 Berco Beute > > > > > On Jan 6, 2:35 pm, Pigletto wrote: >

Re: Media and putting javascript last

2008-11-20 Thread Wes Winham
> Any reason this wouldn't work for you as well? The problem with that is that when I do {{ form.media.js }} (or whatever media output stuff I need to do) at the bottom, I'm going to have included jquery twice since jquery is a requirement in the Media class of any widgets/forms that need it.

Media and putting javascript last

2008-11-18 Thread Wes Winham
== Quick summary == I want to find a consistent way of putting media.css at the top and media.js at the bottom while still allowing jquery stuff in the document body. == Reason I want the JS at the the bottom == I'm a big fan of the yslow (http://developer.yahoo.com/yslow/) addon and Yahoo's

Re: Django along with PHP - avoiding Apache crashes

2008-10-28 Thread Wes Winham
I'm currently in production with Apache2, mod_php, mod_python, Django 1.0, MySQL 5.x, and PHP5 using everything (except django) out of the Ubuntu 8.04 repository with no troubles, if that helps at all. On Oct 28, 8:58 am, Giles Thomas <[EMAIL PROTECTED]> wrote: > Graham, > > Thank you again for

Re: Django Hosting Survey

2008-10-09 Thread Wes Winham
If you're looking for something with some power off the bat (which it doesn't sound like you are), Amazon's EC2 (http://aws.amazon.com/ec2/) is amazing. If you start there, you can stay there right up to the point that you're bigger than amazon.com :) It has the same disadvantages of slicehost or

Re: Boosting your productivity when debugging Django apps

2008-08-25 Thread Wes Winham
I use Wing IDE (not free, wingide.com). It contains a full debugger that worked for me with Django with minimal fuss. I can step through the whole thing by debugging the manage.py runserver --noreload The thing I find most valuable about their debugger is that it gives you a full python shell

Django learning management application

2008-05-14 Thread Wes Winham
Does anyone know of any learning management application written in Django? My googlefu is too weak and I wasn't able to find anything on django pluggables. I have a few weeks before I have to make the build versus integrate decision, but a simple quizzing application seems like something that

Re: Many to Many Inline Editing

2008-05-13 Thread Wes Winham
So, to make sure I understand the question, you're looking for a solution for editing m2m inline for a ModelForm? Or are you talking about django.views.generic.create_update? I know how to do a "custom" inline edit by overriding a field in the ModelForm, adding a ModelForm from the view for the

Re: Django Performance using PyISAPIe on IIS Rocks

2008-05-13 Thread Wes Winham
It's also worth noting that you sometimes lose stability using eAccelerator. I've experienced a notable number of apache segfaults trying to squeeze out some performance, where as .pyc comes out of the box with no instability. -Wes On May 12, 10:30 am, rcs_comp <[EMAIL PROTECTED]> wrote: > Mat,

Re: newforms and views.generic.create_update.create_object

2008-05-12 Thread Wes Winham
I've been using Brian Rosner's patch from that ticket, and it's been working great for me. I haven't ran in to any bugs so far and it's cut my view code down by several lines each view in some places and completely eliminated view code in many others. Gotta love newforms and modelforms :) I

Re: Announce: Djikiki - Django wiki application

2008-05-07 Thread Wes Winham
I haven't looked in to the project much myself, but Sphene Community Tools seems to have a django-based wiki (http://sct.sphene.net/wiki/ show/Wiki/). On May 7, 3:20 am, shabda <[EMAIL PROTECTED]> wrote: > Wanted to announce Djikiki - A Django based wiki to the community. > Looks like there is

Re: Distributed databases

2008-04-17 Thread Wes Winham
must use different tables on different databases instead of just using master/slave replication, then that won't fit for you. I imagine looking at the code could be useful though. -Wes On Apr 17, 9:49 am, Wes Winham <[EMAIL PROTECTED]> wrote: > One of the blogs I follow posted up a

Re: Distributed databases

2008-04-17 Thread Wes Winham
One of the blogs I follow posted up an example of an ORM tweak built for master/slave mysql setups. I'm having trouble finding it, but it's definitely possible to modify the ORM to make decisions about which database to use automatically so that you don't have to worry about it in your views or

Re: Sharing session data between PHP and Django

2008-02-12 Thread Wes Winham
return s.session_encode(session_dict) > > > Remember to set your SESSION_COOKIE_NAME to the same name that your > > PHP setup uses. This allows Django to find the session cookie on the > > client machine. > > > You may not need to override the file_prefix as I have, b

Sharing session data between PHP and Django

2008-02-12 Thread Wes Winham
Hello, I'm in the process of switching my new development over to Django (goodbye PHP + my horribly mediocre custom framework). The only real tough problem to solve in getting the two sides of the application to play nice with eachother (for me) is session management. When I log in a user

Re: Basic Form Design Question: Pulling as much as possible from models

2008-01-08 Thread Wes Winham
Oops. So it is. Thanks for the clarification. On Jan 7, 1:10 pm, Simon Willison <[EMAIL PROTECTED]> wrote: > On Jan 7, 5:07 pm, Wes Winham <[EMAIL PROTECTED]> wrote: > > >http://www.pointy-stick.com/blog/2008/01/06/django-tip-complex-forms/ > > > A shiny

Re: Basic Form Design Question: Pulling as much as possible from models

2008-01-07 Thread Wes Winham
http://www.pointy-stick.com/blog/2008/01/06/django-tip-complex-forms/ A shiny solution to the problem with code and the reasoning behind it. Simon Willison is awesome. On Jan 4, 1:03 pm, Wes Winham <[EMAIL PROTECTED]> wrote: > Thanks Malcom. That reassured me greatly. I did

Re: Basic Form Design Question: Pulling as much as possible from models

2008-01-04 Thread Wes Winham
wrote: > On Thu, 2008-01-03 at 09:51 -0800, Wes Winham wrote: > > Hello, > > > I've got a bit of a design issue I'm trying to wrap my head around in > > order to do things the Django Way. > > > I'm attempting to creating a simple form that allows a user to take a >

Basic Form Design Question: Pulling as much as possible from models

2008-01-03 Thread Wes Winham
Hello, I've got a bit of a design issue I'm trying to wrap my head around in order to do things the Django Way. I'm attempting to creating a simple form that allows a user to take a multiple choice "quiz." Quiz is a model and it has a many to many with Questions which has a m2m with