> 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
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
> 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
>
> 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
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
> 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
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:
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
> 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
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
10 matches
Mail list logo