No it is not necessary to know html/css, if you are learning Django/Flask . But it depends on which kind of team you are working. If have a large number of people working in your team, you can give the work related to html/css to a specific person specialized in html/css.