diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |