Skip to content

Snippets

Stéphane Malta e Sousa edited this page Mar 10, 2020 · 11 revisions

Django

Reset migrations and database

python manage.py migrate --fake api zero

Delete migrations files except __init__.py, then make migrations:

del .\api\migrations\0*.py
python manage.py makemigrations

Delete and recreate database, then:

CREATE EXTENSION postgis;
CREATE schema geoshop authorization geoshop;
Clone this wiki locally