Giter Site home page Giter Site logo

Comments (3)

LisirX avatar LisirX commented on August 11, 2024

Your account has been disabled
登陆的时候提示这个

from onlinejudgedeploy.

virusdefender avatar virusdefender commented on August 11, 2024

数据库或者 django shell 改吧

from onlinejudgedeploy.

LisirX avatar LisirX commented on August 11, 2024

python3 manage.py createsuperuser
Django VERSION (2, 1, 7, 'final', 0)
Username: admin
Password: 
Password (again): 

命令的时候出现这个问题

Traceback (most recent call last):
  File "manage.py", line 12, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 316, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 59, in execute
    return super().execute(*args, **options)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 353, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 184, in handle
    self.UserModel._default_manager.db_manager(database).create_superuser(**user_data)
AttributeError: 'UserManager' object has no attribute 'create_superuser'
Sentry is attempting to send 1 pending error messages
Waiting up to 10 seconds
Press Ctrl-C to quit
[2020-08-09 12:15:29] - [ERROR] - [sentry.errors:684]  - Sentry responded with an API error: RateLimited(None)
b'Sentry responded with an API error: RateLimited(None)'
[2020-08-09 12:15:29] - [ERROR] - [sentry.errors.uncaught:712]  - ["AttributeError: 'UserManager' object has no attribute 'create_superuser'", '  File "manage.py", line 12, in <module>', '  File "django/core/management/__init__.py", line 381, in execute_from_command_line', '  File "django/core/management/__init__.py", line 375, in execute', '  File "django/core/management/base.py", line 316, in run_from_argv', '  File "django/contrib/auth/management/commands/createsuperuser.py", line 59, in execute', '  File "django/core/management/base.py", line 353, in execute', '  File "django/contrib/auth/management/commands/createsuperuser.py", line 184, in handle']
b'["AttributeError: \'UserManager\' object has no attribute \'create_superuser\'", \'  File "manage.py", line 12, in <module>\', \'  File "django/core/management/__init__.py", line 381, in execute_from_command_line\', \'  File "django/core/management/__init__.py", line 375, in execute\', \'  File "django/core/management/base.py", line 316, in run_from_argv\', \'  File "django/contrib/auth/management/commands/createsuperuser.py", line 59, in execute\', \'  File "django/core/management/base.py", line 353, in execute\', \'  File "django/contrib/auth/management/commands/createsuperuser.py", line 184, in handle\']'

小白一枚,求解

from onlinejudgedeploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.