How can I clear my database of unwanted content?

asked 14 Apr '14, 16:08

cgrzemba's gravatar image

cgrzemba ♦♦
6091318
accept rate: 9%


start manage shell:

$ ./manage shell
>>> from forum.models import Users,Tag
>>> Users.objects.filter(username='spammerusername').delete()
>>> Tag.objects.filter(name='financial-rubbish').delete()

for update the knowledge of webserver restart apache.

permanent link

answered 14 Apr '14, 16:13

cgrzemba's gravatar image

cgrzemba ♦♦
6091318
accept rate: 9%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×3

question asked: 14 Apr '14, 16:08

question was seen: 94,813 times

last updated: 14 Apr '14, 16:13

powered by OSQA