Re: How to use same Models for all apps?

2022-08-29 Thread Javier L. Camacaro
thanks mansar.. I did it, but I can see the data, I need to recreate data 
in home page, with a model freate in "Tienda" app, but I cant.

Thanks






El sábado, 27 de agosto de 2022 a la(s) 21:03:21 UTC-4, mansar...@gmail.com 
escribió:

> Am new in django framework, am get problem with the new version of django 
> by adding apps and import modules.
>
> On Sat, 27 Aug 2022, 23:55 Lakshyaraj Dash,  
> wrote:
>
>> Ya sure you can use the same models throughout your project. If you're i 
>> a different app then import statement will be like
>> from appName.models import tableName
>> else if you're in the same app
>> from .models import tableName
>>
>> Thanks and Regards
>> Lakshyaraj Dash
>>
>> On Sun, Aug 28, 2022, 04:48 Javier L. Camacaro  
>> wrote:
>>
>>> Do i need to repeat the models for each app?, Can I use same model for 
>>> all the apps in my project?
>>>
>>>
>>> I'm a new a DJango programmer, sorry for that
>>>
>>> Thanks!
>>>
>>> -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/d5d42018-14db-42dc-b682-fce739950eb0n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
>> 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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAF7qQgBhxbKtb7SOSqMom2GsBNKj8K1xKT_CYTVsdmqB8hGTHw%40mail.gmail.com
>>  
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d42ae874-bf19-41fa-bbad-d1fc037460e5n%40googlegroups.com.


Re: How to use same Models for all apps?

2022-08-27 Thread Samuel Alie Mansaray
Am new in django framework, am get problem with the new version of django
by adding apps and import modules.

On Sat, 27 Aug 2022, 23:55 Lakshyaraj Dash, 
wrote:

> Ya sure you can use the same models throughout your project. If you're i a
> different app then import statement will be like
> from appName.models import tableName
> else if you're in the same app
> from .models import tableName
>
> Thanks and Regards
> Lakshyaraj Dash
>
> On Sun, Aug 28, 2022, 04:48 Javier L. Camacaro 
> wrote:
>
>> Do i need to repeat the models for each app?, Can I use same model for
>> all the apps in my project?
>>
>>
>> I'm a new a DJango programmer, sorry for that
>>
>> Thanks!
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/d5d42018-14db-42dc-b682-fce739950eb0n%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAF7qQgBhxbKtb7SOSqMom2GsBNKj8K1xKT_CYTVsdmqB8hGTHw%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAEwWnxdUvF79JvgZwG6N2TnY3_YS1CsvLSnVkaWKc-JtbfQdw%40mail.gmail.com.


Re: How to use same Models for all apps?

2022-08-27 Thread Lakshyaraj Dash
Ya sure you can use the same models throughout your project. If you're i a
different app then import statement will be like
from appName.models import tableName
else if you're in the same app
from .models import tableName

Thanks and Regards
Lakshyaraj Dash

On Sun, Aug 28, 2022, 04:48 Javier L. Camacaro 
wrote:

> Do i need to repeat the models for each app?, Can I use same model for all
> the apps in my project?
>
>
> I'm a new a DJango programmer, sorry for that
>
> Thanks!
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d5d42018-14db-42dc-b682-fce739950eb0n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF7qQgBhxbKtb7SOSqMom2GsBNKj8K1xKT_CYTVsdmqB8hGTHw%40mail.gmail.com.


Re: How to use same Models for all apps?

2022-08-27 Thread Ryan Nowakowski
You can use a model from one app in other apps. Simply import it in the apps 
where you need it. 

On August 27, 2022 5:43:40 PM CDT, "Javier L. Camacaro" 
 wrote:
>Do i need to repeat the models for each app?, Can I use same model for all 
>the apps in my project?
>
>
>I'm a new a DJango programmer, sorry for that
>
>Thanks!
>
>-- 
>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 view this discussion on the web visit 
>https://groups.google.com/d/msgid/django-users/d5d42018-14db-42dc-b682-fce739950eb0n%40googlegroups.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/73650ACB-95FB-4727-A1B7-893B0812356C%40fattuba.com.


How to use same Models for all apps?

2022-08-27 Thread Javier L. Camacaro
Do i need to repeat the models for each app?, Can I use same model for all 
the apps in my project?


I'm a new a DJango programmer, sorry for that

Thanks!

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d5d42018-14db-42dc-b682-fce739950eb0n%40googlegroups.com.