Re: Django with 2 subapps with same name

2013-05-15 Thread Andre Terra
Despite possibly working with different app_labels, I believe the point
still stands that if the storage and invoice apps share a lot of
functionality among vendors, they should just be 'invoice' and 'storage'
and allow for pluggable companies.


Cheers,
AT

On Mon, May 13, 2013 at 12:02 PM, Tom Evans wrote:

> Does it help if they have distinct app_labels?
>
> https://docs.djangoproject.com/en/1.5/ref/models/options/#app-label
>
> Cheers
>

-- 
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-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django with 2 subapps with same name

2013-05-13 Thread Tom Evans
On Fri, May 10, 2013 at 8:22 PM, Valder Gallo  wrote:
> Nops ... when i used
>
>  INSTALLED_APP = {
>   'invoice.sony',
>   'invoice.samsung',
>   'storage.sony',
>   'storage.samsung',
> }
>
> storage.samsung.models is overrind invoice.samsung.models
>
> :(
>

Does it help if they have distinct app_labels?

https://docs.djangoproject.com/en/1.5/ref/models/options/#app-label

Cheers

Tom

-- 
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-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django with 2 subapps with same name

2013-05-10 Thread Andre Terra
Granted this structure doesn't seem reasonable. Each manufacturer shouldn't
be a separate app, but rather "backends" to generic storage or invoice apps.

So you only need
INSTALLED_APPS = (
# ...
'storage',
'invoice'
)

And then work from there. The apps themselves should be able to register
and handle different backends. Take a look at what django-registration[1]
does!

Cheers,
AT

[1]
https://bitbucket.org/ubernostrum/django-registration/src/b3c41b3c7f50523b4ecb8267d6d27a918adc2e1f/registration?at=default

On Fri, May 10, 2013 at 4:43 PM, Valder Gallo  wrote:

> tnx :D
>
>
> On Fri, May 10, 2013 at 4:31 PM, Shawn Milochik wrote:
>
>> It is not possible.
>>
>>
>> https://groups.google.com/forum/#!msg/django-users/AMYLfQo6Ba4/Y-57B0i7qy4J
>>
>> --
>> 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-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Valder Gallo
> +55 11 9949 2911
> +55 11 2532 2911
> Skype: valdergallo
> @valdergallo
> www.valdergallo.com.br
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?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 users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django with 2 subapps with same name

2013-05-10 Thread Valder Gallo
tnx :D


On Fri, May 10, 2013 at 4:31 PM, Shawn Milochik  wrote:

> It is not possible.
>
> https://groups.google.com/forum/#!msg/django-users/AMYLfQo6Ba4/Y-57B0i7qy4J
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Valder Gallo
+55 11 9949 2911
+55 11 2532 2911
Skype: valdergallo
@valdergallo
www.valdergallo.com.br

-- 
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-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django with 2 subapps with same name

2013-05-10 Thread Shawn Milochik
It is not possible.

https://groups.google.com/forum/#!msg/django-users/AMYLfQo6Ba4/Y-57B0i7qy4J

-- 
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-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django with 2 subapps with same name

2013-05-10 Thread Valder Gallo
Nops ... when i used

 INSTALLED_APP = {
  'invoice.sony',
  'invoice.samsung',
  'storage.sony',
  'storage.samsung',
}

storage.samsung.models is overrind invoice.samsung.models

:(




On Fri, May 10, 2013 at 4:08 PM, Thiago Avelino  wrote:

> Yep, add in installed_app:
>
> application_name.storage.sony
> application_name.storage.samsung
>
>
>
>
> Cheers,
> Thiago Avelino
>
>
> On Fri, May 10, 2013 at 3:19 PM, Valder Gallo wrote:
>
>> I cant have 2 subapp with same name in Django ?
>>
>> Ex.
>>
>> invoice/sony
>> invoice/samsung
>>
>> storage/sony
>> storage/samsung
>>
>>
>>
>> --
>> 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-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users?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 users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Valder Gallo
+55 11 9949 2911
+55 11 2532 2911
Skype: valdergallo
@valdergallo
www.valdergallo.com.br

-- 
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-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django with 2 subapps with same name

2013-05-10 Thread Thiago Avelino
Yep, add in installed_app:

application_name.storage.sony
application_name.storage.samsung




Cheers,
Thiago Avelino


On Fri, May 10, 2013 at 3:19 PM, Valder Gallo  wrote:

> I cant have 2 subapp with same name in Django ?
>
> Ex.
>
> invoice/sony
> invoice/samsung
>
> storage/sony
> storage/samsung
>
>
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?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 users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.