thanks yes I am doing day by day to improve python and django both.
On Monday, May 21, 2018 at 11:05:56 PM UTC+5, Daniel Germano Travieso wrote:
>
> Hello Asif!
>
> To use a method from one app in another app would require you to import
> the app's module (using from - import statements),
thanks it is resolved.
On Tuesday, May 22, 2018 at 12:18:49 AM UTC+5, Coder Dude wrote:
>
> Suppose your function is in accounts.models . And you want to import in
> VV.views
>
> In views.py of VV,
> Write,
> from accounts.models import foo
--
You received this message because you are
Suppose your function is in accounts.models . And you want to import in VV.views
In views.py of VV,
Write,
from accounts.models import foo
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails
Hello Asif!
To use a method from one app in another app would require you to import the
app's module (using from - import statements), allowing the interpreter to
know that the function from one scope is available on another.
In a serious note, I recommend that you first familiarize yourself
I am trying to import function wrote in one of app in a project to import
that function in other app in same project.
like I have one project and two apps.
Project1
Project1
accounts app (function written in this app)
VV app (wants to utilize in this app)
I am
5 matches
Mail list logo