|
@@ -139,7 +139,7 @@ class genericView(TemplateView):
|
|
|
context = {}
|
|
context = {}
|
|
|
context['object'] = model_to_dict ( instance )
|
|
context['object'] = model_to_dict ( instance )
|
|
|
context['object']['myfield'] = '----------------------------'
|
|
context['object']['myfield'] = '----------------------------'
|
|
|
- print (context)
|
|
|
|
|
|
|
+ # print (context)
|
|
|
return render(request, self.template_name, context )
|
|
return render(request, self.template_name, context )
|
|
|
|
|
|
|
|
|
|
|
|
@@ -147,7 +147,6 @@ class genericView(TemplateView):
|
|
|
class pagesView(TemplateView):
|
|
class pagesView(TemplateView):
|
|
|
template_name = 'marktplatz/generic.html'
|
|
template_name = 'marktplatz/generic.html'
|
|
|
def get(self, request, *args, **kwargs):
|
|
def get(self, request, *args, **kwargs):
|
|
|
- print (kwargs)
|
|
|
|
|
context = {}
|
|
context = {}
|
|
|
context['content_a'] = "lalalala"
|
|
context['content_a'] = "lalalala"
|
|
|
context['content_b'] = config
|
|
context['content_b'] = config
|
|
@@ -559,8 +558,8 @@ class registerView(FormView):
|
|
|
if form.is_valid() and form_contact.is_valid():
|
|
if form.is_valid() and form_contact.is_valid():
|
|
|
|
|
|
|
|
|
|
|
|
|
- print (form.cleaned_data)
|
|
|
|
|
- print (form_contact.cleaned_data)
|
|
|
|
|
|
|
+ # print (form.cleaned_data)
|
|
|
|
|
+ # print (form_contact.cleaned_data)
|
|
|
|
|
|
|
|
contact = form_contact.save(commit=False)
|
|
contact = form_contact.save(commit=False)
|
|
|
user = form.save()
|
|
user = form.save()
|
|
@@ -605,8 +604,8 @@ class registerView(FormView):
|
|
|
else:
|
|
else:
|
|
|
|
|
|
|
|
|
|
|
|
|
- print (form.errors)
|
|
|
|
|
- print (form_contact.errors)
|
|
|
|
|
|
|
+ # print (form.errors)
|
|
|
|
|
+ # print (form_contact.errors)
|
|
|
|
|
|
|
|
send_mail(
|
|
send_mail(
|
|
|
'error with auth',
|
|
'error with auth',
|