I have doubt with my modules that i created

Hi,
I am creating a sidebar modules using python so
i created three modules named as utils side and new
in my utils i created the reusability code and
in the side i used that reusability code to register some data
for this point it is good but whenever i am in the third module named as new
if i inserted new data to the side it should add the data to the sidebar
and i am lost in it i can’t find the good solution
tell me if there anything

def SidebarCreation(request,new_fields):
        fields=[
        {
            "icon_url":'Home.jpg',
            "url":'',
            "Text":'Home',
            "position":10,
        },
        {
            "icon_url":'Device_status.png',
            "url": '/data/show-masters-data/',
            "Text":'Device_status',
            "position":20,
        },
  ]
    all_fields=fields+new_fields
    processed_fields=registering_menus(all_fields)
    return render(request, 'data/index.html', {'fields': processed_fields})

this code is in side
and

fields=[    
    {
        "icon_url":'Home.jpg',
        "url":'',
        "Text":'Home',
        "position":50,
    },
    {
        "icon_url":'Device_status.png',
        "url": '/data/show-masters-data/',
        "Text":'Device_status',
        "position":60,
    },
]
SidebarCreation(fields)

i tried to import this from side and using it in the new but the data is not adding
can anyone help me on this topic…

Please format your code in code blocks

Side/views.py

def SidebarCreation(request,new_fields):
    fields=[
    {
    “icon_url”:‘Home.jpg’,
    “url”:‘’,
    “Text”:‘Home’,
    “position”:10,
    },
    {
    “icon_url”:‘Device_status.png’,
    “url”: ‘/data/show-masters-data/’,
    “Text”:‘Device_status’,
    “position”:20,
    },
    ]
    all_fields=fields+new_fields
    processed_fields=registering_menus(all_fields)
    return render(request, ‘data/index.html’, {‘fields’: processed_fields})

this is going to show the all data to the html file thats be taken care

new/views.py

fields=[
  {
    “icon_url”:‘Home.jpg’,
    “url”:‘’,
    “Text”:‘Home’,
    “position”:50,
  },
  {
    “icon_url”:‘Device_status.png’,
    “url”: ‘/data/show-masters-data/’,
    “Text”:‘Device_status’,
    “position”:60,
  },
]
SidebarCreation(fields)

now my question is that i need to add these fields that i created in the new/views.py to the Side/views.py file then in that way whenever i want to add any fields other than mandatory i can add through this
this is my requirement
can you help on this

Side Note: When posting code here, enclose the code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your code properly formatted. (I have taken the liberty of correcting your original posts. Please remember to do this in the future.)

Thanks and
i will do that for sure
can you help me on this topic
@KenWhitesell

I’m not sure I’m following what you’re trying to describe here.

I would need to see more about what these modules are, how you’re attempting to use them in your views, and how you’re building your pages.