Hi Sourav,

> I require some help in the issue given here
> <https://github.com/NeuroVault/NeuroVault/issues/420>.We wish to implement
> a closing account feature in a Django Website.So far, I know that the
> corresponding database entry for the user must be deleted from the
> database.But I require some help in making it possible.

Can you tell us what exactly is giving you trouble?

Some general hints:

- To delete an object from the database, you can call something like 
  ``MyModel.objects.get(username=theusername).delete()``

- There also is a generic class-based view (CBV) for deleting objects:
  
https://docs.djangoproject.com/en/1.9/ref/class-based-views/generic-editing/#deleteview

- Of course, you must protect the feature, such that users cannot delete
  other users' accounts.

Have fun!
René

-- 
René Fleschenberg

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2477287.8OTnM9ynRZ%40rex.
For more options, visit https://groups.google.com/d/optout.

Reply via email to