Django Admin


Youtube Live session on Tkinter

Django Django MySQL Database
Learn how to create project using Django framework. Once you run the server you can enter into the admin area by using this URL.
http://127.0.0.1:8000/admin/


Creating Admin userid and password

python manage.py createsuperuser
This code will ask user to enter Username , Email address, Password

After creating this we can able to login to our Admin area. Inside admin area we will try to add our student table so we can add , delete or view the records. To do this we have to register the our student table inside admin area.

Open admin.py page and enter these lines
from django.contrib import admin
from .models import student 

# Register your models here.

admin.site.register(student)
Once we login to Admin pannel we can see our students table with option to Add or Change

You can use the Add button to add the records. Similarly you can update or delete records using this interface.
Subscribe to our YouTube Channel here


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com



    Post your comments , suggestion , error , requirements etc here





    Python Video Tutorials
    Python SQLite Video Tutorials
    Python MySQL Video Tutorials
    Python Tkinter Video Tutorials
    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer