mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-01-31 03:34:13 +03:00
Moved the admin plug down to the proper section
This commit is contained in:
parent
443b5eaafc
commit
701611c246
|
@ -84,17 +84,6 @@ Add ingredients as INSTALLED_APPS:
|
|||
'cookbook.ingredients',
|
||||
]
|
||||
|
||||
Register models with admin panel:
|
||||
|
||||
.. code:: python
|
||||
|
||||
# cookbook/ingredients/admin.py
|
||||
from django.contrib import admin
|
||||
from cookbook.ingredients.models import Category, Ingredient
|
||||
|
||||
admin.site.register(Category)
|
||||
admin.site.register(Ingredient)
|
||||
|
||||
|
||||
Don't forget to create & run migrations:
|
||||
|
||||
|
@ -124,6 +113,18 @@ Alternatively you can use the Django admin interface to create some data
|
|||
yourself. You'll need to run the development server (see below), and
|
||||
create a login for yourself too (``./manage.py createsuperuser``).
|
||||
|
||||
Register models with admin panel:
|
||||
|
||||
.. code:: python
|
||||
|
||||
# cookbook/ingredients/admin.py
|
||||
from django.contrib import admin
|
||||
from cookbook.ingredients.models import Category, Ingredient
|
||||
|
||||
admin.site.register(Category)
|
||||
admin.site.register(Ingredient)
|
||||
|
||||
|
||||
Hello GraphQL - Schema and Object Types
|
||||
---------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user