How to write a single view function to render multiple html from diferent urls path?

前端 未结 3 616
生来不讨喜
生来不讨喜 2021-01-24 13:24

I am trying to avoid self coping of views functions but have no idea ho to do it. My views have a minor differences and there is definitely a way to render html pages with a si

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-24 13:47

    If your site is completely static, you may consider using a static framework, like Jekyll.

    This way you don't have to depend on the host server's features, and avoid issues that may arise when you use a complex framework like django.

提交回复
热议问题