Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap3 cannot load template tags #19

Closed
gcperrin opened this issue Oct 2, 2013 · 11 comments
Closed

bootstrap3 cannot load template tags #19

gcperrin opened this issue Oct 2, 2013 · 11 comments

Comments

@gcperrin
Copy link

gcperrin commented Oct 2, 2013

Trying to migrate from bootstrap_toolkit to bootstrap3, both released by you. Bootstrap_toolkit works perfectly, however when I download bootstrap3, add to settings.py and include the appropriate tag { load bootstrap3 } I get a Django error that states bootstrap3 is not a valid tag library. Checked the directory /usr/local/lib/python2.7 /distpackage and bootstrap3 is in the correct spot, along with the old bootstrap_toolkit. Am I missing something?

Best,
Greg

@swizzard
Copy link

swizzard commented Oct 2, 2013

Do you have bootstrap3 in your installed_apps?

On Wed, Oct 2, 2013 at 6:43 PM, gcperrin notifications@github.com wrote:

Trying to migrate from bootstrap_toolkit to bootstrap3, both released by
you. Bootstrap_toolkit works perfectly, however when I download bootstrap3,
add to settings.py and include the appropriate tag { load bootstrap3 } I
get a Django error that states bootstrap3 is not a valid tag library.
Checked the directory /usr/local/lib/python2.7 /distpackage and bootstrap3
is in the correct spot, along with the old bootstrap_toolkit. Am I missing
something?

Best,
Greg


Reply to this email directly or view it on GitHubhttps://github.com//issues/19
.

@gcperrin
Copy link
Author

gcperrin commented Oct 3, 2013

Yea absolutely, under installed apps as 'bootstrap3' per your GitHub documentation.

On Oct 2, 2013, at 5:06 PM, Sam Raker notifications@github.com wrote:

Do you have bootstrap3 in your installed_apps?

On Wed, Oct 2, 2013 at 6:43 PM, gcperrin notifications@github.com wrote:

Trying to migrate from bootstrap_toolkit to bootstrap3, both released by
you. Bootstrap_toolkit works perfectly, however when I download bootstrap3,
add to settings.py and include the appropriate tag { load bootstrap3 } I
get a Django error that states bootstrap3 is not a valid tag library.
Checked the directory /usr/local/lib/python2.7 /distpackage and bootstrap3
is in the correct spot, along with the old bootstrap_toolkit. Am I missing
something?

Best,
Greg


Reply to this email directly or view it on GitHubhttps://github.com//issues/19
.


Reply to this email directly or view it on GitHub.

@dyve
Copy link
Member

dyve commented Oct 3, 2013

Which Django version?

Op 3 okt. 2013 om 05:27 heeft gcperrin notifications@github.com het volgende geschreven:

Yea absolutely, under installed apps as 'bootstrap3' per your GitHub documentation.

On Oct 2, 2013, at 5:06 PM, Sam Raker notifications@github.com wrote:

Do you have bootstrap3 in your installed_apps?

On Wed, Oct 2, 2013 at 6:43 PM, gcperrin notifications@github.com wrote:

Trying to migrate from bootstrap_toolkit to bootstrap3, both released by
you. Bootstrap_toolkit works perfectly, however when I download bootstrap3,
add to settings.py and include the appropriate tag { load bootstrap3 } I
get a Django error that states bootstrap3 is not a valid tag library.
Checked the directory /usr/local/lib/python2.7 /distpackage and bootstrap3
is in the correct spot, along with the old bootstrap_toolkit. Am I missing
something?

Best,
Greg


Reply to this email directly or view it on GitHubhttps://github.com//issues/19
.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

@adriaant
Copy link

adriaant commented Oct 3, 2013

You have to put the following in your template:
{% load bootstrap3 %}
So, with % markers, you only have { load bootstrap3 }

@gcperrin
Copy link
Author

gcperrin commented Oct 3, 2013

I know about the {% %}, sorry for the typo. I'm not new to Django. Here is an exact screenshot of the error.
![screenshot from 2013-10-02 16 37 56]

(https://f.cloud.github.com/assets/488909/1262346/beb0d2ec-2c3d-11e3-91f1-13cafc65e21c.png)

@gcperrin
Copy link
Author

gcperrin commented Oct 3, 2013

Solved. My local copy of the website is run on Apache with mod_wsgi in Daemon mode. Typically, this means there should be no server restarting for changes to take affect (vs. embedded mode, where each time the server must be restarted to see effective code changes). Never had to do this with bootstrap_toolkit, but I found gracefully restarting my Apache server allows the boostrap3 changes to take effect. Not sure why this is, will post if I find a solution. Thanks for the time.

Best,
Greg

@gcperrin gcperrin closed this as completed Oct 3, 2013
@swizzard
Copy link

swizzard commented Oct 3, 2013

How/where did you install bootstrap3? Maybe it's not in your path?

On Oct 3, 2013, at 11:09 AM, gcperrin notifications@github.com wrote:

I know about the {% %}, sorry for the typo. I'm not new to Django. Here is an exact screenshot of the error.
![screenshot from 2013-10-02 16 37 56]

(https://f.cloud.github.com/assets/488909/1262346/beb0d2ec-2c3d-11e3-91f1-13cafc65e21c.png)


Reply to this email directly or view it on GitHub.

@dyve
Copy link
Member

dyve commented Oct 3, 2013

I noticed in the screenshot that bootstrap_toolkit is/was in your search path, should be bootstrap3. I assume Apache restart etc has solved this.

@swizzard
Copy link

Sam Raker has invited you to join Feedspot - A place to read everything you need to stay informed and live and work smarter.\n\n
http://www.feedspot.com/r_adeff0c66e2c#monthlycode \n\n

Feedspot is a place to organize and read all the news sites and blogs you visit in one place, where keeping up with your favorite sites is as easy as checking your email.\n\n 

Start using Feedspot today to get a complimentary month of Feedspot Premium, with even more of the features that make Feedspot great. And just for trying Feedspot, your friend will get rewards too.\n\n

- The Feedspot Team

@dyve
Copy link
Member

dyve commented Feb 10, 2014

@swizzard Could you remove the Github mailing address from your lists? Thanks!

@swizzard
Copy link

Oh, sorry about that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants