how to preview form before submitting to backend in django

2021-11-11 Thread fawemimo olawale
def home(request):
form = CustomerForm()
if 'preview' in request.POST:
form = CustomerForm(request.POST)
if form.is_valid():
if 'submit' in request.POST:
form.save()
form = CustomerForm()
# return redirect('home', pk=form.id)
context = {'form':form}
return render(request, 'contacts/home.html', context)


def home(request):
form = CustomerForm()
if 'preview' in request.GET:
form = CustomerForm(request.POST)
if form.is_valid():
if 'submit' in request.POST:
form.save()
form = CustomerForm()
# return redirect('home', pk=form.id)
context = {'form':form}
return render(request, 'contacts/home.html', context)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9e0c08aa-2181-4eab-ab96-b3a24993138cn%40googlegroups.com.


django form

2021-11-15 Thread fawemimo olawale
How can relate this in model and view because form is meant for one person 
The BankDetail and BeneficiaryDetail are meant for customer Customer Detail 
title surname first_name other_name phone email_address_1 address_line_1 
mean_of_identification (this is a choicefield) identification_number pfa 
rsa_number will_executors (this is a choicefield) if_others Bank Detail 
(this customer can add as many banks ) bank_name (this is a choicefield) 
account_number_1 branch Beneficiary Detail (this customer can add as many 
Beneficiary Detail ) fullname address_line_2 phone email_address_2 value 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/128d27ad-1970-4c6e-8148-529bc7475620n%40googlegroups.com.


Django form

2021-11-19 Thread fawemimo olawale
pls i need a help here.. i have created allot of models and having more 
headache more i created it 
pls anybody help out!!!
Send a url link to a client to fill his/her details form with different 
details (Client-detail, Bank-detail and beneficiary-detail) the bank and 
beneficiary detail the client can add as my as possible to fill.. i was 
told to show a modal to output the information details of the client before 
submitting to backend This is the flow of html template 
http://www.meristemtrustees.com/Trustees/simple_will.html

best regards

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ba515801-f288-4501-a186-1965cd7ed5adn%40googlegroups.com.


Re: Starting Django

2022-07-14 Thread fawemimo olawale
Dear All,
You get a video a from brad Traversy from Udemy or Mosh from
codewithmosh.com
 Regards

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALJWbzr3ft1Ve112%3DWKejNQFcz-m-2_BEu1m1Ecoo5DvjOjucQ%40mail.gmail.com.


Re: Let makemigrations know a data migration is required ?

2022-08-11 Thread fawemimo olawale
On Thu, 11 Aug 2022 at 20:56, Stu.Axon  wrote:

> I've got a table that has a list of classnames (that aren't models) that
> are subclasses of a class.
>
> I'd like to hook into makemigrations and generate data migrations to add /
> remove data as required - any idea the best way I can do this ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/765737bd-2139-45ef-a6ed-6eb802d58f6cn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALJWbzqCHpB9Mxi2A9m5TkNwi%2BXAkB8Y2omzjjCi8OUR0wLNRw%40mail.gmail.com.


What Programming Language should i learn

2022-08-30 Thread fawemimo olawale
Which of these  programming language should i learn

Please I need counselling on this two language though i have prior
knowledge on Python Web Framework (Django) as a beginner's but i want
Backend Language

JAVA or ASP.Net

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALJWbzqwimbawRhv%2BNk%2BDvJhaw6hYx84pMyTELURGZ-WGROOpw%40mail.gmail.com.