python - How can I added some sub html project to a django project -
now have django project , small html project (in fact, html5 games). how can added html site django project?
for each html project has ref lot of css, img , javascript in own folder, , different html site in different folder.
hence, can not this:
t = get_template('htmlprojectfolder/index.html') html = t.render(context()) return httpresponse(html)
i think problem is:
"how can jump html index page static files correct linked?" (clealy, can not read index page template file.)
thank help!
i think best way add static, non-django files shall accessible via django project add files staticfiles_dir
. can read more static files here in django documentation.
another, , possibly better, way handle let webserver serve static files separately django.
Comments
Post a Comment