Good news!
I finally managed to resolve my CSS customization issue yesterday. Through pointed and dedicated Google searching, I stumbled upon a StackExchange question that addressed my problem succinctly. Earlier, my primary issue had been that I didn't know where to download the Bootstrap CSS and Javascript files in the context of my Django directory.
And so this was how I learned about static files.
As I understand them, static files refer to any images, CSS, or Javascript files that a Django web app may need in addition to its base Python scripts. To create a new, custom CSS document, I had to create a static folder within my 'projects' app folder in my website's directory.
If you'd like to see for yourself, please check out my GitHub!
After placing all the appropriate Bootstrap files within this new folder, I then had to modify my settings.py file in my project's parent directory.Here, I added the following code snippet to the static files section at the bottom of the script:
STATICFILES_DIRS = ( os.path.join("projects", "static"), )
With this done, I then simply loaded my static files at the top of my base.html using {% load staticfiles %} and linked to my custom CSS document using .
Finally figuring this out what a major relief, and I'll now be able to customize the look and feel of my website as I continue developing it.
Stay tuned for more exciting news! Joe
Hello!