python - Using bootstrap and django -


i trying bootstrap working in django project , followed tutorial here did not work. when visit local project in browser shows blank page 4 blue links. not exaclty expecting. in pycharm (my ide) tells me have unresolved refrence static_url in template. think problem placing bootstrap in project , defining in settings wasnt enough. ideas?

sorry, here how project set up. main_project/ app_1, app_2 , media/, templates/, main_project/ should put boostrap under first main_project, or second

also here settings in case matters.

static_root = os.path.join(site_root, 'static_files')  # url prefix static files. # example: "http://media.lawrence.com/static/" static_url = '/static/' 

kevin here, author of article python diary. since posted tutorial have created other methods of enabling bootstrap in django project, including handy project template, can downloaded here:

http://www.pythondiary.com/templates/bootstrap

i have started project on bitbucket since has django bootstrap theme app super easy use, add "installed_apps" , extend whichever template original bootstrap website, such starter.html among others choose from. of course can spin own bootstrap theme well. try actively update , looking more suggestions make "django goto app" developers looking use bootstrap in project, bitbucket repo can found here:

https://bitbucket.org/kveroneau/django-bootstrap-theme

hope helps else may stumble upon stackoverflow page.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -