How to save a table in a cell in django models.

2015-12-02 Thread Billu
What I want to do is generate a HTML table (alongwith other data viz. images, text) when somebody opens a page. So how would I *save *a table, i.e, what would be the keyword for it eg. CharField, IntegerField. I've googled and people have written that you need to save XML data in the database

Re: Django decision for tour reservation database

2015-12-14 Thread Billu
On Sunday, 13 December 2015 20:04:05 UTC+5:30, Tourmaster wrote: > > I want to put a single database on a server available to the office, > outside agents and customers who will reserve a seat, select upgrades, > agree to price and deposits and receive an email confirmation. > > Is this a job fo

Re: Radio button

2015-12-16 Thread Billu
The question wasn't clear { to me }. Could you give any link to a similar site. As for sending data about which radio button was chosen, you could generate name for radio button and when the form is submitted, it sends the data via POST. On Wednesday, 16 December 2015 01:11:23 UTC+5:30, piase

'CharField' object has no attribute 'model'

2015-12-25 Thread Billu
I'm trying to make a single choice quiz (i.e. Choose one from 4 options). I'll populate the quiz (with 30 questions) depending upon what topic the user chooses. I'm made some models and forms, but when I try to migrate it says AttributeError: 'CharField' object has no attribute 'model' I don

Re: 'CharField' object has no attribute 'model'

2015-12-28 Thread Billu
Thanks, I had changed it to questions_included = models.ForeignKey('quiz.Question', null=True) and also changed the db from Postgresql to Sqlite. Will see if this problem again comes up. @luisza14 - did you find out by going through the code or are there any other ways to find out? -- You r

Re: how to restrict responses to a single server/domain ?

2015-12-30 Thread Billu
Wouldn't it be much easier to just check the IP (or mac) addresses of the request and if it matches the allowable ip(s), then allow otherwise deny? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivin

Re: how to restrict responses to a single server/domain ?

2015-12-31 Thread Billu
Thanks for recommendation. On Thursday, 31 December 2015 12:54:33 UTC+5:30, James Schneider wrote: > > > > I suppose my answer did leave out the ability to check the IP at the > Django level and make decisions based on that information. Given the > multiple ways that an IP address may be made a

Re: Drop down dependent on two other form fields

2016-01-05 Thread Billu
Think you have to use jQuery (or any other JS framework) on this one to send the values back to server. An example would be http://jsfiddle.net/dKMzk . But with this, you have to pull all values prior to loading the drop-downs. With this example, you