i am using pyramid in views.py
from pyramid.response import Response
from pyramid.view import view_config
import os
import uuid
import shutil
import hashlib
from .service.fun import *
def forservo():
return "HAppy HERE"
@view_config(route_name='home',request_method='GET')
def home(request):
return Response('html')
in fun.py
from ..views import *
print forservo()
it throws error saying name 'forservo' is not defined
folder structure is
myapp
myapp
service
__init__.py
fun.py
__init__.py
views.py