fixed linux template error

This commit is contained in:
vabene1111 2018-11-07 14:35:32 +01:00
parent 7a7355de8d
commit ec00626759
3 changed files with 11 additions and 7 deletions

8
.gitignore vendored
View File

@ -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/

View File

@ -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')

View File

@ -135,4 +135,4 @@ USE_TZ = True
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")