-
Notifications
You must be signed in to change notification settings - Fork 0
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
Problem with burger simbol for folding menu in Django navbar #1
Comments
And the include in the template? |
So first of all you need to declare that you want to use bootstrap in the settings.py:
Then run once manually:
When you go with this settings it should download the files into:
Try to check whether the files are downloaded and whether they are accessible from the browser by url. Afterwards there should be the include in your template:
|
Sorry that was my mistake because I had to rename the package some time ago:
|
Ah OK thanks!
|
You have still a typo in boostrap ;-) . I just tried at my machines and I do not get this error... do you have copied it somehow that you have no access to the files from the python (or the user which is running python)? Do you have the folder providers? |
Sorry I need new glasses...I corrected my booo mistake
|
OK just read the last part of your comment |
Hi again, |
Good news... it was not your mistake, there was a bug in the |
Hi, |
Well there are two settings:
|
Hi again,
|
I would not recommend to set another absolute path but anyway it should work.. what did you put as a option in |
Hi there, |
Okay then it is clear that it is not working. Try like this:
|
OK, made that change, thanks, |
well is there something in the folder? |
If you mean in the static folder, yes, |
Good.. but it should work with the css and js folder and include them in the template? The other files are just files which are included and not neccesary to run (and when they are necessary I can change the config to copy them as well) |
OK, thanks for your feed back, |
Can you post your include of the files in header? Should be something like this:
|
I am doing something wrong with the post just above, it does not seem to send all the info I put in |
Learning how to use github, sorry, |
I am trying to cite the code and even with |
Just paste it in and mark the text and press the code button above in the editor then it is like escaped.. For steping forward: The plugin correctly supports only to download the files and not to link them in the template. So the procees how you embed your files is the same like for any static folder / file . So I would recoomend that you hard code the url of the min and js file which you want to include and make sure that this files are properly loaded. |
OK, thanks, |
Sorry if all my questions are simple |
no I guess not... a folder without name?.. I only see that you get a 404 and that you url looks not very healthy:
From the absolute url you sent before it should be: |
The bootstrap folder is inside the folder without name on the left |
So I wonder if I could simply rename with whatever name that folder and put it in the full path |
Sure simply rename.. can you unfold or just make a small summary what is in each folder... but when you have no bootstrap folder then you also have to remove the bootstrap folder from the url.. it is simple like a img.. you need the path to the js and the css file. everything else is bootstrap loading |
OK.. then put the path together with stf included and it should be work to load in the template / browser? |
The problem I see using absolute path is that after if I move the project somewhere else I would have to go in and modify it manually each time |
So I used:
|
And it found the files no problem |
Now I need to figure out the js and css files I need to get the folding/unfolding list and the burger icon |
Well, I guess you should only use min or not min for css, not both. Well as I said I do not know bootstrap very well. Just double check that in the Browser Network are no 404 because bootstrap might load additionally files in background. Else, I do not know where the error appears, and I guess it is not related to this package anymore (hopefully). Just read through how initialize.. hope you will manage ;-) |
Ok I will try with iwth only one of the 2 and see which one works out! |
Hi there,
I have done some Django projects in the past and on a project right now I am trying to include the burger symbol for a folding unfolding menu in the nav-bar using bootstrap. It didn't work so I tried with django-autostatic-libs and also including the CDN for bootstrap (css &js), and also downloading the css and js files in the static folder. Did not work properly...any recommendation?
For the django-static-libs I included it in the setting.py:
My
settings.py
is like that:The text was updated successfully, but these errors were encountered: