Skip to content

Instantly share code, notes, and snippets.

@SoftwareGuy
Created May 8, 2015 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SoftwareGuy/2020dc546a554890de76 to your computer and use it in GitHub Desktop.
Save SoftwareGuy/2020dc546a554890de76 to your computer and use it in GitHub Desktop.
KCSrv Role Error
(kcsrv-sg)coburn@debian-vm:~/Development/kcsrv-sg$ ./manage.py setup
Installing default roles...
Traceback (most recent call last):
File "./manage.py", line 45, in <module>
manager.run()
File "/home/coburn/Development/kcsrv-sg/lib/python3.4/site-packages/flask_script/__init__.py", line 412, in run
result = self.handle(sys.argv[0], sys.argv[1:])
File "/home/coburn/Development/kcsrv-sg/lib/python3.4/site-packages/flask_script/__init__.py", line 383, in handle
res = handle(*args, **config)
File "/home/coburn/Development/kcsrv-sg/lib/python3.4/site-packages/flask_script/commands.py", line 216, in __call__
return self.run(*args, **kwargs)
File "./manage.py", line 26, in setup
db.session.add(db.Role(name="admin", description="Allowed to access the admin panel"))
AttributeError: 'SQLAlchemy' object has no attribute 'Role'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment