Skip to content

nogD3V/blog-posts-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SIMPLE DJANGO BLOG

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


BACKEND STACK:

• Language: Python with framework Django.
• Database: SQLITE3 (Django native database).

FRONTEND STACK:

• Markup language: HTML5.
• Style Language: CSS3 WITH BOOTSTRAP.

DEPLOY:

• We used GIT to version the code, GITHUB to store and PYTHONANYWHERE to deploy the WEB APP using git.

GOAL WITH THIS REPO:

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!


ERRORS

We had this problem that were resolved with a alternative:

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.

EXPLANATION:

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.

ALTERNATIVE SOLUTION:

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published