summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 270eca1..5401331 100644
--- a/Makefile
+++ b/Makefile
@@ -30,14 +30,20 @@ collectstatic: ## web - collect static files to serve
update: collectstatic compilemessages migrate ## update
echo "OK"
+fixture: ## create fixtures (excluded domains)
+ $(PYTHON) manage.py dumpdata --indent 4 --natural-primary \
+ commcrawler.ExludedDomains > fixtures/commcrawler.json
+
+install_fixture: ## install fixtures (excluded domains)
+ $(PYTHON) manage.py loaddata fixtures/commcrawler.json
+
default_import: ## import default data
$(PYTHON) manage.py import_csv_communes data_src/communes.csv
$(PYTHON) manage.py import_csv_autres data_src/autres.csv
-regenerate_all: migrate default_import ## regenerate all the database
+regenerate_all: migrate default_import install_fixture ## regenerate all the database
$(PYTHON) manage.py createsuperuser
-
crawl: ## launch crawl on the first planified crawler
$(PYTHON) manage.py launch_crawl --first-available