tolomea / django-data-browser

Django app for user friendly querying of Django models
BSD 3-Clause "New" or "Revised" License
350 stars 28 forks source link

Creating/displaying new model #28

Closed Dleau closed 3 years ago

Dleau commented 3 years ago

Hi, I'm (very) new to Django and to django-data-browser (which seems like an awesome project). I'm looking to create a new model from the baseline and add it to /data-browser. Right now, I see models auth.Group, auth.User, and data_browser.View. How could I go about doing this? Apologies if this is an easy question! Thank you for the help!

tolomea commented 3 years ago

The Data Browser is driven by the Django Admin, anything you see in the Admin is visible in the Browser. So to add a model to the Data Browser it just needs to be added to the Admin.

The official Django tutorial talks about the Admin here https://docs.djangoproject.com/en/3.1/intro/tutorial02/#introducing-the-django-admin

In general if you are new to Django I would strongly encourage you to work through the whole of the official tutorial from the start. It's not particularly long and it introduces all of the main features of Django.

Dleau commented 3 years ago

Thank you, this is very helpful. Enjoy the weekend!

tolomea commented 3 years ago

:)

I'm going to close this now, feel free to open another issue if you have other questions.