parent
5583c82160
commit
e347088e64
18
7c_Proyecto_Web_Completo.md
Normal file
18
7c_Proyecto_Web_Completo.md
Normal file
@ -0,0 +1,18 @@
|
||||
## Registro de App en Panel de Administración
|
||||
|
||||
[Crear SuperUsuario](https://gitea.kickto.net/jp.av.dev/intro_Django/wiki/3_Panel_Administrador#user-content-crear-superusuario-con-perf%C3%ADl-de-administrador)
|
||||
|
||||
servicios/**admin.py**
|
||||
```
|
||||
from django.contrib import admin
|
||||
from .models import Servicio
|
||||
|
||||
# Register your models here.
|
||||
|
||||
class ServicioAdmin(admin.ModelAdmin):
|
||||
readonly_fields = ('created','updated')
|
||||
|
||||
|
||||
admin.site.register(Servicio, ServicioAdmin)
|
||||
```
|
||||
![img](https://gitea.kickto.net/jp.av.dev/intro_Django/raw/branch/master/ProyectoWeb/wikimg/admin_panel.png)
|
Loading…
Reference in New Issue
Block a user