Extending site to new template causes unrecognized style formats - django

I am new developing both django and bootstrap. Is it possible to use both for templates?
I have a full html developed site with bootstrap that I want to use as base.html but when I extend it from another template it doesn't recognize any style format.
Is there a way to solve this problem? I have already installed django-bootstrap with pip.
My project has:
Project
Auth
templates / inside : registration_folder / base.html
static / inside : css / js / img
manage.py
I am using django-registration thats why I have the registration_folder containing registration_form.html
In the registration_form.html I extend base.html and the form appears fine but the whole site has no style format. I have bootstrap files inside the corresponding folder from 'static'.
In base.html under head I have:
and setings.py : STATIC_URL = '/static/'

From experience: Yes. I've used Django as a framework and bootstrap as the frontend.
That being said, are you sure all of your links to the CSS and JS files are correct? same with the Django installation on the server? Because from experience, all I had to do was extend the base (assuming you know how extending works in django).

Related

How to render sphinx static files in django view

I have a sphinx documentation and django projet in two separate folder. When I try to render the sphinx template in my django projet, I loose all the css style and js link.
Is there a way load all dependencies?

Django CMS CSS styling

so I’m working with Django and I’m trying to figure out how in the edit the CSS using nothing but Django CMS?
Is there a way?
Anything would be helpful.
Django CMS does not have any inline editing features of CSS or any other markup. This is by design and it is not something like Wordpress.
To edit CSS you will need to create your own css files as part of your project.
If you need to add eg an HTML or CSS snippet into a page, there's an offical plugin for that 👌 - https://github.com/django-cms/djangocms-snippet
And as #Aiky30 said, the global CSS code is better to place in static in accordance with django best practices.

A Progressive Web App in the Django, where i put the files?

I have two files for my PWA, service-worker.js and manifest.json, but i not know or to put in the django project, at the root of project ?
There is no tutorial that explains well for Django...
This is content of service-worker.js :
https://paste.ee/p/c5Fme
This is content of manifest.json :
https://paste.ee/p/LKxOa
And in the template base.html : https://paste.ee/p/bj5wz
In terms of content, everything is ok?
so.. i need help for the place of files. Thanks guys
Put it inside of app templates folder, Ex: yourapp/templates

Cannot update svg file(s) for saleor framework + python + django

I would like to know how should i could manage to change the static files use by the saelor framework. I've tried to change the logo.svg but failed to do so.
I'm still learning python program while using the saleor framework for e-commerce.
Thank you.
Here is how it should be done. You must put your logo in the saleor/static/images folder then change it in base.html file in footer and navbar section.

django-registration and CSS files

I have recently plugged in the django-registration module to enable user signup and validation. However, when I do an extends base.html, my CSS objects are missing.
Does anyone know why this happens? I have everything under the registration folder and my media files are in the folder /media. Everyother page works (i.e displays the CSS objects properly), except the pages from /registration.
Any help would be much appreciated.
Pardon me if this is a basic question: new to django here.
Check that you are extending the correct "base.html" by doing a show source in the browser.
Some of the sample templates come with their own base.html file to show you how it's done and your registration module may be including that by mistake.