Andres Urrego Angel
Andres Urrego Angel

Reputation: 1932

Django not reading my HTML with CSS

I'm not a web developer but however, I'm in a project where we want to deploy a Django web app based in HTML and CSS front end. We have deployed an HTML code that looks like :

enter image description here

Unfortunately, when we deploy this in a login template for Django the fancy model is screwed up we get:

Check out my code here: https://jsfiddle.net/Andres/hmpbkc9n/#

enter image description here

Workaround:

I have just to add the file .css into the path project\Lib\site-packages\django\contrib\admin\static and then I run the command:

 python manage.py findstatic css/login.css --verbosity 2 

and I got:

enter image description here

However, it's not working yet.

Upvotes: 0

Views: 87

Answers (1)

Sachi Tekina
Sachi Tekina

Reputation: 1810

Static files such as CSS, JS, and images should be placed accordingly based on the STATIC setting in your settings.py then perform a collectstatic command.

Upvotes: 2

Related Questions