diff --git a/.gitignore b/.gitignore index 6bbef5c9..c1e0a400 100644 --- a/.gitignore +++ b/.gitignore @@ -65,8 +65,6 @@ target/ venv/ -secret_settings\.py - *.sqlite3 \.idea/workspace\.xml @@ -76,3 +74,9 @@ secret_settings\.py \.idea/recipes\.iml recipes/settings\.py + +# Deployment + +\.env +\.env\.secret +staticfiles/ diff --git a/cookbook/views/new.py b/cookbook/views/new.py index 85b806c8..a7828723 100644 --- a/cookbook/views/new.py +++ b/cookbook/views/new.py @@ -11,7 +11,7 @@ from cookbook.models import Category, Keyword, Recipe class RecipeCreate(LoginRequiredMixin, CreateView): # this exists for completeness but is not in use at the moment - template_name = "generic\\new_template.html" + template_name = "generic/new_template.html" model = Recipe fields = ['name', 'category', 'keywords'] success_url = reverse_lazy('index') @@ -23,7 +23,7 @@ class RecipeCreate(LoginRequiredMixin, CreateView): # this exists for completen class CategoryCreate(LoginRequiredMixin, CreateView): - template_name = "generic\\new_template.html" + template_name = "generic/new_template.html" model = Category form_class = CategoryForm success_url = reverse_lazy('list_category') @@ -35,7 +35,7 @@ class CategoryCreate(LoginRequiredMixin, CreateView): class KeywordCreate(LoginRequiredMixin, CreateView): - template_name = "generic\\new_template.html" + template_name = "generic/new_template.html" model = Keyword form_class = KeywordForm success_url = reverse_lazy('list_keyword') @@ -47,7 +47,7 @@ class KeywordCreate(LoginRequiredMixin, CreateView): class StorageCreate(LoginRequiredMixin, CreateView): - template_name = "generic\\new_template.html" + template_name = "generic/new_template.html" model = Storage form_class = StorageForm success_url = reverse_lazy('list_storage') diff --git a/recipes/settings.py.template b/recipes/settings.py.template index b486065d..1e05f10f 100644 --- a/recipes/settings.py.template +++ b/recipes/settings.py.template @@ -135,4 +135,4 @@ USE_TZ = True STATIC_URL = '/static/' -STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles") \ No newline at end of file +STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")