Re: Python SSH Library for Deploy Script

2007-10-27 Thread Michael Cuddy
> I'm writing a deploy script, but right now it runs ssh commands directly > from os.system: Paramiko. http://www.lag.net/paramiko/ -- Mike Cuddy ([EMAIL PROTECTED]), Programmer, Baritone, Daddy, Human. Fen's Ende Software, Redwood City, CA, USA, Earth, Sol System, Milky Way. "The problem

Left Joins / Inheritance / Plugins ...whatever...

2007-03-29 Thread Michael Cuddy
Hard to come up with an appropriate subject for this question.. Here's the issue: (The site is a small-theater company management app) I have a model 'Patrons' which encapsulates all of the people that I want to track in my site. A Patron is anyone who's done anything with-or-for the theater

Re: Django and Routing SUBDOMAIN STYLE URL

2007-03-25 Thread Michael Cuddy
> I have tried: > > http://api.localhost:8000/ > http://api.127.0.0.1:8000/ > > This is not working on my windows machine (using development server, > not apache+mod_python). You have two choices. If you have access to /etc/hosts on the server, you can define somehost.localhost and

Re: Django and Routing SUBDOMAIN STYLE URL

2007-03-25 Thread Michael Cuddy
> > How do you test the subdomin url style in Django development server? Since I control my own server and DNS, All of the subdomain URLs point to the same IP. I just have the dev server on my.ip.com:8000 (which means that myother.ip.com and yetanother.ip.com are all CNAMEs for my.ip.com, so

Re: Different subdomain for each application (again)

2007-03-23 Thread Michael Cuddy
I have exactly the same issue. Here's how I dealt with it ... First, the threadlocals module, this is used to keep track of the site the user is browsing, once it's determined ... mware/threadlocals.py try: from threading import local except ImportError: from

Re: django.template.TemplateSyntaxError: Invalid block tag: 'extends'

2007-03-16 Thread Michael Cuddy
> If i don't import the loader i get the error: Amazing you should post this ... I was just about to do the same! (I just ran across this error tonight, and was typing up a message to the list) -- Mike Cuddy ([EMAIL PROTECTED]), Programmer, Baritone, Daddy, Human. Fen's Ende Software, Redwood

Importing without 'site.' in django apps.

2007-03-15 Thread Michael Cuddy
When importing modules, I think that it's ugly to have to use the 'site' name on modules ... f'rinstance: from mysite.myapp.views import MyView, MyOtherView from mysite.myapp.models import MyModel, MyOtherModel >From a modularity standpoint, it would be much nicer to just say:

Admin interface and custom managers

2007-03-05 Thread Michael Cuddy
I've defined a custom manager for some of my models (similar to, but not exactly like filtering by settings.SITE_ID). Unfortunately, the Model's manager doesn't seem to get used in the admin interface? from myapp.company.managers import CurrentCompanyManager class

Re: hosting single static files at root? (modpy + apache)

2007-03-01 Thread Michael Cuddy
> how can I host a few single files at root level, like for example a > crossdomain.xml file. Using Apache2 + mod_python. > > ( http://www.moock.org/asdg/technotes/crossDomainPolicyFiles/ ) > > thx for any hints, Here's what I'm doing. My (django pertinent part of) apache configuration looks

selecting site from hostname in URL

2007-02-28 Thread Michael Cuddy
I'm working on a project where I'll have many different 'users', and each should have it's own URL as a subdomain of my main domain. i.e.: http://joe.example.com http://fred.example.com Each of these will resolve to the same IP address, and ideally, the same django app. I'd like to use