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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -