[Answered ]-Django view showing error in virtual environment

2πŸ‘

βœ…

In your __init__.py try to use local imports instead, this may be a problem if you are using python3 in your virtual environment.

from .VehicleView import *
from .DashboardView import *

Besides file and module names in python should follow snake case convention, only classes should use CamelCase.

from .vehicle_view import *
form .dashboard_view import *
πŸ‘€hspandher

Leave a comment