how to make a small change for apps installed under /site-packages dir

2012-02-05 Thread Tom Lesters
hi all, I installed an app called idios into python2.6/site-packages/idios dir, now I need to make a small change, adding the following line(just for purpose of explaining this question) @login_required to one of the functions defined in idios/views.py The way I can think of is I can copy all th

Re: how to make a small change for apps installed under /site-packages dir

2012-02-08 Thread Tom Lesters
> Generally speaking, using virtualenv (no-site-packages) + pip (with a > requirement file you keep in your project) is a GoodPractice(tm) when > it comes to dependencies. I'm actually using virtuallenv + pip now, thanks for advice anyways! > Daniel already provided the simplest solution for this

django url rewrite without redirect

2013-02-02 Thread Tom Lesters
I'm using django and have hundreds of subdomain url abc.domain.com want to rewrite to domain.com/site/abc/ Is it possible via url-rewriting that the user won't see domain.com/site/abc/ in his browser, but sees abc.domain.com I think this can be done with apache configuration. But my questio