Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Django framework in Python (Login Registration and Email Confirmation)

Hi, I am new to Django and need help using Django's built-in module for registration. Though, I only how to use the standard one, is there a way to customize the style with css?

Thank you for any help!
[Image: r48Ze34.gif]
Hello of course you can add some css, js ,and jquery. it'is possible to add some "static files" or simple add some css directly to you html template

like this ...if you want to add directly a css from a static file your html code will bes as something like this: (you need then to add your css file to "static/css/mystyle.css" and on the html page you need to add the classes where you need them...)


Code
<!DOCTYPE html>
{% load staticfiles %}
<html>
 <head>
   <meta charset="utf-8">
   <title>How to add a css file to your DJANGO</title>
   <link rel="stylesheet" href="{% static "css/mystyle.css" %}"/>
 </head>
 <body>
   <h1> Hello ! this page use a little CSS. </h1>
   <h2> for a nice view </h2>      
 </body>
</html>




You can also use bootstrapcdn if you want . Take a look at the "getbootstrap dot com", then look for bootstrapcdn at the "get started page" . then you may want to look for the different components you can use by clicking at "component " menu at top of the page. After you have clicked on component a new usefull menu will appear at the right side of the page

Hope it helps a little :)


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Release] by redoApr 3, 2026 01:38 AM 0 95 Apr 3, 2026 01:38 AM
Last Post: redo
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 632 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[Python] by NavTechSep 13, 2022 07:23 AM 9 291 Sep 13, 2022 07:23 AM
Last Post: еlixir