Is it possible to create an end user site using Django admin?

I am very new to Django, never developing on it.

I am trying to create a site that has functionality available only to authenticated users (a typical corporate thing: for this discussion, let's say this is a private blogging platform).

The functionality I'm looking for is:

  • Users can create a new blog.
  • each user can belong to several groups: the user can only view / comment on the blog posts created by the member of the groups (s) to which he belongs.
  • Each user can change / delete only messages created by him.

As I see it, this is, in fact, a CRUD application with access control, and the administrator application has many built-in functions. Is it possible to develop this complete application using only the admin application (not as a prototype, as a solution for release quality), or should I look further (general views? ModelForms?)

I am trying to evaluate how long it will take (training + implementation), so your feedback can give me a good idea, in addition to teaching me the ways of this new Django world :)

Edit: in particular, one of my worries is permissions for every object / every line. Wiki django says that the permission system does not support this, so can I use the admin application?

+3
source share
3

. , , .

, - , .

. , .

, , "" .

  • "", .

  • admin.

, .

+2

, SVN Django has_add_permission, has_change_permission has_delete_permission ModelAdmin , . , 1.2 . , , django/contrib/admin/options.py Django, docstrings.

. , , , . , Django, - .

0

Django-Admin. , Django-Admin, , .

, , , , , bastardize, . , , - .

, , , .

0

Source: https://habr.com/ru/post/1727495/


All Articles