Yes, I didn't thought about creating a whole app for utilities, but it is 
indeed the way to go. Tks

On Friday, January 22, 2016 at 4:20:55 PM UTC+1, Rafael E. Ferrero wrote:
>
> Maybe you find useful make your project into a reusable app look at this 
> https://docs.djangoproject.com/en/1.9/intro/reusable-apps/
>
> Cheers !!
>
>
> Rafael E. Ferrero
>
> 2016-01-22 11:30 GMT-03:00 Benjamin Melki <[email protected] <javascript:>
> >:
>
>> Hello,
>>
>> i’m building my first site with this great framework and language that 
>> are Django and Python.
>> I try as much as possible to favor code reuse.
>>
>> On one of my model, I do some work with the instance before saving it.
>> Works is mostly image related: resizing image, compressing, saving 
>> thumbs, and a couple more stuff.
>>
>> I will need this behavior in almost all the projects that I will 
>> building, and even some other apps in the same project will need this 
>> feature: the blog, the comments, the directory…..
>>
>> In this case, where to put this code ? What do guys and gals do usually 
>> in this situation ? 
>> Do you just put it in a custom (non app) folder like ‘my_utilities’ ?
>>
>> Advices welcome.
>>
>> Thanks,
>> Benj
>>
>> -- 
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/4319BF33-90C3-47E5-B068-B2DAADFC4FE0%40gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-users/4319BF33-90C3-47E5-B068-B2DAADFC4FE0%40gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1cf34494-9497-4945-b704-e6066ff3b8c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to