Re: about_dajngo
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 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
url_dir
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 satveerkaur.blogspot.in -- 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: url_dir
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 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: url_dir
> 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 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
[no subject]
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 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
Graphs in django
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..But i need to display this curve in browser window. Please tell me what changes i have to make in this code -- Satvir Kaur -- 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Graphs in django
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 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
image in browser
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('myapp/bio.html', {'img':image_data}, context_instance=RequestContext(request)) Now, The image is not availble into the html file that is displaying in browser, Tell me where I m wrong. -- Satvir Kaur -- 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: image in browser
> 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 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: image in browser
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 >> file). >> >> >> What should i ??? Image is not displaying. > > > Normally in an HTML file you put the image path in the src attribute, not > the binary data (you can use a data URI with base64 encoding, but you almost > certainly don't want to do that). Yes Sir, when i put whole path of image in src attribute its not working. -- Satvir Kaur satveerkaur.blogspot.in -- 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: image in browser
> 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 satveerkaur.blogspot.in -- 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: image in browser
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 suggest you do the tutorial in the official > documentation. Also you should learn at least the basics of javascript. > The problem you have been bringing up in the last week is not best > solved by generating an image on the server side and passing it to the > template. The problem is solved by generating the data server side, > passing this data to the template and using a js library to generate and > render the image on the page. > thnx Sir. I will do that. -- Satvir Kaur satveerkaur.blogspot.in -- 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: no module named books found
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. > 'USER': 'root', # Not used with sqlite3. > 'PASSWORD':'', # Not used with sqlite3. what is your password here??? -- Satvir Kaur satveerkaur.blogspot.in -- 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
upload image
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 form. -- Satvir Kaur satveerkaur.blogspot.in -- 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: upload image
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 MEDIA_ROOT = '/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/' MEDIA_URL = 'http://localhost/media/' and i made changes in the models file as: file_upload=models.FileField(upload_to='img') I created a html file like: {% if form.errors %} Please correct the error{{ form.errors|pluralize }} below. {% endif %} Fill Following Entries carefully {% csrf_token %} {{ form.as_table }} but when i try to submit data it makes the upload file empty and gives notification this field(file upload) is required. > 2. ensure your upload mechanism in the first form puts the uploaded image in > the right place > > You will find the uploaded image somewhere in your MEDIA_ROOT directory tree > > https://docs.djangoproject.com/en/dev/ref/models/fields/#imagefield -- Satvir Kaur satveerkaur.blogspot.in -- 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: upload image
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 = >> '/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/' Now, I set my setting.py as MEDIA_ROOT='/home/toor/media/' >setup your front-end httpd server to serve the files from this directory as >well. Please tell me how to setup httpd sever to serve the files from this directory. The images are stored into a folder and their paths which are relative to MEDIA_ROOT are being store into table. Please help me take the images back into database. -- Satvir Kaur satveerkaur.blogspot.in -- 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: upload image
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="multipart/form-data">) > I did it. Problem solved. Thanx Sir. >>> MEDIA_ROOT = >>> '/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/' > Now, I set my setting.py as > MEDIA_ROOT='/home/toor/media/' > >>setup your front-end httpd server to serve the files from this directory as >>well. > Please tell me how to setup httpd sever to serve the files from this > directory. The images are stored into a folder and their paths which > are relative to MEDIA_ROOT are being store into table. Please help me > to take the images back into browser. The method through which i can retrieve > images from the database to the browser form. > > > -- > Satvir Kaur > satveerkaur.blogspot.in -- Satvir Kaur satveerkaur.blogspot.in -- 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
cad application
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 "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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
map in django
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 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: map in django
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 and how you get a location, we can help you > better. No it is not a constant location. Actually my requirement is to enter the address for mapping location and from that map i want to fetch the co-ordinates.Locations means address on map. -- Satvir Kaur satveerkaur.blogspot.in -- 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: map in django
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 address field. Please help me. -- Satvir Kaur satveerkaur.blogspot.in -- 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: map in django
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 -- 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 options, visit this group at http://groups.google.com/group/django-users?hl=en.