My project consists of two versions of the same thing. For example version 1 is Freshman and version 2 is Sophomore. To avoid redundancy I am using the same templates and views as the implementation in both the version is not very different. The only difference in this site would be in the urls. Such that
localhost:8000/freshman/computer-science
localhost:8000/sophomore/computer-science
The user of my site can switch to any version of the site by just clicking on a button namely Freshman or Sophomore. I am confused about HOW TO implement such a method through which I would not have repeat myself and can achieve the functionality in a pythonic way.