# Views.py in xblock, adding url to new html file in xblock-edx

**URL:** <https://discuss.openedx.org/t/views-py-in-xblock-adding-url-to-new-html-file-in-xblock-edx/4988>\
**Category:** Development\
**Tags:** how-to\
**Created:** [May 20, 2021, 1:15pm UTC](https://discuss.openedx.org/t/views-py-in-xblock-adding-url-to-new-html-file-in-xblock-edx/4988 "2021-05-20T13:15:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ritay](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@ritay](https://discuss.openedx.org/u/ritay)\
**Post date:** [May 20, 2021, 1:15pm UTC](https://discuss.openedx.org/t/views-py-in-xblock-adding-url-to-new-html-file-in-xblock-edx/4988/1 "2021-05-20T13:15:35Z")

</div>

Hey, I am new to Xblocks, but used Django before.  
I want to ask if, I can use a xblock app like a djano app by having a file of all views.py and url.py file and one class of myxblock.py  
As suppose, we have myxblocks.html and new.html file in the static folder inside the myxblock directory, and I want to go to new.html, by clicking a button which will be on myxblocks.html .  
How to add the url of the new.html inside myxblock.py.  
Thanks a lot!
