Django: TemplateSyntaxError: Could not parse the remainder

前端 未结 6 1385
深忆病人
深忆病人 2020-12-15 02:22

I am getting this issue when I type localhost:8000/admin/.

`TemplateSyntaxError: Could not parse the remainder: \':password_change\' from

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-15 03:05

    You have indented part of your code in settings.py:

    # Uncomment the next line to enable the admin:
         'django.contrib.admin',
        # Uncomment the next line to enable admin documentation:
        #'django.contrib.admindocs',
         'tinymce',
         'sorl.thumbnail',
         'south',
         'django_facebook',
         'djcelery',
         'devserver',
         'main',
    

    Therefore, it is giving you an error.

提交回复
热议问题