[Fixed]-Rookie questions : code structure ,writing my own admin/auth/registration from scratch , global functions and variables

1đź‘Ť

There are a lot of Django admin plugins that exist. Some might do everything you need or only require minor modification. If you still want to write your own from scratch I suggest you study a few of them to get ideas. Check out this page for a good list.

As for the specific things you want to accomplish those are more specific questions than “what is best” format. I suggest you try to implement it and open a new question when you run into trouble.

I will help you with the first question by saying I have never been a fan of two sites for frontend/admin and even Django admin agrees by name spacing everything under the url /admin so routes don’t collide.

Also the second, use the Django auth and simply extend it to do what you want. It ties into a lot more than you think. Admin/user accounts in the same table is not inherently a risk, separating actually requires more code which is where risk is introduced.

The last thing you want to do when adopting a framework is to immediately start throwing away huge parts of it. Try to get it to do what you want, then customize. I am sure you will find the framework to be malleable to your needs.

👤dotcomly

Leave a comment