Tag Archives: Django


how to reset django or create another superuser.

If you know your username (for example : admin) then use this:

Also You may try through console to see and chenge the password: Use bash console and start the django shell:

Now use this django script:

If you don’t know the username then you need to create another one.

XSS sanitization on django – variables and templates

XSS attacks allow a user to inject client side scripts into the browsers of other users. Using Django templates protects you against the majority of XSS attacks. To do this you need to protect your templates this code:

If you need to disable auto-escaping for an individual variable, then use the safe filter:

Read More »

python 3.2 and django 1.4 – installation

Although most of us prefer the python version 2.6, today I tried to install the latest version of django and python 2.3.2 . Make a new folder , named test-dj .

On the official site, I got the two archives:

I will start with the installation of python. We unzip the archive:

Read More »