added basic exporting capability

This commit is contained in:
vabene1111
2020-04-25 22:05:55 +02:00
parent d702c08a12
commit 43eb10e488
7 changed files with 137 additions and 3 deletions

View File

@ -3,7 +3,7 @@ from pydoc import locate
from django.urls import path
from .views import *
from cookbook.views import api
from cookbook.views import api, import_export
from cookbook.helper import dal
urlpatterns = [
@ -14,6 +14,9 @@ urlpatterns = [
path('shopping/', views.shopping_list, name='view_shopping'),
path('settings/', views.settings, name='view_settings'),
path('import/', import_export.import_recipe, name='view_import'),
path('export/', import_export.export_recipe, name='view_export'),
path('view/recipe/<int:pk>', views.recipe_view, name='view_recipe'),
path('new/recipe_import/<int:import_id>/', new.create_new_external_recipe, name='new_recipe_import'),