Update by natay on Sun Jul 21 21:04:05 EDT 2019 from Admins-MacBook-Air.local
@@ -19,6 +19,9 @@ INDEX_NAME := index
# Search index directory
INDEX_DIR := search
+# Recipes database to copy
+COPY_DATABASE := recipes.db
+
all: recipes serve
@@ -92,6 +95,10 @@ delete:
reset: delete init
# Initializes the test project.
+copy: reset
+ @echo COPY_DATABASE=${COPY_DATABASE}
+ python manage.py copy --db ${COPY_DATABASE} --settings ${DJANGO_SETTINGS_MODULE}
+
test:
@echo DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE}
@echo DJANGO_APP=${DJANGO_APP}
