Re: getting tuples from http request.GET

2015-03-08 Thread Jonathan Querubina
You could use the same variable name on the querystring and call: request.GET.getlist For example, on a select multiple field ou checkbox  John Mobile & Web developer +55(12)98864-1594 > On Mar 8, 2015, at 00:01, Sunil Sawant wrote: > > Thanks Collin, you cut out the crap from from my code.

Checkboxes collection instead of a multiple select

2014-02-06 Thread Jonathan Querubina
Hi guys, How do i show a collection of checkboxes instead of a multiple select? Thanks! -- 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 django-users+unsubscr..

Re: Checkboxes collection instead of a multiple select

2014-02-12 Thread Jonathan Querubina
Tom, Thanks for the feedback! This can be used on the admin form? On Feb 6, 2014, at 12:48 PM, Tom Evans wrote: > On Thu, Feb 6, 2014 at 11:15 AM, Jonathan Querubina > wrote: >> Hi guys, >> >> How do i show a collection of checkboxes instead of a multiple select? &g

Re: is_valid

2014-02-14 Thread Jonathan Querubina
blank = True on the model field On Feb 14, 2014, at 8:53 AM, fabricio wrote: > how do i django not validate some fields > > -- > 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

Re: Django + PostgresSQL. I'm a newbie.

2014-02-14 Thread Jonathan Querubina
And he is using gTranslate, for sure. Maybe he is not aware of what he wants... Віталій: Search Google First Jonathan Querubina Diretor de Tecnologia +55(12)98864-1594 www.phocus.com.br > On Feb 14, 2014, at 18:10, "C. Kirby" wrote: > > The topics you are asking about

Re: Django multiple model from one form submit

2014-02-19 Thread Jonathan Querubina
You can use an admin custom insert form With stackedinline Jonathan Querubina Diretor de Tecnologia +55(12)98864-1594 www.phocus.com.br > On Feb 19, 2014, at 19:24, Henrique Oliveira > wrote: > > Hi there, > > I have the model below: > > class Ticket(models

Ajax Request on Admin Edit Form

2014-03-05 Thread Jonathan Querubina
Hi guys. How can i edit the Admin Default Edit Form on django to insert my custom JS on the page? I mean, when i am editing a model, i need to insert some JS code on it Is this possible? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group

Django Admin Multiupload Field

2014-03-15 Thread Jonathan Querubina
Hi guys, Maybe this is a noob question, but how can i have a Multiupload Field on a Model for the Django Admin? I Found this: https://github.com/TND/django-files-widget And sounds amazing, but i can`t get Pillow installed on my mac (10.9 / Xcode 5.1) Any of you have this problem? There`s an

Re: Django Admin Multiupload Field

2014-03-15 Thread Jonathan Querubina
Camilo, I can`t use inline (i tryied) because the user has to select file by file, not all the same time On Mar 15, 2014, at 1:58 PM, Camilo Torres wrote: > > On Saturday, March 15, 2014 11:18:05 AM UTC-4:30, Jonathan Querubina wrote: > how can i have a Multiupload Field on a Mode

STATIC and MEDIA

2014-03-29 Thread Jonathan Querubina
Guys What is the best way to configure and make accessible via URL the STATIC and the MEDIA uri? I can`t seem to find a good way, and get so many errors for the both being equal. Can someone send me an example of this configs? Thanks! -- You received this message because you are subscribed

Tutorial to deploy (with install instructions) = django+gunicorn+nginx

2014-05-23 Thread Jonathan Querubina
Hi guys, i am on my first deploy and loosing my hair over this. Could anyone send me a tutorial on how to make this deploy? I am on DigitalOcean, but their tutorial doesnt work, even if i use all the same configuration, virtualenv names and so on... Thanks guys! -- You received this message b

Re: Tutorial to deploy (with install instructions) = django+gunicorn+nginx

2014-05-23 Thread Jonathan Querubina
Found this after a digging for a bit. Might help. > > http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ > > > On Friday, May 23, 2014 4:36:23 AM UTC-6, Jonathan Querubina wrote: > Hi guys, i am on my first deploy and loosing my hair over th

Re: how can i get all values of a field

2014-05-23 Thread Jonathan Querubina
Hi dota and java, If your model for the categories is Category, you would use: Category.objects.all() Sent from my iPad > On May 23, 2014, at 23:23, dotaandj...@gmail.com wrote: > > i can't find a more effective method from the documentation,but thank you all > the same > > 在 2014年5月23日星期五UT

TDD

2014-05-31 Thread Jonathan Querubina
Guys, Could anyone send me a link for a good tutorial on django TDD? Thanks! -- 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 django-users+unsubscr...@googlegro

User related objects

2014-07-02 Thread Jonathan Querubina
Hi guys, I need to customize my admin to show only the data related to the user who inserted. Example: When a user log in, the admin shows only the posts inserted by this user. AFAIK, django only set permissions my model, not by objects. Is there a way (or a pip package) to implement this?

Re: User related objects

2014-07-02 Thread Jonathan Querubina
> ) > > This has some good examples too > > http://www.django-rest-framework.org/api-guide/permissions > > > cheers > L. > > > On 2 July 2014 21:21, Jonathan Querubina wrote: >> Hi guys, >> >> I need to customize my admin to show only t

Re: User related objects

2014-07-02 Thread Jonathan Querubina
> http://www.django-rest-framework.org/api-guide/permissions > > > cheers > L. > > > On 2 July 2014 21:21, Jonathan Querubina wrote: >> Hi guys, >> >> I need to customize my admin to show only the data related to the user who >> inser

Re: MySQL-python on ubuntu?

2014-07-09 Thread Jonathan Querubina
Do apt-get install python-dev apt-get install libmysqlclient-dev And then apt-get install python-mysqldb On Jul 9, 2014, at 9:57 AM, François Schiettecatte wrote: > Hi > > I am installing django on Ubuntu and have a question about installing > MySQL-python? > > I know I can get install

Re: urls not maching

2014-07-13 Thread Jonathan Querubina
It seems tha you are using blog// (two slashes) on the url. Try blog/ Sent from my iPhone > On Jul 13, 2014, at 6:52, ngangsia akumbo wrote: > > > > Here is the similar probe > > views File > # Create your views here. > from blog.models import Post > from django.shortcuts import render_to_re

Re: hosting django app

2014-08-22 Thread Jonathan Querubina
dreamhost.com Sent from my iPhone > On Aug 22, 2014, at 05:25, ngangsia akumbo wrote: > > my boss uses php to build web apps > > he is n9ot very convince that django can be very cheap in hosting as php. > > is there any way i can host a django app whic is as cheap as php? > -- > You received

Re: Writing your first Django App Part 1

2014-09-02 Thread Jonathan Querubina
Just tupe in. Do not worry. Is just for learning about the shell and its power Sent from my iPhone > On Sep 2, 2014, at 20:07, Max Nathaniel Ho wrote: > > I'm following the instructions in the tutorial but am stuck at this part. > > We are told to type in "python manage.py shell" and explore

Re: Team project via Git repo

2015-10-13 Thread Jonathan Querubina
Have you installed any dependencies via "pip" ? If not and all the code has been done under your djando apps, the problem could be on the git. Have you checked .gitignore ? Sent from my iPhone > On Oct 13, 2015, at 21:38, rhc.open...@gmail.com wrote: > > Just to update: we also tried simply co

Re: Team project via Git repo

2015-10-13 Thread Jonathan Querubina
No, if debug is true, you do not have to worry about statics yet Are you activating the env before the runserver command? Sent from my iPhone > On Oct 13, 2015, at 21:56, Ralph Castain wrote: > > >> On Oct 13, 2015, at 5:42 PM, Jonathan Querubina wrote: >> >

Re: Team project via Git repo

2015-10-13 Thread Jonathan Querubina
This is a long shot, but, do you have .pyc files on the repository? If yes, try removing *.pyc Sent from my iPhone > On Oct 13, 2015, at 22:05, Jonathan Querubina wrote: > > No, if debug is true, you do not have to worry about statics yet > > Are you activating the env befor