Re: Discussion: Why not Django include uWSGI/FastCGI support internally just like Spring Boot include tomcat ?

2019-02-27 Thread Simone Federici
Spring boot is like a django boot external lib to start a django microservice. exactly like spring boot. you can build your spring application without a spring boot starter. On Wed, 27 Feb 2019 at 09:35, panfei wrote: > If Django include these production-ready container, and then implement a >

Re: Re: Composite Primary / Foreign Key support

2019-02-18 Thread Simone Federici
Lance, sincerely, nobody take care about that feature because that's needed just for legacy db. The number of applications with on legacy db is less than 0.01% of the django applications. There are some workaround for that applications, for example use SQL Alchemy. I implemented a CompositeKey Da

Re: Multiple Fields as Primary Key in MySQL - Django 1.10

2017-01-03 Thread Simone Federici
Hi, from compositekey import db On my compositekey project the development is stopped on 1.5 django release. https://github.com/simone/django-compositekey The Django 1.6 release, with an huge ORM refactoring and a huge testing refactoring, let my work hard to maintains. What I understand after t

Re: Django (cache?) make some mistake with formset generated class

2013-11-07 Thread Simone Federici
On Thu, Nov 7, 2013 at 11:54 AM, Bastien Sevajol wrote: > formsets = {} this class variable is in ModelFormsetManager class namespace so it is shared across the subclasses. You are using formsets to save before the object class, and after the instances, so when in the formset there is the insta

Re: How to create a formset that contains forms with a dropdown? (Crucial)

2012-08-16 Thread Simone Federici
On 16/ago/2012, at 23:35, Houmie wrote: > The question might seem too simplistic, but it seems formsets can only work > with forms that have simple type fields such as charfield. > But has anyone tried to use a form with a dropdown and use that form to > instantiate a formset? > > Let me giv

Re: Django/Python Circular model reference

2012-06-01 Thread Simone Federici
On Fri, Jun 1, 2012 at 8:58 PM, Bill Freeman wrote: > This isn't quite OneToOne since the ends of the relation need not both > exist. An answer cannot exist without the question The following question cannot exist without the previous answer, but there is the case where the object Question is t

Re: Django/Python Circular model reference

2012-06-01 Thread Simone Federici
class Question(models.Model): title = models.CharField(max_length = 50) response = models.CharField(max_length = 400) parent = models.OneToOne('self', related_name='child', null=True) def __unicode__(self): return self.title class Answer(models.Model): question = models.OneT

Re: Django/Python Circular model reference

2012-06-01 Thread Simone Federici
you can use 'Question' as String (lazy reference) ManyToMany('Question') but I don't really undestand your relations On Fri, Jun 1, 2012 at 6:42 PM, Kevin Anthony wrote: > Define it in one and back reference it in the other > > Kevin > Please excuse brevity, sent from phone > On Jun 1, 2012 12:

Re: Need Help with ForeignKeys

2012-05-23 Thread Simone Federici
On Wed, May 23, 2012 at 4:40 PM, Mark Phillips wrote: > Now, can you please explain why it worked? What does the related_name do > and why do I need it? When you define a ForeignKey, django creates dinamically a reverse relationship. take this example: A B.a -> A from an instance of b = B() yo

Re: Need Help with ForeignKeys

2012-05-23 Thread Simone Federici
class Game(models.Model): game_id = models.IntegerField(primary_key=True) gamedate = models.DateField() gamestart = models.TimetField(blank=True) duration = models.IntegerField() innings = models.IntegerField() hometeam = models.ForeignKey(Team, related_name='homegame_set')

Re: Django/Python version compatibility

2012-03-19 Thread Simone Federici
On Mon, Mar 19, 2012 at 21:52, Chiproller wrote: > So will 1.4 be compatible with Python 3.X? I am wondering how best to > learn Python for Django if I'm learning from Python books that cover > (like most new books) 3.X. Any suggestions? > Django 1.4 => [ Python2.5, Python2.6, Python2.7 ] Djan

Re: Primary key for read-only models

2012-01-13 Thread Simone Federici
Try this: https://github.com/simone/django-compositekey/wiki and send me feedback :-) On Thu, Jan 12, 2012 at 16:03, Demetrio Girardi wrote: > I need to read data from an "external" database table from my django > project. I am not interested in modifying the data, only reading it. > Of course

Re: Cool and useful development commands :-)

2011-02-23 Thread Simone Federici
Thanks, your feedback are welcome :-D On Wed, Feb 23, 2011 at 20:00, Ori Livneh wrote: > Can't wait to try it! Some nifty things here. > > On Tue, Feb 22, 2011 at 11:46 AM, Simone Federici wrote: > >> http://www.os4d.org/djangodevtools >> Your feedback

Re: Cool and useful development commands :-)

2011-02-23 Thread Simone Federici
Maybe you could write a filter "urlsafe" to use into templates so that variable does not contains javascript. And you could create a command that scan templates and raise an alert every variable inside an href attribute that is not "urlsafe". But I believe that a tool is used to work, not to do th

Re: Cool and useful development commands :-)

2011-02-23 Thread Simone Federici
templates" for obvious XSS mistakes, it colud be a good tool, but I need your help to add this feature. I have before to understand what you intend for obvious. Thanks for your feedback On Wed, Feb 23, 2011 at 11:10, Mike Ramirez wrote: > On Tuesday, February 22, 2011 08:46:34 a

Re: Cool and useful development commands :-)

2011-02-23 Thread Simone Federici
19:05, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Haven't had chance to look at it properly yet, but looks like a useful set > of tools. I'll download and have a tinker around later :) > > On Tue, Feb 22, 2011 at 4:46 PM,

Cool and useful development commands :-)

2011-02-22 Thread Simone Federici
http://www.os4d.org/djangodevtools Your feedback is very welcome Simone -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-us