testing in django

2017-05-23 Thread Akash Tomar
class SignUpTest(TestCase): def test_createAccount(self): my_data = {'username': 'akash.tomar107', 'password': 'akashtomar',"email":"akash.tomar...@gmail.com", "confirm_password":"akashtomar", "type_of_user":"1", "first_name":"akash", "last_name":"tomar"} response = self.client.post('/signup/',

Input using barcode scanner

2015-12-04 Thread Akash Tomar
I want to take input in my html page using the barcode scanner. How do i do this in django???..do i need some additional module or package to do so?..or django itself is strong enough to do that...please help me with a sample code for implementing it. -- You received this message because you a

passing list of objects as manytomany field type in django

2016-01-06 Thread Akash Tomar
I want to know if we can pass a list of objects (in this case list of blog objects to the Entry model as the manytomany object parameter). On doing so i am not getting the desired result. Please help. models.py class Blog(models.Model): id=models.AutoField(primary_key=True) class Entry(mo