empty filter fields displaying entire queryset

2015-11-10 Thread Daniel Sears
I want to create a list view that searches a large dataset. But it seems that if I use a filterset with empty defaults, then my view displays my entire dataset. If tried creating a get_queryset method in my view that detects whether my filter fields are empty, but this doesn't seem to have any

Re: Dashboard packages?

2015-11-10 Thread Lachlan Musicman
I'll be honest - I was intimidated at first, but eventually, the shell. Dango-extension's shell_plus is quite good as well. cheers L. -- The most dangerous phrase in the language is, "We've always done it this way." - Grace Hopper On 11 November 2015 at 15:36, Allison Ahn

Re: Dashboard packages?

2015-11-10 Thread Allison Ahn
I am more expecting from developers' own experiences and inputs, but this will do for the time being. Thanks, luisza14 On Wednesday, November 11, 2015 at 2:24:27 PM UTC+11, luisza14 wrote: > > take a look https://www.djangopackages.com/search/?q=dashboard > > 2015-11-10 20:47 GMT-06:00 Allison

Re: Need example of how to use a select2 widget for a manytomanyfield in django.

2015-11-10 Thread Mark London
I just discovered django-select2-forms. It does exactly what I want, very simple to implement. On Tuesday, November 10, 2015 at 5:08:46 PM UTC-5, Mark London wrote: > > I want to use a select2 widget to a manytomanyfield in django. There are > several django-select2 modules, but the

Re: Dashboard packages?

2015-11-10 Thread Luis Zárate
take a look https://www.djangopackages.com/search/?q=dashboard 2015-11-10 20:47 GMT-06:00 Allison Ahn : > Hi all, > > I'd like to get an idea of what dashboard packages Django developers > prefer or are using instead of the out-of-box admin. > > Al. > > -- > You received

Dashboard packages?

2015-11-10 Thread Allison Ahn
Hi all, I'd like to get an idea of what dashboard packages Django developers prefer or are using instead of the out-of-box admin. Al. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Need example of how to use a select2 widget for a manytomanyfield in django.

2015-11-10 Thread Mark London
I want to use a select2 widget to a manytomanyfield in django. There are several django-select2 modules, but the documentation on all of them is confusing. Can someone point me to a simple example of how to use a select2 widget for a manytomanyfield? Thanks. - Mark -- You received this

Re: How do I server my app in apache in subdirectory?

2015-11-10 Thread frocco
I get a 404 error WSGIScriptAlias /mysite C:/MAMP/htdocs/django/vnatracking/vnatracking/wsgi.py > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: django-admin.py startproject mysite

2015-11-10 Thread Fred Stluka
Muhammad, Use the command ifconfig (Linux, Mac) or ipconfig (Windows) to see your local IP address. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com --

Re: How do I server my app in apache in subdirectory?

2015-11-10 Thread Fred Stluka
frocco, I've done exactly that. No problem. How does it fail? What it should be doing is redirecting any URLs like /mysite to the wsgi.py file so Django will handle them. What error or bad behavior do you see? --Fred

Re: simplify query

2015-11-10 Thread miguel angel lopez mendo
Jajaja para nada de hecho ya quedo lo deje asi para cualquiera que lo necesite: ---view-- def clientes(request): clientes = Clientes.objects.order_by('Nombre') clientes2 = Clientes.objects.order_by('Nombre').filter(medio='1') clientes3 =

Re: Django on CentOS

2015-11-10 Thread Robin Fourcade
Thanks James, I looked at many tutorials like: https://www.digitalocean.com/community/tutorials/how-to-install-the-django-web-framework-on-centos-7 https://devops.profitbricks.com/tutorials/deploy-django-with-virtualenv-on-centos-6/ Neither of these are for python 3.7 or higher. :/ i would

Re: simplify query

2015-11-10 Thread Luke M
Yo no se verdaderamente si estas 'trolling' ... pero bueno, si no, puedo decirte exactamente lo que pasa - usas `objects.appened` en lugar de `objects.append`, a ver: https://docs.python.org/3/tutorial/datastructures.html#more-on-lists Despues el 'for' loop, tienes una lista de listas que son

Re: simplify query

2015-11-10 Thread miguel angel lopez mendo
ya lo acomode pero aun asi me manda este error Te dejo mi template para que veas tambien {% for clientes in objects %}

Re: How do I add permissions in admin for proxy model?

2015-11-10 Thread frocco
Just an update. This is now working in django 1.8.6 On Monday, November 9, 2015 at 3:31:35 PM UTC-5, frocco wrote: > > I have > > class qry485Missing(Tracking): > class Meta: > proxy = True > permissions = ( > ("qry485Missing_display", "May display information"),

Re: simplify query

2015-11-10 Thread lukewm
Check your indentation, it's off starting from the line below `import string`. My email client kinda borked my indentation, so you need to take care. On 2015-11-10 17:30, miguel angel lopez mendo wrote:

Re: simplify query

2015-11-10 Thread miguel angel lopez mendo
i have the next view but it does not work

Re: simplify query

2015-11-10 Thread lukewm
Haven't run this code, but you could try something like: ``` import string myletters = string.ascii_letters[:16] objects = [] order = 'Nombre' for letter in myletters: filters = {'Nombre__startswith': letter}

simplify query

2015-11-10 Thread miguel angel lopez mendo
a = Clientes.objects.filter( Nombre__startswith='A').order_by('Nombre') b = Clientes.objects.filter( Nombre__startswith='B').order_by('Nombre') c = Clientes.objects.filter( Nombre__startswith='C').order_by('Nombre') d = Clientes.objects.filter( Nombre__startswith='D').order_by('Nombre') e =

Re: Django on CentOS

2015-11-10 Thread James Schneider
I would strongly suggest abandoning trying to fix the import problem until you either a) verify that you have recompiled mod_wsgi with the correct Python version or b) switch to a distribution that uses a supported version of Python by default. At this point, you are wasting time and you may not

Re: django-admin.py startproject mysite

2015-11-10 Thread Peter of the Norse
0.0.0.0 is not an actual IP address. You can’t put it in your browser. Instead, you need to find your computer’s IP address and use that. How you find it depends on your OS, but once you do, then you can visit http://192.168.0.5:8000/ (for example). > On Nov 4, 2015, at 5:50 PM, Muhammad

How do I server my app in apache in subdirectory?

2015-11-10 Thread frocco
Hello, In httpd.conf this works WSGIScriptAlias / C:/MAMP/htdocs/django/vnatracking/vnatracking/wsgi.py however if I change it to WSGIScriptAlias /mysite C:/MAMP/htdocs/django/vnatracking/vnatracking/wsgi.py it fails Instead of localhost, I want localhost/mysite Thanks -- You received

Re: Django on CentOS

2015-11-10 Thread Robin Fourcade
Thanks Matthias, I set* os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pizza_club.settings") in my wsgi.py* Now I have *ImportError: Could not import settings 'pizza_club.settings' (Is it on sys.path?): No module named pizza_club.settings, referer: http://www.pizzaclub.fr/* Is that what you

Deployment script to accommodate up-gradation of 3rd party apps and (fake) migration of models

2015-11-10 Thread 42hrs . in
HI, In fabfile.py, I use something similar to the following to install dependencies and to migrate the changes to the new model run("pip install -r ../deployment/pip/deploy.txt") > run("python manage.py migrate --settings=project.settings.prod") When I upgrade the 3rd party apps which

Re: Django on CentOS

2015-11-10 Thread Timothy W. Cook
If you have the option use a different Linux distribution. If you must use CentOS this may help with getting Apache and Python (newer than 2.6) working. http://stackoverflow.com/questions/21158918/django-mod-wsgi-psycopg2-improperlyconfigured-error-loading-psycopg2-module I see that since I had

Django 1.8 format error

2015-11-10 Thread Jose Paul
I am getting following errors when I am tried DJango 1.8 test cases against DB2 .What can be the cause for this ?. Can someone comment on this please . == FAIL: test_decimal_numbers