I am trying to import a module in my views.py as
from django.shortcuts import render
# Create your views here.
from viewcreator import Builder
import json
d
In your INSTALLED_APPS
INSTALLED_APPS = [
...,
'HdfsstatsConfig',
]
in your views.py
from .viewcreator import Builder
UPDATE, DJANGO IMPORTS
There are 3 ways to imports module in django
1. Absolute import: Import a module from outside your current application Example from myapp.views import HomeView
2. Explicit import: Import a module from inside you current application
3. Relative import: Same as explicit import but not recommended
from models import MyModel