Re: django socialauth username not showing correctly

2012-10-09 Thread Stefano Tranquillini
Django put numbers because you already have in the db a user with the fb username. check it. On Tuesday, October 9, 2012 5:19:00 PM UTC+2, psychok7 wrote: > > hey thanks for the reply. Can you point out some examples here i can get > do all that in the right way? > > On Tuesday, October 9, 2012

Re: django socialauth username not showing correctly

2012-10-10 Thread Stefano Tranquillini
ocial-auth Il giorno 09/ott/2012 17:57, "psychok7" ha scritto: > yes you are right. i deleted the same name user and it works. but how can > i control this with oauth users and users that register normally? > > On Tuesday, October 9, 2012 4:49:21 PM UTC+1, Stefano Tran

Re: Update a model using UpdateView

2012-10-10 Thread Stefano Tranquillini
example of the updateview here: > http://stackoverflow.com/questions/5531258/example-of-django-class-based-deleteview/10903943#10903943 > > On Tue, Oct 9, 2012 at 10:48 AM, Stefano Tranquillini < > stefano.tr...@gmail.com > wrote: > >> Hi all. >> I'm trying

Re: Update a model using UpdateView

2012-10-10 Thread Stefano Tranquillini
hard as you could >> make a Parent Model or Mixin to make things easier. >> >> Another option is to use something like django-guardian to handle all of >> your permissions. However, the one time I've used it (required by a third >> party package) it wasn&

Re: Django setup with elsatic beanstalk

2012-10-11 Thread Stefano Tranquillini
same problem, did you solve it? On Monday, October 8, 2012 7:22:51 PM UTC+2, shlomi oberman wrote: > > I'm trying without succes to setup a simple application using django with > elastic beanstalk from my windows machine. > Does anyone have any expreience with this? I am currently getting the >

Re: Django setup with elsatic beanstalk

2012-10-12 Thread Stefano Tranquillini
th? this is the directory tree: . |.ebextensions | |config |.elasticbeanstalk | |config | |optionsettings |manage.py |mysites | |.DS_Store | |__init__.py | |__init__.pyc | |settings.py | |settings.pyc | |urls.py | |urls.pyc | |__

Re: Django setup with elsatic beanstalk

2012-10-24 Thread Stefano Tranquillini
ainer:python:staticfiles] > /static = > > > Then type eb update and trick should work. > > > On Friday, 12 October 2012 11:54:37 UTC+2, Stefano Tranquillini wrote: >> >> Mmm. seems that i missing something. >> >> this is the log >> >> 2012

display additional information, best practice

2012-10-28 Thread Stefano Tranquillini
Hi all. just a question about how to proceed. when i've to display data direct from the model (the db) one in a page is simple. what if i want to display aggregate data or some data that needs logic? i've to do it in the view and add the object to the contex, or it's better to do a custom tag filte

Re: display additional information, best practice

2012-10-29 Thread Stefano Tranquillini
o match the data i want to display and render this in a template? On Sunday, October 28, 2012 10:03:21 PM UTC+1, Sergiy Khohlov wrote: > > Have you tried detailview ? > Also it is possible to add some values to the temple in view > > 2012/10/28 Stefano Tranquillini >: > >

Re: Django setup with elsatic beanstalk

2012-10-30 Thread Stefano Tranquillini
2-10-30 14:28:42,875 ERRORThe specified WSGIPath of "application.py" was not found in the source bundle and i don't have any application.py file in my folder . this application.py i s specified in the .elasticbeanstalk/optionsettings Il giorno mercoledì 24 ottobre 2012 14:0

Re: google app engine suggestion

2012-11-12 Thread Stefano Tranquillini
Jumping in the thread. is GAE supporting django? i knew that something is supported but not completely (like db is non rel in GAE). is there a tutorial on how to set it up? what did you follow? my 2 cents on the server, right now i'm using AWS free tier, it's for 12months and it's good. after

Re: Django setup with elsatic beanstalk

2012-11-29 Thread Stefano Tranquillini
then create > a new environment, you might have better luck.. > -D > > > On Tuesday, October 30, 2012 7:43:29 AM UTC-7, Stefano Tranquillini wrote: >> >> Well >> i was able to play with it only right now. >> there's a thing i can't understand. what&#

Re: Serve static files in production server

2013-01-02 Thread Stefano Tranquillini
On Sunday, December 30, 2012 6:01:24 PM UTC+1, Amirouche wrote: > > Héllo Stefano, > > On Sunday, December 30, 2012 1:27:12 PM UTC+1, Stefano Tranquillini wrote: >> >> Hi all. >> in the appfog ML we were fighting again the possibility to serve static >> file

App-structure: how to have a bunch of data in all the pages.

2013-02-05 Thread Stefano Tranquillini
Hi all. i've a conceptual problem that i would like to solve. Let's take as example a blog. In all the pages of the blog i would like to have a colum containing the list of tags and the list of the top-10 posts. Now, i can create a base.html template where i render the data. but, how should i d

StreamingHttpResponse into a Template

2013-02-27 Thread Stefano Tranquillini
Django 1.5 is just came out and it ships the StreamingHttpResponse. What i want to do is to print the output of a stream response into a template, having for example a bar that grows based on the streamed data (something similar to a loading bar). so far i've found a solution that basically

Re: StreamingHttpResponse into a Template

2013-02-28 Thread Stefano Tranquillini
2 PM UTC+1, Stefano Tranquillini wrote: > > Django 1.5 is just came out and it ships the StreamingHttpResponse. > > What i want to do is to print the output of a stream response into a > template, having for example a bar that grows based on the streamed data > (something simil

Re: Django setup with elsatic beanstalk

2014-07-15 Thread Stefano Tranquillini
i gave up and create a machine on AWS and deployed everything. it's not that complex, u can find tutorial online . On Sat, Jul 12, 2014 at 1:24 AM, Rob wrote: > gmail.com> writes: > > > > > > > I'm having a similar problem - I don't see errors from the > EB console - but django is not load

widget rendering custom html

2018-03-27 Thread Stefano Tranquillini
Hi all, I would like to personlize a widget adding an extra link. In particular I want to change the forms.widgets.CheckboxSelectMultiple . I've read this: https://docs.djangoproject.com/en/2.0/ref/forms/renderers/ but I can't still make it working, I did this piece of code class MultiChoiceFi

Re: widget rendering custom html

2018-04-06 Thread Stefano Tranquillini
day, March 27, 2018 at 10:31:46 AM UTC+2, Stefano Tranquillini wrote: > > Hi all, > > I would like to personlize a widget adding an extra link. In particular I > want to change the forms.widgets.CheckboxSelectMultiple . > I've read this: https://docs.djangoproject.com/en/2

username and allowed alphanumeric, why?

2018-04-10 Thread Stefano Tranquillini
Hi all, mostly curiosity, why does the username https://docs.djangoproject.com/en/1.11/ref/contrib/auth/#django.contrib.auth.models.User.username allow only _, @, +, . and - characters? is there a reason for that? -- You received this message because you are subscribed to the Google Groups

Re: username and allowed alphanumeric, why?

2018-04-12 Thread Stefano Tranquillini
18 11:10:33 CEST Stefano Tranquillini wrote: > > > mostly curiosity, why does the username > > > https://docs.djangoproject.com/en/1.11/ref/contrib/auth/#django.contrib.auth > > .models.User.username allow only _, @, +, . and - characters? > > is there a reason f

Csrf: when is it updated/generated?

2016-04-28 Thread Stefano Tranquillini
Hello, i was running a test on a website i dev with django and the system pointed out that "There are indications that attempts to protect against CSRF is in place. By using two different sessions the same tokens were retrieved. This may indicate a buggy behavior in the protection mechanism." .

Re: Csrf: when is it updated/generated?

2016-04-28 Thread Stefano Tranquillini
Graham wrote: > > Did you read > https://docs.djangoproject.com/en/stable/ref/csrf/#how-it-works ? > > On Thursday, April 28, 2016 at 11:24:40 AM UTC-4, Stefano Tranquillini > wrote: >> >> Hello, >> i was running a test on a website i dev with django and the system &

django.core.exceptions.FieldDoesNotExist but the field exists

2016-09-05 Thread Stefano Tranquillini
Hello I've a problem syncing the db. I run the command: django-admin migrate System check identified some issues: Operations to perform: Synchronize unmigrated apps: oauth2_provider, Apply all migrations: admin, Synchronizing apps without migrations: Creating tables... Running deferr

Re: django.core.exceptions.FieldDoesNotExist but the field exists

2016-09-07 Thread Stefano Tranquillini
It seems that i missed a part while merging. On Mon, Sep 5, 2016 at 5:55 PM, Michal Petrucha < michal.petru...@konk.org> wrote: > On Mon, Sep 05, 2016 at 08:44:55AM -0700, Stefano Tranquillini wrote: > > Hello > > > > I've a problem syncing the db. > &g

Sharding DB: one database per user dynamically

2016-10-06 Thread Stefano Tranquillini
Hi all, I quickly skimmed into the group but i did not find an updated answer. what i want to do is to have a database for each user that register to my service, the structure of the databse is the same for all, the data are just separated. I want to do this for two reasons: - be able to move

Re: Sharding DB: one database per user dynamically

2016-10-06 Thread Stefano Tranquillini
do with all the references among tables. On Thu, Oct 6, 2016 at 10:45 AM, Erik Cederstrand wrote: > > > Den 6. okt. 2016 kl. 09.54 skrev Stefano Tranquillini < > stefano.tranquill...@gmail.com>: > > > > Hi all, > > > > I quickly skimmed into the group but i

StreamingHttpResponse response length in a stats middleware

2017-01-18 Thread Stefano Tranquillini
Hi there, I'm using the StreamingHttpResponse to stream a response, it works great. Now, I've a middleware that measures the size of req/response that users do. For normal HttpResponse i use len(response.content) [i know that it does not give the bytes, but it's pretty close], for the streamin

Rename Table limiting the down of the system

2017-03-15 Thread Stefano Tranquillini
Hi people. I've to do a migration for the database, specifically I've to rename a table. To do so I've a RunPython that runs this sql statemnet `ALTER TABLE "old_table" RENAME TO "new_table"` First question: should I use https://docs.djangoproject.com/en/1.8/ref/migration-operations/#renamemod

Re: Rename Table limiting the down of the system

2017-03-15 Thread Stefano Tranquillini
Thanks, On Wed, Mar 15, 2017 at 9:43 AM, Mike Dewhirst wrote: > On 15/03/2017 7:12 PM, Stefano Tranquillini wrote: > >> Hi people. >> >> I've to do a migration for the database, specifically I've to rename a >> table. >> >> To do so I've

Connection retry parameter

2020-11-19 Thread Stefano Tranquillini
Hello all, i run into this package https://github.com/jdelic/django-dbconn-retry and I was wondering why is not django doing it by itself? It has timeout and other parameters, why not also a retry parameter (default 0)? is there any drawback? PS: has anyone used that package and confirms that i