In this repo there's a simple django blog with some technologies.
The goal here was to know how django works, We didn't prioritize appearance here.
LINK: https://nogd3v.pythonanywhere.com
• Language: Python with framework Django. • Database: SQLITE3 (Django native database).
• Markup language: HTML5. • Style Language: CSS3 WITH BOOTSTRAP.
• We used GIT to version the code, GITHUB to store and PYTHONANYWHERE to deploy the WEB APP using git.
The real goal with this web app is to understand how django works, how to link templates with views, how to use a database, how to create a folder/files structure using Django. the knowledge gained here will be used in a much larger project!
erro: nogd3v.pythonanywhere.com/:1 Refused to apply style from 'https://nogd3v.pythonanywhere.com/static/css/blog.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
For some reason, deploying the web app was crashing the link of CSS file. I looked for some solutions, but no one helped:
• Edditing settings.py • Adding libraries on virtual environment. • And others solutions proposed by stackoverflow, etc.
The solution for now: We tried to style the .html without using a external CSS file. So, when the link was removed and we insert the tag style directly on .html, It worked. fyi: The error did not occur on the local machine! It might be a limitation deploying the app. I'm not sure if PYTHONANYWHERE was the problem, 'cause I didn't test in another server.