What to do with “Unexpected indent” in python?

前端 未结 17 2416
天涯浪人
天涯浪人 2020-11-22 07:46

How do I rectify the error \"unexpected indent\" in python?

17条回答
  •  臣服心动
    2020-11-22 08:23

    All You need to do is remove spaces or tab spaces from the start of following codes

    from django.contrib import admin
    
    # Register your models here.
    from .models import Myapp
    admin.site.register(Myapp)
    

提交回复
热议问题