![Show Menu](styles/mobile-menu.png)
![Page Background](./../common/page-substrates/page0175.jpg)
Figure 8-4. But the database isn’t
Creating the Database with migrate
We run
migrate
using the
--noinput
argument to suppress the two little “are you sure”
prompts:
elspeth@server:$
../virtualenv/bin/python3 manage.py migrate --noinput
Creating tables ...
[...]
elspeth@server:$
ls ../database/
db.sqlite3
elspeth@server:$
../virtualenv/bin/python3 manage.py runserver
Let’s try the FTs again:
$
python3 manage.py test functional_tests --liveserver=superlists-staging.ottg.eu
Creating test database for alias 'default'...
..
---------------------------------------------------------------------
Ran 2 tests in 10.718s
OK
Destroying test database for alias 'default'...
It’s great to see the site up and running! We might reward ourselves with a well-earned
tea break at this point, before moving on to the next section…
Deploying Our Code Manually
|
147