Re: ChoiceInline field giving name error

2015-01-15 Thread Kamal Kaur
On Thu, Jan 15, 2015 at 4:08 PM, sanjeet kaur wrote: > Yes I tried but all that is correct. Are you following any tutorial? If yes, provide link. -- Kamaljeet Kaur -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: ChoiceInline field giving name error

2015-01-14 Thread Kamal Kaur
On Wed, Jan 14, 2015 at 6:33 PM, sanjeet kaur wrote: > NameError: name 'ChoiceInline' is not defined Have you tried this? http://stackoverflow.com/questions/22768262/nameerror-not-defined -- Kamaljeet Kaur -- You received this message because you are subscribed to the Google Groups "Django

Re: Open Django template in dialog box (not in window)

2014-09-26 Thread Kamal Kaur
On Fri, Sep 26, 2014 at 10:40 PM, Collin Anderson wrote: > Ahh yup. I should really test my examples :) Indeed! > The SyntaxError will make the > even handler not register. Does removing the extra parentheses fix it? No. In fact, I got the content in next page only after removing it ")" :P -

Re: Open Django template in dialog box (not in window)

2014-09-26 Thread Kamal Kaur
On Fri, Sep 26, 2014 at 1:49 AM, Collin Anderson wrote: > $("#popup").dialog({modal: true}).dialog('open')).load(this.href) > > I've updated my blog post. This is opening the template on next page :/ And you need to edit the post: $("#popup").dialog({modal: true}).dialog('open')).load(this.

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Kamal Kaur
On Thu, Sep 25, 2014 at 12:10 AM, Jan Eskilsson wrote: > "Uncaught TypeError: Undef is not a function" error in the Java Script, dont > understand why really ? Yes, I get the same in Chromium (y) ​,​ but only after reopening, as I mentioned in my previous mail. -- Ka

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Kamal Kaur
On Tue, Sep 23, 2014 at 11:17 PM, Fred Stluka wrote: > > Excellent sample. Thanks! That's a nice standalone summary > of how to do a popup dialog via jQuery and Ajax. Worth posting > to a tips page or blog if you have such, so other people can > Google it. @ Collin, please do the above now ;)

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Kamal Kaur
On Tue, Sep 23, 2014 at 6:14 PM, Collin Anderson wrote: > # popupadvance.html > Here's the worker object: {{ worker }} > src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js"> > > Advance > What I see is that I need to write the contents to be shown, in the dialog, inside t

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Kamal Kaur
On Wed, Sep 24, 2014 at 8:01 PM, Collin Anderson wrote: > Hmm... it seems to be trying to parse your html as javascript. Try using > adding to your $.ajax(): > > dataType: 'text', Nothing happened. -- Kamaljeet Kaur kamalkaur188.wordpress.com -- You received this message because you are subsc

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Kamal Kaur
On Tue, Sep 23, 2014 at 11:17 PM, Fred Stluka wrote: > Kamal, does this fill in the gaps for you? If not, let us know. I've used this example in my app and getting this, in Firefox console, on clicking the link: http://pastie.org/9590027 Here is what I get as output: http://awesomescreenshot.co

Re: web server question

2014-09-22 Thread Kamal Kaur
On Tue, Sep 23, 2014 at 7:04 AM, Lachlan Musicman wrote: > That should work fine, o.O I just pointed out the wrong spellings. > although you will still need to install Python > if you are on a Windows platform. Exactly! -- Kamaljeet Kaur kamalkaur188.wordpress.com -- You received this mess

Re: web server question

2014-09-22 Thread Kamal Kaur
On Tue, Sep 23, 2014 at 5:39 AM, Paraskevi vogot wrote: > I find it a little bit hard to install a web server (Appache) s/Appache/Apache -- Kamaljeet Kaur -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and sto

Re: Open Django template in dialog box (not in window)

2014-09-22 Thread Kamal Kaur
On Mon, Sep 22, 2014 at 9:14 PM, Collin Anderson wrote: > What happens when you try? I'm not getting how to tell AJAX to go to a view and load the data that it returns as the template, (in dialog). It's just not done. Feeling too dumb to use it. And doesn't work when I send a URL like: '/popupadv

Open Django template in dialog box (not in window)

2014-09-21 Thread Kamal Kaur
I'm trying to open a Django template using JS as a popup. Actually I've done this. But it opens a separate window but I want a clean dialog box or simply a division instead of that window. Using window.open method, clicking on the "Advance", "popitup" function runs. Here's the code: http://pastie.

Re: I have created an app (total noob question)

2014-08-31 Thread Kamal Kaur
On Mon, Sep 1, 2014 at 9:56 AM, Michael Carey wrote: > ). I cannot work out which files to upload to my website to veiw the page? Do you mean to deploy on production server? -- Kamaljeet Kaur -- You received this message because you are subscribed to the Google Groups "Django users" group.

Iterate forms with for loop

2014-08-21 Thread Kamal Kaur
I'm iterating multiple forms for all the instances of a table in the template using for loop. But only the last form is being considered and it saves the data from last form only. I'm not getting how to differentiate these forms and save data, from every field and form, into the database. Here is

Re: (ModelForm) confusion

2014-08-03 Thread Kamal Kaur
> There where a few hooks in your view, for example: you check for > 'is_valid()' but there is no code to execute after. I've changed it a bit: > > > http://pastie.org/9431548 > > Thanks for the modifications. @Satinderpal Links are working. And yes, you got it right. Now I want that it

(ModelForm) confusion

2014-07-29 Thread Kamal Kaur
Greetings! What I have done: There are four tables, from which I have generated ModelForms. Getting the WorkerDetails from one side, adding the salary and attendance things from the other side as the view says. If there is at least one row added in WorkerDetail table, then it directly asks to add

Re: Deployment in Django

2014-03-22 Thread Kamal Kaur
On Sat, Mar 22, 2014 at 2:50 PM, Aryak Sengupta wrote: > But what is the simplest and the easiest way to go about deployment? > > P.S. I am new to Django. Starting with a small app, following a good tutorial is not a bad idea! And the simplest, it lets you start from basics. Make sure you use git

Re: Django query from database

2013-10-11 Thread Kamal Kaur
On Fri, Oct 11, 2013 at 6:43 PM, Leonardo Giordani wrote: > Sorry, I forgot the User part of your question. > > Let me understand the exact relationship between codes, words and users: do > those words or codes come from a form? Or are saved in the DB for each user? Actually I have to search for

Re: Django query from database

2013-10-11 Thread Kamal Kaur
On Fri, Oct 11, 2013 at 4:06 PM, Leonardo Giordani wrote: > I think that you have to perform a query for each Code, extracting the list > of Word matching that Code and then merging all the lists. Exactly! > Since I don't know your models, I'll give you some general code, let me know > if you un

Django query from database

2013-10-11 Thread Kamal Kaur
Hello there, Hope you are doing well :) I have a problem regarding querying a list from two tables, the procedure goes like: Considering two tables from mysql database: 1. UserProfile table, with complete client details: First name, Last name, Address, email id, Contact number etc. 2. CodeTable

Re: Haystack

2013-07-30 Thread Kamal Kaur
On Tue, Jul 30, 2013 at 3:10 PM, Kamal Kaur wrote: > > What I am missing? As this command must create indexes by processing models. > And how does my search_indexes.py file actually look like? > Currently it looks like this: http://tny.cz/d842c556 I have created the template

Haystack

2013-07-30 Thread Kamal Kaur
Running the following command, output is: "All documents removed." $ ./manage.py rebuild_index Documentation says- "Simply run ./manage.py rebuild_index. You’ll get some totals of how many models were processe

Haytack Installation of search engines

2013-07-28 Thread Kamal Kaur
In the documentation, """ More Like This To enable the “More Like This” functionality in Haystack, you’ll need to enable the MoreLikeThisHandler. Add the following line to your solrconfig.xml file within the config

Re: Search from database

2013-07-26 Thread Kamal Kaur
On Fri, Jul 26, 2013 at 12:10 PM, Kamal Kaur wrote: > These commands don't extract the files: > http://django-haystack.readthedocs.org/en/latest/installing_search_engines.html Installed with this: http://mirror.metrocast.net/apache/lucene/solr/4.4.0/solr-4.4.0.tgz -- Kam

Re: Search from database

2013-07-25 Thread Kamal Kaur
On Wed, Jul 24, 2013 at 5:15 AM, Amirouche Boubekki wrote: > Apache solr or ElasticSearch: yes Is this the right method for installation? What is the need to adduser? http://www.cubrid.org/wiki_tutorials/entry/install-apache-solr-on-ubuntu These commands don't extract the files: http://django-ha

Re: Search from database

2013-07-23 Thread Kamal Kaur
On Wed, Jul 24, 2013 at 5:15 AM, Amirouche Boubekki wrote: > Apache solr or ElasticSearch: yes > Haystack: maybe > Regex: no Thanks. Studying ElasticSearch currently. -- Kamaljeet Kaur kamalkaur188.wordpress.com facebook.com/kaur.188 -- You received this message because you are subscribed

Re: Search from database

2013-07-21 Thread Kamal Kaur
We can search from database using phonetic codes or queries. I want an advanced search module in my project. That can suggest similar spellings from database, if user enters something wrong, like if something is misspelled, it must tell that you might have entered something wrong, similar results a

Search from database

2013-07-19 Thread Kamal Kaur
Can we have a search module in django that can suggest resembling spellings from mysql database? -- Kamaljeet Kaur Blog:http://kamalkaur188.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: django templates

2013-07-17 Thread Kamal Kaur
On Wed, Jul 17, 2013 at 9:13 PM, Harjot Mann wrote: > It is used only for one report and there is some error,so it is there > but not working. Then fix it! -- Kamaljeet Kaur Blog:http://kamalkaur188.wordpress.com/ -- You received this message because you are subscribed to the Google Groups

Re: django templates

2013-07-17 Thread Kamal Kaur
On Wed, Jul 17, 2013 at 8:33 PM, Harjot Mann wrote: > @ Kamal thnks but its already there. It must work if it is there?? -- Kamaljeet Kaur Blog:http://kamalkaur188.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscrib

Re: django templates

2013-07-17 Thread Kamal Kaur
On Wed, Jul 17, 2013 at 8:04 PM, Harjot Mann wrote: > No, this is not admin problem. I am getting the reports templates but > these are not saved anywhere, valuse are coming from database. But I > want to take the print outs i.e the hard copy of all the reports which > are made till now by saving

Re: Unable to get python manage.py runserver to work

2013-07-11 Thread Kamal Kaur
On Fri, Jul 12, 2013 at 8:31 AM, Yves S. Garret wrote: > What am I screwing up? Try using quote: [...] project_name.settings [...] instead of [...] {{ project_name }}.settings [...] -- Kamaljeet Kaur Blog:http://kamalkaur188.wordpress.com/ -- You received this message because you are subsc

Re: Advanced search in django?

2013-07-08 Thread Kamal Kaur
On Sat, Jul 6, 2013 at 9:47 PM, Kamal Kaur wrote: > Sorry, didn't get you. > Can you please elaborate more? Reply awaited. -- Kamaljeet Kaur Blog:http://kamalkaur188.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Django

Re: Advanced search in django?

2013-07-06 Thread Kamal Kaur
On Sat, Jul 6, 2013 at 9:39 PM, Javier Guerra Giraldez wrote: > not a separate file, but a separate field. either override the save() > method of your model, or connect to the pre_save() signal to keep it > updated with the 'original' text. for searches simply query this > field against the soun

Advanced search in django?

2013-07-06 Thread Kamal Kaur
I have found the code for Soundex which is a phonetic algorithm, it is capable of searching from database despite of minor spelling differences. But don't know how to implement it in my project to search in database. Do I need to keep a separate file? or what to do ? Here is the link. https://githu

Django polls application problem

2013-06-20 Thread Kamal Kaur
I am new to Django. Creating my first application, Polls. Some field was missing in database when I tried to enter multiple choices in a poll from terminal. Even it was not done when admin.py file was changed to show a bunch of choices. Now previous database is dropped and a new one is created.