I agree with previous posts.
It might also be worthwhile to simplify your code to avoid unneeded
variables:
details=Details(
name=requests.POST.get('name'),
roof_age=requests.POST.get('roof_age'),
email=requests.POST.get('email'),
phone=r
Hey folks,
While saving the values to the data to the database I'm getting this Field
'roof_age' expected a number but got ('1',)
How can I resolve this?
Here is my views.py file
def form(requests):
if requests.method == 'POST':
name=requests.POST['name'],
# roof_age= requests.POST['roof_age'],
ro
jesmine chaudhuri wrote:
> Hello,
>
> I am new in Python and Django. This is my first test project following the
> site :
>
> https://docs.djangoproject.com/en/1.3/intro/tutorial01/
>
> I am using database MySQL.
>
> I configured in
>
> INSTALLED_APPS = (
> 'django.contrib.auth',
> '
Hello,
I am new in Python and Django. This is my first test project following the
site :
https://docs.djangoproject.com/en/1.3/intro/tutorial01/
I am using database MySQL.
I configured in
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessi
4 matches
Mail list logo