Re: about_dajngo

2012-06-05 Thread Satvir Toor
On Wed, Jun 6, 2012 at 10:47 AM, kenneth gonsalves wrote: > any library that you ordinarily use in your html pages will work. What are the major uses of numpy and matplotlib libraries in django. -- Satvir Kaur satveerkaur.blogspot.in -- You received this message because you are subscribed to

url_dir

2012-06-06 Thread Satvir Toor
I installed a application source code downloaded from Internet . Please explain me the following code that exists in urls.py file of the project. url(r'^pyrheology/plot/str/(?P\d+).png$',\ 'pyrheology.views.str_tmc_plot_img',\ name='pyrheology-str-tmc-plot-img'), -- Satvir Kaur sa

Re: url_dir

2012-06-06 Thread Satvir Toor
I read the link https://docs.djangoproject.com/en/1.3/topics/http/urls/ above unable to understand what is regular expression in url pattern e.g r'^pyrheology/plot/tensile/(?P\d+).png$' -- Satvir Kaur satveerkaur.blogspot.in -- You received this message because you are subscribed to the

Re: url_dir

2012-06-06 Thread Satvir Toor
> Please take the time to formulate your question properly. If you're > expecting people to take the time to answer you, it's the very least you can > do. sure Sir -- Satvir Kaur satveerkaur.blogspot.in -- You received this message because you are subscribed to the Google Groups "Django use

[no subject]

2012-06-07 Thread Satvir Toor
here is my problem As i request for a url specified in urlpatterns variable in urls.py file of the djangoproject It gives TypeError Exception Value: 'str' object is not callable suggest me -- You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Graphs in django

2012-06-11 Thread Satvir Toor
here is code to display sin curve from pylab import * t = arange(0.0, 2.0, 0.01) s = sin(2*pi*t) plot(t, s, linewidth=1.0) xlabel('time (s)') ylabel('voltage (mV)') title('About as simple as it gets, folks') grid(True) show() its working well but the output is being display in different window

Re: Graphs in django

2012-06-11 Thread Satvir Toor
On Tue, Jun 12, 2012 at 11:15 AM, Alec Taylor wrote: > Put it in the template or whatnot > > Might be an easier job for a javascript graph library, or even processing-js okie.But i am not clear with javascript graph libraray -- Satvir Kaur satveerkaur.blogspot.in -- You received this message b

image in browser

2012-06-13 Thread Satvir Toor
hello, i wish to display the image into the browser through a template . I used the following code to retrieve the image from Disk and send that data to Html file def my_image(request): image_data = open("/home/toor/Desktop/certificate/logo.png", "rb").read() return render_to_response('my

Re: image in browser

2012-06-14 Thread Satvir Toor
> This is a strange thing to want to do. What are you doing with `img` in the > template? I am using image_data variable as a image source in the template(html file). What should i ??? Image is not displaying. -- Satvir Kaur satveerkaur.blogspot.in -- You received this message because you

Re: image in browser

2012-06-14 Thread Satvir Toor
On Thu, Jun 14, 2012 at 2:32 PM, Daniel Roseman wrote: > On Thursday, 14 June 2012 09:51:00 UTC+1, Satvir Kaur wrote: >> >> > This is a strange thing to want to do. What are you doing with `img` in >> > the >> > template? >> I am using image_data variable as a image source in the template(html >>

Re: image in browser

2012-06-14 Thread Satvir Toor
> You better show us the template too. Problem solved. Image is displaying just putting the image into the localhost directories(/var/www/logo.png) and giving the src attribute as http://localhost/logo.png"; `width="200" height="200" alt="image is not available" align="right"/> -- Satvir Kaur sa

Re: image in browser

2012-06-14 Thread Satvir Toor
On Thu, Jun 14, 2012 at 3:33 PM, kenneth gonsalves wrote: > from the questions you have been asking on the list it seems to me that > you are unfamiliar with web programming. I suggest that you take some > time out to learn the basics of web programming and also to understand > how django works. I

Re: no module named books found

2012-06-16 Thread Satvir Toor
On Sat, Jun 16, 2012 at 4:58 PM, Sabbineni Navneet wrote: > DATABASES = { >     'default': { >         'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', > 'mysql', 'sqlite3' or 'oracle'. >         'NAME': 'xam',                      # Or path to database file if > using sqlite3.

upload image

2012-06-16 Thread Satvir Toor
I want to upload a image through django forms.I created a class and that file-upload element is visible into the browser.It makes me enable to choose the file. How to handle that image??? Can anybody explain what would be whole procedure to upload a image and the display that image into my Another

Re: upload image

2012-06-16 Thread Satvir Toor
On Sun, Jun 17, 2012 at 5:31 AM, Mike Dewhirst wrote: > On 17/06/2012 5:16am, Satvir Toor wrote: > 1. Include the image in your other form href="{{MEDIA_URL}}somedir/image.png"> I followed the link which you suggest me. I made changes in settings.py file of the project as

Re: upload image

2012-06-17 Thread Satvir Toor
On Sun, Jun 17, 2012 at 12:36 PM, Kurtis Mullins wrote: >> On Sun, Jun 17, 2012 at 2:33 AM, Satvir >> Toor  wrote: > Make sure you set up the Form enctype correctly. ( ... enctype="multipart/form-data">) I did it. Problem solved. Thanx Sir. >> MEDIA_ROOT =

Re: upload image

2012-06-17 Thread Satvir Toor
On Mon, Jun 18, 2012 at 6:29 AM, Satvir Toor wrote: > On Sun, Jun 17, 2012 at 12:36 PM, Kurtis Mullins > wrote: >>> On Sun, Jun 17, 2012 at 2:33 AM, Satvir >>> Toor  wrote: > >> Make sure you set up the Form enctype correctly. (> ... enctype="multipar

cad application

2012-06-21 Thread Satvir Toor
can we make cad applications through the django??? If any one know about a link where i can find such information just tell me. I could not find any information regarding it. -- Satvir Kaur satveerkaur.blogspot.in -- You received this message because you are subscribed to the Google Groups "

map in django

2012-07-04 Thread Satvir Toor
Hello!!! Everyone I am new to maps in django.I want to display map in django application and to capture the latitude and longitude for that location and to save in database. Please give me reference. -- Satvir Kaur satveerkaur.blogspot.in -- You received this message because you are subscribe

Re: map in django

2012-07-05 Thread Satvir Toor
On Thu, Jul 5, 2012 at 12:38 PM, Timothy Makobu wrote: > Something like this? http://timslab.net/tornodes/ can say. > > Questions; how do you GET the location? Is it a constant location, or does > it depend on something? What is at that location, that makes you want to > save it? Once we know why

Re: map in django

2012-07-05 Thread Satvir Toor
I followed below link http://pypi.python.org/pypi/django-google-maps/ it works fine in admin interface, But I want to display a map using django templates. I wish for a output like No. of text fields and a address field, the map would display the location on itself according to value entered into a

Re: map in django

2012-07-11 Thread Satvir Toor
On Wed, Jul 4, 2012 at 9:23 PM, yak-man wrote: > You might try browsing these: > The code from Zain's US PyCon2012 tutorial on making interaxtive maps is also > in his github repositories - you might find that interesting. What is link for that??? -- Satvir Kaur satveerkaur.blogspot.in -- Yo