Re: Getting the "Real" Foreign Key from a ModelForm

2014-07-28 Thread llanitedave
Ahhh... That sounds good. Too easy, in fact. I can't wait to give it a try! Thanks! On Monday, July 28, 2014 11:17:16 AM UTC-7, Daniel Roseman wrote: > > On Monday, 28 July 2014 15:46:11 UTC+1, Tom Evans wrote: >> >> >> >> You can use kwargs, but it is much cleaner and less typing to use >>

Re: Newbie Stuck on Django Tutorial 3 - Django Template system

2014-07-28 Thread Chou Sunny
i had the same problem by just copying the text on the web, pasting on textedit, and saving it into html. when i open html by Xcode, you will see extra lines, more than the text on the web. simply re-edit html by Xcode, the problem is solved. -- You received this message because you are subscr

checkbox in Django

2014-07-28 Thread dharmi patel
Hi, As I am a new for Django and I use Django for making web application. My problem is: I have product list and i have to select more than one product. once i have select the products. I have to compare those selected product but there are few criteria of comparison like compared by name , vers

I don't understand whats wrong with the way im passing django list to json

2014-07-28 Thread G Z
so I'm trying to display some vm performance data on javascript charts. It needs the information as a list, I have tried passing a json list from django and a django list like below in the javascript i ahve the one they tell me to use and the one im trying the one they tell me to use works obvi

Re: django upload image

2014-07-28 Thread Conner DiPaolo
I had a serious problem doing this. If your problem is similar to how mine was (static folder works but media folder doesn't) look at my Stack Overflow Question Best luck, Conner DiPaolo On Monday, July 28,

Re: Django Search via Form Redirect to URL

2014-07-28 Thread Conner DiPaolo
On Monday, July 28, 2014 11:49:12 AM UTC-7, Branko Majic wrote: > > I have tried hacking your code on top of one of my search pages, and > definitively managed to get it working once I added the name for the > input. > > Without the name, the search view would otherwise just fall through and

Re: django tut 01

2014-07-28 Thread Glyn Jackson
You need to be a little more detailed about your error. When you say "Can't access database sqlite3" are you referring to permissions? Please post your settings. In the mean, time check you have the correct read/write permissions on the directory.Try "sudo python manage.py syncdb" (notice the

Re: Django Search via Form Redirect to URL

2014-07-28 Thread Branko Majic
On Mon, 28 Jul 2014 07:41:23 -0700 (PDT) Conner DiPaolo wrote: > > > On Monday, July 28, 2014 4:42:07 AM UTC-7, Branko Majic wrote: > > > > > > In your search method, if the request method was POST, you are trying > > to retrieve submitted data via key 'search_string'. However, if you > > loo

Re: Getting the "Real" Foreign Key from a ModelForm

2014-07-28 Thread Daniel Roseman
On Monday, 28 July 2014 15:46:11 UTC+1, Tom Evans wrote: > > > > You can use kwargs, but it is much cleaner and less typing to use > Model.objects.create() as you can omit the subsequent save() as > create() creates valid objects (they have pks). > > You're right as far as that goes, but note t

pass variable value store in dictionary to url parameter

2014-07-28 Thread pattinson
I pass dict addon_id_value_mapping = {'menu': '1', 'opening_hour': '2', 'books': '3', 'doctors': '4'} and addon_list = [{u'menu': [{u'price': 50, u'name': u'Momo', u'price_level': u'cheap'}, {u'price': 510, u'name': u'potato', u'price_level': u'expensive'},

Re: Django Search via Form Redirect to URL

2014-07-28 Thread Conner DiPaolo
On Monday, July 28, 2014 4:42:07 AM UTC-7, Branko Majic wrote: > > > In your search method, if the request method was POST, you are trying > to retrieve submitted data via key 'search_string'. However, if you > look at your HTML form, there does not seem to be any kind of input > field called

Re: Getting the "Real" Foreign Key from a ModelForm

2014-07-28 Thread Tom Evans
On Mon, Jul 28, 2014 at 2:39 PM, llanitedave wrote: > > This is my first attempt at a work Django Application since the tutorial, so > my odds of missing something obvious are pretty high. Still, I've been as > far as I can in the documentation, and I can't find anything that addresses > this.

Getting the "Real" Foreign Key from a ModelForm

2014-07-28 Thread llanitedave
This is my first attempt at a work Django Application since the tutorial, so my odds of missing something obvious are pretty high. Still, I've been as far as I can in the documentation, and I can't find anything that addresses this. Using Python 2.7 and Django 1.6.5, in a ModelForm containing

Re: django tut 01

2014-07-28 Thread ngangsia akumbo
paste on here the setting files, and the error you are having. On Monday, July 28, 2014 9:48:21 AM UTC+1, atul...@iiitd.ac.in wrote: > > Can't access database sqlite3. I am beginner . I cant use the database > when i run command " python manage.py syncdb". > Please help! > P.s. Can anyone please

Re: Django Search via Form Redirect to URL

2014-07-28 Thread Branko Majic
On Sun, 27 Jul 2014 15:11:20 -0700 (PDT) Conner DiPaolo wrote: > > > I already have a valid search function mapped in my Django project, you > type in a url '/project/search//' and it responds the corresponding search > results on a page. I want to have a search box in my nav-bar that was >

django tut 01

2014-07-28 Thread atul13025
Can't access database sqlite3. I am beginner . I cant use the database when i run command " python manage.py syncdb". Please help! P.s. Can anyone please tell how to use sqlite3 database ( I know nothing about it ) Thankyou -- You received this message because you are subscribed to the Google G

Sending mass email in Django

2014-07-28 Thread Kevin Ndung'u
Hi people, I am currently maintaining a website where at times I may need to send around 10,000+ emails at a time. I just want to ask on what methods you may consider Django best practices e.g. in efficiency when sending mail to a list of this size? I am currently handling this as a celery ta

django upload image

2014-07-28 Thread ngangsia akumbo
please i need some help getting around with upload images i can put a background image on my site i can style it with css and others but when i upload images on my admin page , it does not get loaded on the page please need some help here -- You received this message because you are subscri

Re: Different objects returned when filtering with a ValuesListQuerySet

2014-07-28 Thread Marc Kirkwood
Yeah that's what I was thinking it could be. cheers Russ. -- Legal status: Any views or opinions are solely those of the sender and do not necessarily represent those of SF Software Ltd unless expressly stated in the body of the text of the email, this email is not intended to form a binding c