Change the Queryset order to add "Other" at the end

2011-03-31 Thread Álex González
Hi! I don't know if this is the best way to do it (change the QuerySet), but I have a model order by name, and when I use it as a foreign key () I want to write "Other" as the last to choose. Regards, Álex Gonzálkez -- @agonzalezro Please, don't send me files

Re: pip django-registration fork install

2011-02-08 Thread Álex González
I've solved it creating a new virtualenv, if anybody knows the error, please tell me! On Wed, Feb 9, 2011 at 02:46, Álex González <agonzale...@gmail.com> wrote: > Hi guys! I receive a strange errror when I try to get my pip pacakges: > > (lukkom_env)alex@big:~/lukkom_env/lukkom$

pip django-registration fork install

2011-02-08 Thread Álex González
Hi guys! I receive a strange errror when I try to get my pip pacakges: (lukkom_env)alex@big:~/lukkom_env/lukkom$ pip freeze|grep registration -e hg+Not trusting file /home/alex/lukkom_env/lib/src/django-registration/.hg/hgrc from untrusted user root, group root Not trusting file

Re: Group models by personal order and no by app in admin

2010-12-27 Thread Álex González
Thanks Mikail! I'm going to test it :) On Fri, Dec 24, 2010 at 19:06, Mikhail Korobov <kmik...@googlemail.com>wrote: > Hi Alex, > > django-admin-tools should solve all your problems with admin index > page. > > https://bitbucket.org/izi/django-admin-tools/ > > O

Group models by personal order and no by app in admin

2010-12-24 Thread Álex González
Hi! I have a lot of models in same app at my django app, can I group then another way that app order? I see: Auth Users Sites Sites My app Model 1 Model 2 Model 3 ... Model N And like for example, Model 1&2 under "My app (Users)" tab. and 3 to N in "My app (configuration)"

Re: virtualenv and deployment

2010-12-21 Thread Álex González
If you need a different Python (2.6 in this case), you'll need a differ >> mod_python. I won't know how it gets installed and configured in your >> hosting environment. Sorry. >> >> - Craig - >> >> On Thu, Dec 16, 2010 at 03:51, Álex González <agonz..

Re: virtualenv and deployment

2010-12-16 Thread Álex González
> > > In this case, mp_python represents /data/web/foo/apache/mp_python.py, which > is my script to deal with configuring the VirtualEnv environment and then > starting the Django mod_python handler. It's basically an amalgam of the > VirtualEnv activate_this.py script, and the mod_pyt

Re: virtualenv and deployment

2010-12-15 Thread Álex González
<ovnicr...@gmail.com> wrote: > > > On Wed, Dec 15, 2010 at 11:48 AM, Álex González <agonzale...@gmail.com>wrote: > >> Hi! >> >> I'm using virtualenv with --no-site-packages and now I like to do a >> deployment of my app... I'm using a sharing

virtualenv and deployment

2010-12-15 Thread Álex González
Hi! I'm using virtualenv with --no-site-packages and now I like to do a deployment of my app... I'm using a sharing hosting, can I uypload all my enviroment dir (with the packages installed with pip) to the server and use them? What's the better way to the deployment? mod_python, mod_wsgi,

Re: Beta page and "under construction"

2010-12-10 Thread Álex González
: pass else: return HttpResponseRedirect('http://example.com/index.html') And it works perfectly! :) On Fri, Dec 10, 2010 at 00:04, Christophe Pettus <x...@thebuild.com> wrote: > > On Dec 9, 2010, at 2:56 PM, Álex González wrote: > > I like to u

Beta page and "under construction"

2010-12-09 Thread Álex González
Hi! I like to upload my beta page to a server, but I only want to show this beta to certains IPs. If get the IP of the cliente could be possible in the urls.py file this will be easy, but I can't do that. I read about request.META, really I'm using it on certain views, but in urls.py I can't do