How to set up the bike in django?

Want to find out how the admin and other apps out of the box and in this regard you have any questions
1) is it possible not to use the solution out of the box Django that is a bike
2) can't be a spy how to implement these solutions for example the admin panel to create it again)
3) I think if the answer to 1 and 2 question then it makes no sense but still I ask what is the algorithm for creating the admin from scratch on the basis of Django

*Yes I know about flask, but to learn a new framework while there is no desire, want to understand django
April 4th 20 at 00:38
3 answers
April 4th 20 at 00:40
Solution
1. Possible, but not necessary
2. All django code is open, there is a code admite, but you did not do.

It is unclear why you velosipedit solution out of the box, for a start, just learn how to create sites using the features of django.
and what would you recommend to read or watch to overpower this code?) - vanessa17 commented on April 4th 20 at 00:43
@vanessa17, at least one book you have read, understood how to work with OOP in python? - herminia_Beier commented on April 4th 20 at 00:46
April 4th 20 at 00:42
  1. Can. I'm not using Django admin panel, did you interested on React
  2. Find an example of any application to React on Github and there any example app with django-rest-framework
  3. The good, you have to use the standard Django-admin, if your site in Django (because it saves a lot of time), but if you decided to make your (e.g., React), then write an API using django-rest-framework admin panel and write itself to React, which would this API interact.
here's just a small problem, it's not for beginners. - herminia_Beier commented on April 4th 20 at 00:45
@herminia_Beierpossible. But the problem is Django-admin is that when you want something special, start with either severe crutches, or eventual rejection of it. - Alisha commented on April 4th 20 at 00:48
@Alisha, it's not really a problem, this is a natural consequence of what she needed. The question is different, the TC wants to poweleit to understand how to do the admin, but for me, you have to do after I learn how to work properly with Django. - herminia_Beier commented on April 4th 20 at 00:51
@herminia_Beier, so using Django-admin can't learn to do the admin yourself, isn't it? - Alisha commented on April 4th 20 at 00:54
@Alisha, no, I'm not talking about "using Django-admin", but about learning to use the framework, all of its parts. - herminia_Beier commented on April 4th 20 at 00:57
@herminia_Beier, well, Yes, in this case it is better to poke the standard admin panel. - Alisha commented on April 4th 20 at 01:00
@pygame, well as it say to do this:
1) save the data of the form fields in localStorage of the browser until the form seismicity successfully (without errors). To be able to close the browser to open and continue filling out the form.
2) Multiple choice of pictures (m2m) to a certain entity (previewname, a pager, etc. - the standard list is no good for obvious reasons)?
3) Form with a field to build a tree list by dragging blocks from the Toolbox on the same page. And in this panel there are buttons, clicking on which opens a popup to create such blocks. When you delete a block of wood, he returned back to the bar.

At the same React to spell it without problems. - Alisha commented on April 4th 20 at 01:03
@Alisha,
But the problem is Django-admin is that when you want something special, start with either severe crutches, or eventual rejection of it.

So there is documentation for the admin Jangi, the first two paragraphs and say that it is not a full admin panel for all occasions, and in fact a tool for working with models. And if someone wants something larger, it is easier to write all your (your view function)
https://docs.djangoproject.com/en/3.0/ref/contrib/... the first two paragraphs. - macie.Auer41 commented on April 4th 20 at 01:06
April 4th 20 at 00:44
It seems to me that people consistently don't understand why would anyone need the admin panel in Django. Django is built around its own ORM. This abstraction layer allows to work with database net SQL. The problem arises when (in the process of development or operation) I would like to direct access to records in the database.
The admin panel is a way of organizing such a "direct" (quotes because it is still using the ORM) access to records. Plus it is possible to hang some tools that the developer would like to have on hand. Forced to reset the user password, remove some number of entries, etc. Pure programmers ' chips, which are demanded in the development process.
The whole structure revolves around the fact that the developers of the admin didn't know what exactly you will have the structure of the database. Therefore, there is very much built on magic. But a General solution will never replace dedicated.

If you have to give (favourites) users access to some admin's features for management of the site - email the admin panel specifically for them.
It is not necessary to use django.contrib.admin, don't need it to modify or replace. Admin Jangi separately - flies separately other.

Look at https://github.com/oscarmlage/django-cruds-adminlte for example... And the usual admin template and most model operations are automated.

Look at djangopackages.org something. By the way, a large part of the Admin Interface, or just skins that customize the appearance, or abandoned.

Find more questions by tags Django