Re: error- IntegrityError at /register/

2013-03-06 Thread Avnesh Shakya
thanks i got it
regards,
Avnesh shakya

On Thu, Mar 7, 2013 at 10:09 AM, Avnesh Shakya wrote:

> hi i have got error- IntegrityError at /register/
>
> lrntkr_student.contact_no may not be NULL
>
> ,when i was trying to input data through html page(register.html), but
> data is not updating in database and generating that error. please help me
> i m unable to find this error.
>
> thanks
>
>
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




error- IntegrityError at /register/

2013-03-06 Thread Avnesh Shakya
hi i have got error- IntegrityError at /register/

lrntkr_student.contact_no may not be NULL

,when i was trying to input data through html page(register.html), but data
is not updating in database and generating that error. please help me i m
unable to find this error.

thanks

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


{%extends "homepage/index.html"%}
{%block title%}
 Login
{%endblock%}

{%block content%}
	
{% if not success %}

Registration
		
			
Name:
			
			

{% if name_error == "" %}
 Name will contain first name and last name character.
{% else %}
	{{ name_error }}
{% endif %}
			
		
		
			
Email id:
			
			

{% if emailid_error == "" %}
 Example : u...@mail.com
{% else %}
 {{ emailid_error }}
{% endif %}
			
		
	   		
			
User Name:
			
			

{% if username_error == "" %}
 User name contain 6-8 letter combination of alphabet and digit no special character.
{% else %}
	{{ username_error }}
{% endif %}
			
		
		
			
Password:
			
			

{% if password_error == "" %}
Password Must contain 8-15 Character.
{% else %}
 {{ password_error }}
{% endif %}
			
		
		
			
Re-password:
			
			

{% if rpassword_error == "" %}
password is not matching
{% else %}
 {{ rpassword_error }}
{% endif %}
			
		
	
	
		
Date Of Birth:
		
		
		
			Month
			1
			2
			3
			4
			5
			6
			7
			8
			9
			10
			11
			12
		

		
			Day
			1
			2
			3
			4
			5
			6
			7
			8
			9
			10
			11
			12
			13
			14
			15
			16
			17
			18	
			19
			20
			21
			22
			23
			24
			25
			26
			27
			28
			29
			30
			31
		
	
		
			Year
			2009
			2008
2007
2006
2005
2004
2003
2002
2001
2000
1999
1998
1997
1996
1995
1994
1993
1992
1991
1990
1989
1988
1987
1986
1985
1984
1983
1982
1981
1980
1979
1978
1977
1976
1975
1974
1973
1972
1971
1970
1969
1968
1967
1966
1965
1964
1963
1962
1961
1960
1959
1958
1957
1956
1955
1954
1953
1952
1951
1950
1949
1948
1947
1946
1945
1944
1943
1942
1941
1940
1939
1938
1937
1936
1935
1934
1933
1932
1931
1930
1929
1928
1927
1926
1925
1924
1923
1922
1921
1920
1919
1918
1917
1916
1915
1914
1913
1912
1911
1910
1909


	
	

		
			Gender:
		
		
		Male
Female
		
	
 
 
		
			Address:
		
		
		
		{% if address_error == "" %}
need correct address
{% else %}
 {{ address_error }}
{% endif %}
		
	
	
	
		
			Contact no.:
		
		

		{% if contact_error == "" %}
take only 11 digit
{% else %}
 {{ contact_error }}
{% endif %}
		
	
	
	
  

	
	
	
  
{% else %}
Hi Thank you for your Registraton.
{% endif %}

{%endblock%}

models.py
Description: Binary data


views.py
Description: Binary data