how to register model in admin django

One of the most powerful parts of Django is the automatic admin interface. It reads metadata from your models to provide a quick, model-centric interface where trusted users can manage content on your site.   Adding your models to the administration site from django.contrib import admin # Register your models here. from .models import Article, Category admin.site.register(Article) admin.site.register(Category)   Let’s add…

Continue Reading →

How people on the wheelchair feel?

Whenever any physically fit human sees a person on a wheelchair especially a young one…the immediate question that comes in their mind is what must have happened to them ? Although it okay  to think about this yet it is wrong to go and ask them or their family about the same. As I am a wheelchair user myself I…

Continue Reading →

Maria Teresa Pratico

My name is Maria Teresa Pratico and I’m a divorced mother of two teenage boys. I’m currently in remission from being diagnosed with Complex PTSD and I used to struggle with dissociative episodes at times related to flashbacks from my past traumas. I have overcome an eating disorder stemming from my extensive background in many forms of dance. I was…

Continue Reading →

The art of allowing love is magic

Oh love, what a complicated and fickle pursuit it can be! My dear readers I have come into such an abundance of love’s pure energy flow lately and so far my new year is as bright and shiny as my spirit is. Last Monday I experienced third vision, out in nature, which I just love. Awe inspiring and breathtakingly beautiful!…

Continue Reading →

Mistakes are the mirror of righteousness

Everyone in this universe in someway or the other must have committed some mistakes😰 Frankly, i too have bundle of mistakes in my life and I still do! But I don’t regret having made them as I hadn’t. Unless and untill  I didn’t them I wouldn’t have known how to make things right…. We breathe in past ! Many people…

Continue Reading →

How to reset Django admin password?

Open console using. python manage.py shell then use following script in shell from django.contrib.auth.models import User User.objects.filter(is_superuser=True) will list you all super users on the system. if you recognise your username from the list: usr = User.objects.get(username=’your username’) usr.set_password(‘raw password’) usr.save()        

Continue Reading →

How to download Files from the Web with the requests Module

The requests module lets you easily download files from the Web without having to worry about complicated issues such as network errors, connection problems, and data compression. The requests module doesn’t come with Python, so you’ll have to install it first. From the command line, run pip3 install requests. Next, do a simple test to make sure the requests module…

Continue Reading →