Comments (2)
Also because until you're just running tests you don't need to do anything, the database is always recreated fresh with a syncdb and you mess around with the models as much as you want without creating any migration..
from book-tdd-web-dev-python.
Django 1.7 requires you to have migrations to create the test database correctly, unless you delete the migrations folder for your app.If you started the book on 1.6, you won't have a migrations folder for the lists app. Try creating one (with a dunderinit) and you'll see the behaviour I describe. 1.7 creates a migrations folder by default.It took me a while to get used to as well, but overall I think the 1.7 way where you use migrations right from the beginning is better. Certainly makes your second deploy easier.Hp
from book-tdd-web-dev-python.
Related Issues (20)
- Chapter 11: the function _update_settings of deploy_tools/fabfile.py HOT 5
- Echo "some_text" >> .gitignore includes the "" on Windows OS
- Prerequisites: Give more instructions on how/where to place geckodriver executable in system path
- In chapter_purist_unit_tests.asciidoc: AssertionError: <MagicMock name='List().owner' id='4522868128'> != <User: User object ([email protected])>
- Add next chapter link in chapter_unit_test_first_view
- asciidoctor: ERROR: book.asciidoc
- Wrong class in code snippet in chapter 23
- ch07l006 - Useless assertion HOT 2
- Page 187 (Kindle version) - Confusing shell command
- Page 226: `lists/tests/test_model.py`
- ch11l032 - Typo in the test
- ch17|023 - Replace import to enable easier migration to Django 2 HOT 1
- Outdated section | 'What to do next' -> 'Test for Graceful Degradation'
- Dive Into Python URL is wrong HOT 1
- Realy stuck on unix socket HOT 1
- Typos on server-quickstart.md
- Geckodriver Source URL incorrect HOT 1
- Quotation marks needed for "$ python -c from selenium..."? HOT 1
- early release book ~issue / geckodriver.log HOT 2
- Chapter 1: Python 3.7 and Django - "SyntaxError: Generator expression must be..." HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from book-tdd-web-dev-python.