Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REUSE_DB=2 ./manage.py test #221

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

Conversation

harukaeru
Copy link

I usually use
$ export REUSE_DB=1
$ ./manage.py test
It always work. Thank you so much for your job!

However, whenever I change the model file, I should do 'migrate', and then REUSE_DB=0.
e.g.
$ export REUSE_DB=0 # destroy old database
$ ./manage.py test # long time...
$ export REUSE_DB=1 # save new database
$ ./manage.py test # long time...

So I add the this statement "os.getenv('REUSE_DB', 'false') != '2':"
$ REUSE_DB=2 ./manage.py test # destroy old database and save new database

If you don't mind, please merge this changes :)

@jwhitlock jwhitlock added this to the Fix REUSE_DB=1 milestone Jul 13, 2015
@jwhitlock
Copy link
Contributor

This is an interesting solution. There is a lot of broken magic with REUSE_DB=1 right now, so I am reluctant to add any more features until the bugs are fixed.

@harukaeru
Copy link
Author

Ah, I understand! I hope it will go well!

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

Successfully merging this pull request may close these issues.

2 participants