Re: Changes to django's settings module

2013-03-16 Thread Omer Katz
Shai,
The google groups editor is kinda annoying. I'll be using GMail from now on
because it removes formatting on random basis (I don't really know why)

Also, I can rewrite django-configuartion in a couple of hours using the
changes in this patch. Heck, I'll even make a pull request out of it.

Aymeric,
I can revert this patch to be a refactoring if we decide that we don't see
any value in the extensibility part of this patch.
I hope we all agree that this patch does make the code much clearer and
understandable.

I'll get back to you guys when I'll have more progress.


2013/3/15 Aymeric Augustin 

> On 15 mars 2013, at 09:22, Omer Katz  wrote:
>
> > Doesn't the fact that the patch makes the code clearer is a reason
> enough for a merge (providing that there will be tests attached to it and
> documentation)?
>
>
> Hi Omer,
>
> This patch isn't only a refactoring; it adds a new feature. Otherwise you
> wouldn't be talking about documentation.
>
> Each feature added to Django creates a burden:
> - for users of Django, who must learn to use it;
> - for the core team, who must maintain it for the foreseeable future.
>
> To be accepted, a new feature must:
> (a) provide benefits that clearly outweigh these costs
> (b) not get in the way of future improvements — as much as can be foreseen.
>
> Unfortunately (a) the benefits of your PR still aren't clear and (b)
> judging by the discussion, your abstraction doesn't match very well the
> needs of most users, and I suspect it could hinder further efforts to make
> per-environment settings (the actual problem) easier to define.
>
> --
> Aymeric.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-developers/1M5nfnpba0M/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, send an email to
> django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-developers?hl=en
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Appomatic: A django app packaging system based on pip

2013-03-16 Thread Egil Möller


Hi!

I'd like to introduce a new mini-framework for Django: Appomatic.

Appomatic automates and abstracts away most of the boilerplate code and 
code generation of a typical Django project, reduces the amount of 
settings.py clutter and allows for distributing self contained single-click 
installable Django apps.

In short - it makes installing django apps as simple as installing Drupal 
or Wordpress modules.
https://github.com/redhog/appomatic

It is based on virtualenv and pip.

Best regards,
Egil Möller

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Appomatic: A django app packaging system based on pip

2013-03-16 Thread Florian Apolloner
Hi Egil,

this mailinglist is for the development of Django itself, you might wanna 
write to django-users.

Regards,
Florian

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




unittest.TestCase vs. django.test.TestCase in overview example

2013-03-16 Thread Lorin Hochstein
Hi there:

On the Django testing overview doc page 
, the 
initial example uses unittest.TestCase. A Django developer who was looking 
for a quick reminder on how to write unit tests is likely to hit this page 
first. If that developer doesn't read the "warning" section below, they 
could mistakenly use unittest.TestCase when their unit tests change  the 
database. This very scenario happened to a colleague of mine.

I proposed changing this to django.test.TestCase 
, but that pull request with 
closed out by Aymeric Augustin, with reference to 
. I don't think ticket #15986 
covers quite the same issue, despite its title. Django devs, can you 
reconsider this doc patch?

Take care,

Lorin

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Changes to django's settings module

2013-03-16 Thread Omer Katz
Well, I was wrong. It took me exactly 5 minutes to get the basics of
django-configurations right: https://gist.github.com/thedrow/5180120
This gist loads settings from a class instead of a module and shows how to
load the settings from a module and override them by using a class.
All tests run correctly.
Are you guys still not convinced?


2013/3/16 Omer Katz 

> Shai,
> The google groups editor is kinda annoying. I'll be using GMail from now
> on because it removes formatting on random basis (I don't really know why)
>
> Also, I can rewrite django-configuartion in a couple of hours using the
> changes in this patch. Heck, I'll even make a pull request out of it.
>
> Aymeric,
> I can revert this patch to be a refactoring if we decide that we don't see
> any value in the extensibility part of this patch.
> I hope we all agree that this patch does make the code much clearer and
> understandable.
>
> I'll get back to you guys when I'll have more progress.
>
>
> 2013/3/15 Aymeric Augustin 
>
>> On 15 mars 2013, at 09:22, Omer Katz  wrote:
>>
>> > Doesn't the fact that the patch makes the code clearer is a reason
>> enough for a merge (providing that there will be tests attached to it and
>> documentation)?
>>
>>
>> Hi Omer,
>>
>> This patch isn't only a refactoring; it adds a new feature. Otherwise you
>> wouldn't be talking about documentation.
>>
>> Each feature added to Django creates a burden:
>> - for users of Django, who must learn to use it;
>> - for the core team, who must maintain it for the foreseeable future.
>>
>> To be accepted, a new feature must:
>> (a) provide benefits that clearly outweigh these costs
>> (b) not get in the way of future improvements — as much as can be
>> foreseen.
>>
>> Unfortunately (a) the benefits of your PR still aren't clear and (b)
>> judging by the discussion, your abstraction doesn't match very well the
>> needs of most users, and I suspect it could hinder further efforts to make
>> per-environment settings (the actual problem) easier to define.
>>
>> --
>> Aymeric.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django developers" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-developers/1M5nfnpba0M/unsubscribe?hl=en
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> django-developers+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-developers@googlegroups.com.
>> Visit this group at
>> http://groups.google.com/group/django-developers?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.