render only 1 radioselect field

2011-11-10 Thread jay K.
Hello, does anyone know how to render only 1 radioselect in a django template? for now I have {{ form.options }} but it renders the whole list. I'd like to have more control on which ones I want to render thanks in advance -- You received this message because you are subscribed to the Google

Re: render_to_response pointing to multiple templates

2011-11-08 Thread jay K.
template, such as name and url inside a view? I'd like to use it to differentiate between templates and use logic to pick the template I want to render again, Tom, thanks for your assistance On Mon, Nov 7, 2011 at 2:04 PM, Tom Evans wrote: > On Mon, Nov 7, 2011 at 3:59 PM, jay K. > wr

template information in django view

2011-11-08 Thread jay K.
Hello, Is there any way I could retrieve information about a template, such as template name, url, etc inside a view? is there built-in object that represents the template object? thanks regards -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: render_to_response pointing to multiple templates

2011-11-07 Thread jay K.
Evans wrote: > On Mon, Nov 7, 2011 at 3:09 PM, jay K. > wrote: > > > > Hello > > > > I have a view with the following render_to_template function > > > > ... > > > > return render_to_response( 'template/template.html', {var'&#x

render_to_response pointing to multiple templates

2011-11-07 Thread jay K.
Hello I have a view with the following render_to_template function ... return render_to_response( 'template/template.html', {var'': var}, context_instance=RequestContext(request)) ... I want the render_to_response to point to more than 1 template. So far I've tried adding a dictionary of templ

one view for multiple templates

2011-11-07 Thread jay K.
t template)? thanks jay k -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more

Re: sending and receiving data using ajax/html

2011-09-15 Thread jay K.
; When in next page, you can create hidden form fields to store data you > passed from first page, and then you can post them again in any page you > want. > > 2011/9/15 jay K. > > >> Hello >> >> I have a page where a user makes a selection >> >> Wh

sending and receiving data using ajax/html

2011-09-15 Thread jay K.
Hello I have a page where a user makes a selection What I want to do is to take the user's selection to the "next page" so I can process the user's request in a new page How can I do that? I know I have to use ajax (but if there is a better method please let me know), so how can I use ajax to

Re: forms and form processing

2011-06-30 Thread jay K.
Hello, thanks for the reply I dont have email settings in my settings.py file? is that straightforward, like an import statement or something more complex? I am using django version (1, 1, 1, 'final', 0) - that's what i got after typing import django django.VERSION on the pyth

forms and form processing

2011-06-28 Thread jay K.
Hello, I need to add a form on my django website so far this is what i have: in my models.py: import statements not shown here CONTACT_OPTIONS = ( ('skype video anruf','Skype Video- Anruf'), ('skype anruf ','Skype Anruf'),

django page loads forever

2011-06-22 Thread jay K.
Hello, everyone I have a django page which loads indefinitely some of the javascript that is supposed to come up does not appear on the screen (while the page is still loading), but i checked with firebugs and there are no error messages at all any advice would be helpful thanks jay k

Re: storing django object into javascript variable/array

2011-06-15 Thread jay K.
doing it right On Wed, Jun 15, 2011 at 1:36 PM, John Finlay wrote: > On 6/15/11 8:59 AM, jay K. wrote: > > Hello, > > I apologize for seeming too impatient or rude, actually I'm a bit in a > hurry because I was given a project > and was told that it was urgent. I miscal

Re: storing django object into javascript variable/array

2011-06-15 Thread jay K.
would be welcomed Thanks, and again sorry for seeming rude/desperate, it was all my fault On Wed, Jun 15, 2011 at 10:45 AM, Ian Clelland wrote: > On Wed, Jun 15, 2011 at 7:27 AM, jay K. wrote: > >> Hello, >> >> I've posted my question before, but I believe I didn&#x

Re: storing django object into javascript array

2011-06-14 Thread jay K.
e the {{ school|escapejs }} into a javascript array, and use the data inside school as if it were an array element, like map_schools[1], map_schools[3] etc Thanks regards, JK On Fri, Jun 10, 2011 at 12:21 PM, Ian Clelland wrote: > > > On Fri, Jun 10, 2011 at 7:48 AM, jay K. wrote: &

storing django object into javascript array

2011-06-10 Thread jay K.
Hello, I am not a django developer, but I have a background on html, css, javascript, jquery and php. I was wondering if you can help me with a question regarding django, since I'm working on a website built on django (which was not started by me) I want to store a django object into a javascri

using a models fields

2011-04-04 Thread jay K.
Hello, I got a couple of fields from a model I want to use so the models.py looks like this * class XZY(): latitude = models.CharField() longitude = models.CharField(.) zoomlevel = models.CharField()* I want to retrieve the data inside latitude, longitude and zoomlevel to b

creating a URL from scratch

2011-04-04 Thread jay K.
Hello I have a website with www.xyz.com/subpage I want to change the name of the subpage how do you do it? thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscr

multilingual django

2011-04-04 Thread jay K.
Hello, Currently I have 2 folders, one for german and english language translations, respectively The translations are inside a django.po file for each language. I want to add a new language How can I do it? thanks -- You received this message because you are subscribed to the Google Groups

Re: south for django

2011-03-31 Thread jay K.
nd of code This piece of code has been generating an error when executing the *python manage.py schemamigration myApp --initial* command in South If the above code has doesn't do anything, I will comment it out On Thu, Mar 31, 2011 at 5:04 PM, jay K. wrote: > > Hello, > > I&

south for django

2011-03-31 Thread jay K.
Hello, I've been using south to migrate a database I followed all the commands to make the migrations in south (--initial and --auto), all of this, after making my desired changes in modes.py but when I refresh my page I still get a "Error 505" messages I've checked spelling mistakes etc but fo

Re: south for django

2011-03-31 Thread jay K.
that's weird, because I keep getting the same error the field that I'm using is not custom (models.TextField) it may be located somewhere else On Thu, Mar 31, 2011 at 4:47 PM, Shawn Milochik wrote: > You don't need that inspection feature for fields known to Django. Just > custom types. >

Re: south for django

2011-03-31 Thread jay K.
All I did to change my models.py, was to add the following line *map_text = models.TextField( 'Map text', blank = True, null = False, help_text = 'text on the subpage "map"')* As you can see, I intend to add a new text area in my models.py At the bottom of the page, I type this code *from south

south for django

2011-03-31 Thread jay K.
hello, I've downloaded and installed south successfully to manage changes with my models.py file I type the following command *python manage.py schemamigration myApp --auto* then, get the following message *You cannot use --auto on an app with no migrations. Try --initial.* So I do as stated,

Re: new text area in django admin page

2011-03-31 Thread jay K.
thanks, it works fine!! I can't believe I spent 2 days trying to sort out my database issues greatly appreciate your advice :) On Thu, Mar 31, 2011 at 3:04 PM, Shawn Milochik wrote: > > On Mar 31, 2011 1:55 PM, "jay K." wrote: > > > > Thanks for the adv

Re: new text area in django admin page

2011-03-31 Thread jay K.
Thanks for the advice, But I am not exactly migrating databases, just modifying an existing one On Thu, Mar 31, 2011 at 2:50 PM, Shawn Milochik wrote: > On Thu, Mar 31, 2011 at 1:39 PM, jay K. > wrote: > > > > > > > > So what am I doing wrong? > > > &

Re: new text area in django admin page

2011-03-31 Thread jay K.
ge.py sql *my-application* However, when I refresh my website, I get an *Error 505. *This error appears only in the pages that use the models.py file I've modified, so the rest of the website works fine. So what am I doing wrong? Thanks On Thu, Mar 31, 2011 at 11:58 AM, Daniel Rosema

new text area in django admin page

2011-03-31 Thread jay K.
hello how can i add a new text field in the django admin area i want to create a new subpage thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this g

Re: new subpage in django

2011-03-30 Thread jay K.
Xavier Ordoquy wrote: > > Le 30 mars 2011 à 21:16, jay K. a écrit : > > > Hello, > > > > How do you create a new subpage in django? > > > > thanks > > Hi, > > What do you mean or I'd rather ask, what are you trying to do ? > > Regards, >

new subpage in django

2011-03-30 Thread jay K.
Hello, How do you create a new subpage in django? thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr..

Re: manage.py command not found

2011-03-30 Thread jay K.
hi, Shawn I finally managed to get python manage.py shell to work, by commenting out those INSTALLED_APPS that had an issue with 'import x' it turns out that 'import x' was the problem. do you have any suggestions to fix 'import x'? thanks On Wed, M

Re: manage.py command not found

2011-03-30 Thread jay K.
Hello, Shawn I type python manage.py shell in my project directory and get the following error Error: No module named xx regards On Wed, Mar 30, 2011 at 11:52 AM, Shawn Milochik wrote: > Check the permissions on manage.py. I'm guessing it's not executable. > > Either use chmod +x on manag

manage.py command not found

2011-03-30 Thread jay K.
Hello, I am following the tutorial at http://south.aeracode.org/docs/installation.html#installation-configure in order to install South. I've installed it successfully and modified INSTALLED_APPS so it includes 'south', in the settings.py now I execute the command: ./manage.py shell inside my cu

need to change models

2011-03-30 Thread jay K.
Hello, I've been struggling for quite a white with this whenever i change my models.py file by adding a new text area I get a 'error 500 internal server error' besides i keep getting an error whenever i try to syncdb my database can anyone please explain what i'm doing wrong? thanks -- You