Saturday, August 27, 2022

Re: How to use same Models for all apps?

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

No comments:

Post a Comment