logged in user permissions and roles caching

2016-01-20 Thread Eddilbert Macharia
Hello guys I'm a little bit confused... . When using django all that is, permissions and roles He is my understanding of how django works. On each request made my by a client django creates a request object from it And by using the authentication middleware it adds the logged in

Do you know any Django reservation app?

2016-01-20 Thread Luis Zárate
I need an app that do this: Public user can reserve a cite in specific datetime. Private user manage the cite status. I need to manage medical schedule with this app. -- "La utopía sirve para caminar" Fernando Birri -- You received this message because you are subscribed to the Google Groups

Re: Why counter tag is not working as expected in django?

2016-01-20 Thread sonu kumar
SO link: http://stackoverflow.com/questions/34894964/why-counter-tag-is-not-working-as-expected-in-django I am using two for loop one is for main question and another one is for sub questions. Why? We have some comprehension type question, in comprehension type question there could be more tha

Re: Additional Search/Filtering based on a Model's fields in horizontal_filter

2016-01-20 Thread Dheerendra Rathor
You can add your fields in search_fields in ModelAdmin to make them searchable. On Thu, 21 Jan 2016 at 03:35 Keehun Nam wrote: > Hi Django Users, > > Is there a preexisting solution where I can have an admin widget like > horizontal_filter except it has the ability to search by the model's field

Additional Search/Filtering based on a Model's fields in horizontal_filter

2016-01-20 Thread Keehun Nam
Hi Django Users, Is there a preexisting solution where I can have an admin widget like horizontal_filter except it has the ability to search by the model's fields (not just the string representation in a list? Say I have a PERSON model with fields: Name, Country, and Vehicle Type. Right now, w

Re: async / await

2016-01-20 Thread Russell Keith-Magee
On Thu, Jan 21, 2016 at 8:19 AM, Benjamin Melki wrote: > > > > To implement this sort of feature, you need to have a worker queue - > Celery is the heavy duty answer for this; if you just need a cheap and > cheerful answer, RQ is a fairly easy-to-use option, or you can > roll-your-own in the data

Re: Using API to get data and display it on my website using DJANGO..

2016-01-20 Thread Muhammad M
Hi Rij, I would approach it like this (though there might be alternative routes to the same results): First: Where is the data? According to your links, the various API endpoints are in the “results” list of the JSON on http://data.london.gov.uk/api/3/action/package_list

Using API to get data and display it on my website using DJANGO..

2016-01-20 Thread Rij K
Hi all, I'm trying to implement data and graphs from "http://data.london.gov.uk/"; into my website by using an API (http://data.london.gov.uk/developers/) provided by them but I'm not too sure where to get started? Would anyone be up for giving me a hand with this? Many thanks. -- You receiv

Re: async / await

2016-01-20 Thread Benjamin Melki
> > > To implement this sort of feature, you need to have a worker queue - Celery > is the heavy duty answer for this; if you just need a cheap and cheerful > answer, RQ is a fairly easy-to-use option, or you can roll-your-own in the > database without too much trouble. > Thank you Russel,

Re: async / await

2016-01-20 Thread Russell Keith-Magee
Hi Benj, On Thu, Jan 21, 2016 at 6:41 AM, Benj wrote: > Hi, > > on my django project, at a point i resize an image with pilow before > associating it to django field, then saving the instance. > > is there any benefit in making the image resize / saving on disk async ? > Yes - although async is

async / await

2016-01-20 Thread Benj
Hi, on my django project, at a point i resize an image with pilow before associating it to django field, then saving the instance. is there any benefit in making the image resize / saving on disk async ? I heard that since django is a non async framework, there is no interest in doing so. But

Re: Nullable ChoiceField on ModelForm - has_changed always True

2016-01-20 Thread James Schneider
On Tue, Jan 19, 2016 at 4:45 PM, steve byerly wrote: > Also of note, I recently upgraded to Django 1.9 from Django 1.7 where this > was working fine. It looks like this commit is the cause of my problem: > > https://github.com/django/django/commit/ff077cd6496b6f82195e2dc040f70e19e7c206c9 > > Is t

Re: Nullable ChoiceField on ModelForm - has_changed always True

2016-01-20 Thread steve byerly
It actually looks like the commit fixed the regression and was in 1.9.1. Didn't realize it had been released. On Tuesday, January 19, 2016 at 4:45:52 PM UTC-8, steve byerly wrote: > > Also of note, I recently upgraded to Django 1.9 from Django 1.7 where this > was working fine. It looks like thi

Re: how to return error message if the users call the ajax from othere than my webapp.

2016-01-20 Thread James Schneider
On Wed, Jan 20, 2016 at 1:33 AM, nullvoid wrote: > Hi, > > i am currently working on a project, in that project i written a api there > is no user authentication stuffs anyone can access and there is some ajax > call, when the ajax call happen my view will return a api output to the > user. Is th

Re: Why counter tag is not working as expected in django?

2016-01-20 Thread James Schneider
On Wed, Jan 20, 2016 at 6:14 AM, sonu kumar wrote: > https://djangosnippets.org/snippets/2619/ > > According to above snippet if we access {{ counter_var }} in template > after initializing it should return previous count. But in my case it does > not return anything. > > > That snippet is from 2

[Job] Software Engineer opening in Corvallis, Oregon

2016-01-20 Thread Nikolas Stevenson-Molnar
We are a non-profit organization of scientists, technicians, and software engineers - providing scientific and technical expertise to support the conservation and recovery of biological diversity. We rely heavily on Python and Django and are looking to hire an additional permanent, full-time So

Re: How to view the generated SQL for test models?

2016-01-20 Thread Brutus Schraiber
Hi Michal, # The `ProgrammingError` Exception Am 18.01.2016 um 20:23 schrieb Michal Petrucha: > Could you perhaps post the full traceback of the ProgrammingError? The original exception was (full traceback at the end of the mail): ``` django.db.utils.ProgrammingError: (1064, "You have an error

Re: How to view the generated SQL for test models?

2016-01-20 Thread 'Brutus' via Django users
Hi Michal, # The `ProgrammingError` Exception Am 18.01.2016 um 20:23 schrieb Michal Petrucha: Could you perhaps post the full traceback of the ProgrammingError? The original exception was (full traceback at the end of the mail): ``` django.db.utils.ProgrammingError: (1064, "You have an erro

Re: How to learn Django stepwise Effectively

2016-01-20 Thread Andrew Pinkham
Hi Berbetto, There are many resources for learning Django (NB: this email assumes you’re not looking to learn Python). If you’re looking for free resources online, I would start with either the official tutorial, or the Django Girls tutorial. https://docs.djangoproject.com/en/1.9/intro/tutorial

Re: open data protocol and django

2016-01-20 Thread Ido Fishler
I don't this tastypie support OData. On Thursday, January 16, 2014 at 10:20:09 PM UTC+2, tizonzon wrote: > > Have you tested tastypie? > > http://tastypieapi.org/ > > > Regards, > > > > > On Thu, Jan 16, 2014 at 3:04 PM, Sven Aßmann > wrote: > >> Hi Folks, >> >> again i wanna ask you if someone

how to return error message if the users call the ajax from othere than my webapp.

2016-01-20 Thread nullvoid
Hi, i am currently working on a project, in that project i written a api there is no user authentication stuffs anyone can access and there is some ajax call, when the ajax call happen my view will return a api output to the user. Is there any way user can call the api other than from my webap

Why counter tag is not working as expected in django?

2016-01-20 Thread sonu kumar
https://djangosnippets.org/snippets/2619/ According to above snippet if we access {{ counter_var }} in template after initializing it should return previous count. But in my case it does not return anything. template code Q{% counter %}. ...var no_of_questions={{ counter_var }} Template

Re: Capturing output of management commands during tests doesn't work

2016-01-20 Thread Patrice
Hi Michal, It looks like I missed those parts of the doc :) Thanks for pointing them out, working now! Le mercredi 20 janvier 2016 12:20:24 UTC+1, Michal Petrucha a écrit : > > On Wed, Jan 20, 2016 at 02:52:20AM -0800, Patrice wrote: > > Hello, > > > > I followed what is describe in the docs

Re: Capturing output of management commands during tests doesn't work

2016-01-20 Thread Michal Petrucha
On Wed, Jan 20, 2016 at 02:52:20AM -0800, Patrice wrote: > Hello, > > I followed what is describe in the docs here > : > https://docs.djangoproject.com/en/1.9/topics/testing/tools/#management-commands > but all I got is an empty string in my *out.getvalue()*. > > From what I understand from Dj

Capturing output of management commands during tests doesn't work

2016-01-20 Thread Patrice
Hello, I followed what is describe in the docs here : https://docs.djangoproject.com/en/1.9/topics/testing/tools/#management-commands but all I got is an empty string in my *out.getvalue()*. >From what I understand from Django code here

use django logging from outside

2016-01-20 Thread Det S. Pillner
Hi all, I work on a django project. I use very heavy logging in this project. Some parts of code needs to start over a cron job outside of the django project. In this - I call it modules - I try to use my existing django logging config. Code execution displays no errors bud there are no logging