As you can see, delete an article now isn’t a function of django-rstblog
.
So if a user wants absolutly to erase an article he/she must ask you to do
it, as site master.
How can you do it? With two steps:
- erase the record about the article;
- then delete the relative file in filesystem.
About the first step: be sure to delete the right record. Double check
title and filename of the article.
If you have only the title and/or the slug, you can retrieve the filename
reading it in the record of the article as in the image below (it is the field
titled File):
About the second step. It’s required because in case of Articles table reconstruction
(see below) the presence of the articles file recreates its record …
This is another operation not allowed to the author. In case of a request
from the author to change an article filename you must:
- change the filename in the record of the article (see the previous image);
- rename the file of the article in the server filesystem;
- tell the author to rename his/her filename in the authoring PC filesystem.
If needed it is possible force a complete Articles table reconstruction.
If you call URL .../blog/reset-article-table
, django-rstblog
will
erase all records in Articles table, then it will rebuild it reading
all files present in directory .../contents/articles
.