Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Add script for generate a token #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ydrasil
Copy link
Contributor

@Ydrasil Ydrasil commented Jun 20, 2017

No description provided.


from tcidatabase.models import BaseToken, SurveyToken, Client, User

mongoengine.connect('', alias='default')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why I had to add this line for avoiding a mongo error.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to connect the the database in order to have the models to work.

See a connection example here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, its done 👍

@Ydrasil
Copy link
Contributor Author

Ydrasil commented Jun 20, 2017

@vinyll

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants