Re: how to run migrations in a specific order for the test runner in Django (1.6+)

2016-04-01 Thread Tim Graham
Nothing outside of the way that Django normally determines the order in which to run migrations: https://docs.djangoproject.com/en/stable/howto/writing-migrations/#controlling-the-order-of-migrations On Friday, April 1, 2016 at 11:45:42 AM UTC-4, kasmi sidi wrote: > > is there a way to tell

[ANNOUNCE] Django bugfix releases issued: 1.9.5 and 1.8.12

2016-04-01 Thread Tim Graham
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2016/apr/01/bugfix-releases/ -- 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

Re: django admin_tools et file edition

2016-04-01 Thread Alex Heyden
Ignoring security concerns for a moment, you could make a view that loads a file (using the standard os library) and passes the contents to a textarea in a template if the request has the GET method, and saves the contents back to the file if the request has the POST method. On Fri, Apr 1, 2016

how to run migrations in a specific order for the test runner in Django (1.6+)

2016-04-01 Thread kasmi sidi
is there a way to tell django test runner to run migrations in a certain order? Sidi -- 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 app that adds multiple inheritance for Django auth groups?

2016-04-01 Thread Stodge
Is anyone aware of a Django app that adds multiple inheritance to Django auth groups? I know about django-hierarchical-auth but I want the ability to specify multiple parents for a group to make it easier to manage and group permissions. Thanks -- You received this message because you are

Re: getting error while trying example part-4 in Django 1.9

2016-04-01 Thread Eduardo Júnio Santos Macêdo
On the file *polls/urls.py* add this line before urlpatterns. app_name = 'polls' > > Em quinta-feira, 31 de março de 2016 11:22:24 UTC-3, Prabhjot Singh escreveu: > > NoReverseMatch: Reverse for 'vote' with arguments '(1,)' and keyword > arguments '{}' not found. 0 pattern(s) tried: [] > > link

Re: getting error while trying example part-4 in Django 1.9

2016-04-01 Thread Eduardo Júnio Santos Macêdo
The source code of the file where the error is coming from please. Em quinta-feira, 31 de março de 2016 11:22:24 UTC-3, Prabhjot Singh escreveu: > > NoReverseMatch: Reverse for 'vote' with arguments '(1,)' and keyword > arguments '{}' not found. 0 pattern(s) tried: [] > > link to error

Re: Redefine html properties in widget

2016-04-01 Thread Denis Makarov
class FoodForm(ModelForm): class Meta: model = Foods fields = '__all__' widgets = { 'quantity': NumberInput(attrs={'min': 1}), 'comment': TextInput(), } пятница, 1 апреля 2016 г., 11:47:33 UTC+3 пользователь Denis Makarov написал: > > class Foods(models.Model): > >

Re: Redefine html properties in widget

2016-04-01 Thread Denis Makarov
class Foods(models.Model): def __str__(self): return self.name name = models.CharField(max_length=200) quantity = models.PositiveSmallIntegerField(default=1, validators=[ MinValueValidator(1)]) quandesc = models.CharField(max_length=3, choices=(('Item', 'Qty'),

Re: django admin_tools et file edition

2016-04-01 Thread vassilux
One part of the configuration can be loaded from the database and it works well. I have to edit some files of asterisk ipbx. May be I can overload save / load methodes of djaongo model ? Or make a "service for file " into server side of my application, à la "restful" ? Le jeudi 31 mars

Re: Q() chaining with & returns empty set

2016-04-01 Thread Erik Cederstrand
> Den 31. mar. 2016 kl. 04.14 skrev Bai Shun : > > I've got a problem in using Q() To see what's going on, try to print the SQL that Django generates for working and non-working queryset: > print >