Re: how to import functions of app from the same project from other app

2018-05-21 Thread Asif Khan
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),

Re: how to import functions of app from the same project from other app

2018-05-21 Thread Asif Khan
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

how to import functions of app from the same project from other app

2018-05-21 Thread Coder Dude
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

Re: how to import functions of app from the same project from other app

2018-05-21 Thread Daniel Germano Travieso
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

how to import functions of app from the same project from other app

2018-05-21 Thread Asif Khan
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