Re: Built a API with django rest framework how do i get a key for people or is it open to them

2016-04-11 Thread Amandeep Singh
Hi Robert As for as API key is concerned it's mainly to track usage records for a key which would be linked to a person/user entity and provide a layer to block unwanted requests(stops requests at middleware before hitting the view). This key could be sent in headers or as the query parameter. Bu

Re: Flakey tests and django.db.utils.InterfaceError: connection already closed

2016-04-11 Thread thinkwell
I'd parked this problem for quite some time, until it finally became incontestably necessary to wrestle the issue to the ground. What I found, after many hours of experimenting - too much like the random walk, I suppose, is that every time I overrode setUpClass, I also had to override tearDownC

Re: Trouble getting posted

2016-04-11 Thread Gary Roach
James My original post was a test to see whether I had a global problem which I didn't. The rest is just a discussion that ensued. ie Off topic by accident. One last comment. I use a Debian Linux system with Mozilla's firebird email client. No insults intended but I stay as far away from Mi

Re: Looking for ways to improve my skills

2016-04-11 Thread djangorobert
I would go to Djangopackages.com there you will be able to see many packages that are built and get some ideas and get some ideas on others code good place to get ideas for sure. On Saturday, April 2, 2016 at 5:37:22 PM UTC-5, Devrhoid Davis wrote: > > Hi All, > > I have been working with Pyth

Anybody use Tornado and Python if so with wich service ?

2016-04-11 Thread djangorobert
I am a user for pythonanywhere.com I build most of my apps there and have just started to use aws a trial account I know pythonanywhere.com does not allow you to use tornados framework I want to build a chatting app but wanted to see what Django python users are using to make this happen

Built a API with django rest framework how do i get a key for people or is it open to them

2016-04-11 Thread djangorobert
Hello fellow django users I recently built a api for just a small sprint board where tasks can be set its built with django and django rest framework what i see though is most apis have like a key that others can use do i have to offer api keys or is mine able just able to be free thats where

Re: CKEditor

2016-04-11 Thread Luis Zárate
Supongo está usando django-ckeditor, si es así lo que tiene que hacer es usar el field que ellos proporcionan. https://github.com/django-ckeditor/django-ckeditor#field además recuerde usar {{form.media}} en la plantilla, para que se cargue el js. -- You received this message because you are su

CKEditor

2016-04-11 Thread Ricardo Felipe Ríos Higueras
Buenas. Estoy usando ckeditor en django. Todo bien, lo instalé bien y por parte del admin funciona excelente. Lo que quiero es llevar esa herramienta a un form. Crear un formulario que contenga ckeditor. Espero me entiendan y puedan ayudarme, ya que, he intentado de muchas formas y nada me re

Re: In a new Model with a OneToOne(User) relationship, how to get the username?

2016-04-11 Thread James Schneider
On Sun, Apr 10, 2016 at 5:12 AM, Andrew Chiw wrote: > class Client(UserenaBaseProfile): > def __str__(self): > return self.name > > user = models.OneToOneField(User, > unique=True, > verbose_name=_('Django Login'), >

Re: Emails to users

2016-04-11 Thread jorrit787
Django's email features are covered here: https://docs.djangoproject.com/en/1.9/topics/email/ . On Sunday, April 10, 2016 at 7:47:46 PM UTC+2, Luca Brandi wrote: > > Hi > I am wondering how the admin can communicate to his users...Is there a way > for example to create email templates and then

Re: a design about cache(using redis) , and some problem about it

2016-04-11 Thread Brendan Quinn
On Sunday, April 10, 2016 at 1:38:47 PM UTC+1, Xin Liu wrote: > > Now, Let's look at the following scenario: > A website manage 10,000 students, and show top 100 of student's > achievement. > I use mysql storage every student personal information(name email sex and > achievement) > but I have to

Re: Emails to users

2016-04-11 Thread Luca Brandi
I can create a template but then how to create a function to send it via smtp? Il giorno domenica 10 aprile 2016 19:51:40 UTC+2, Avraham Serour ha scritto: > > Of course there's, you'll need to create email templates and then email > the users > > On Sun, Apr 10, 2016, 8:47 PM Luca Brandi > > w

Django extends BaseAuthenticationForm renderring get different display

2016-04-11 Thread Guangbao Wan
Hi, guys, The bellow is my overwriting login form . class BaseAuthenticationForm(AuthenticationForm): ''' Extends django AuthenticationForm to override username so it's not limited by 30 chars since using email auth and emails can be > 30 chars. Using 75 as the max_length, since tha

Re: a design about cache(using redis) , and some problem about it

2016-04-11 Thread Michiel Overtoom
> On 2016-04-10, at 14:04, Xin Liu wrote: > > show top 100 of student's achievement MySQL query to get the 100 students with best achievements: select student_id, student_name, student_score from Students order by student_score desc limit 100 Greetings, -- You received this message

Re: What Python/Django code checkers do you recommend?...

2016-04-11 Thread Christian Ledermann
A good start is running flake8 with various plugins on the CI, and/or pre-commit. As you have a large codebase do not try to fix everything at once, you'd just get overwhelmed with all the violations reported. On 10 April 2016 at 14:21, Avraham Serour wrote: > I use all, specially because they a