Re: am new bird to django,need some suggestion...please please do reply friend..

2012-07-01 Thread manish girdhar
hmm hmmm no i have not read that page...can you please send me the link of that page...i didnot find that...i checked http://www.djangobook.com/en/1.0/and http://www.djangobook.com/en/2.0/ and please suggest me some application or link ,which is basic and open source.. so that i can get through

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread Alec Taylor
Sounds good, but have you considered using Google+ Hangouts? On Mon, Jul 2, 2012 at 1:09 AM, Cal Leeming [Simplicity Media Ltd] wrote: > Wow - glad to see there's people interested in this! > > Here is the schedule, could everyone please select which

Re: Query with GeoDjango

2012-07-01 Thread Emiliano M. Rudenick
El Sat, 30 Jun 2012 17:18:27 -0700 (PDT) Odagi escribió: > class Restaurant(models.Model): > place = models.OneToOneField(Place, primary_key=True) > serves_hot_dogs = models.BooleanField() > serves_pizza = models.BooleanField() Use GeoManager in your Restaurant

Newbie form question

2012-07-01 Thread Russ Abbott
As a Django newbie I apologize if this is a trivial question. I'd like to use a form field as an element in a generated page but not as part of a form. In particular, I'm generating a table, some of whose elements are text and others of which I want to be drop-down lists. I thought I might be

Re: am new bird to django,need some suggestion...please please do reply friend..

2012-07-01 Thread Daniel Roseman
On Sunday, 1 July 2012 16:07:28 UTC+1, rick wrote: > > hello django lovers, am new bird to this language and i have read django > documentation and did not able to learnt it properly . am making a small > application of *students management system *,in which i have to do*insertion > of new

Re: settings and constants on a reusable app

2012-07-01 Thread Thomas Orozco
Have a default settings, that you only use when the required setting is not found in the actual settings file. Le 30 juin 2012 20:09, "Bill Freeman" a écrit : > Support an additional variable MY_APP_USE_OTHER_CONSTANT (MY and > MY_APP, are, I hope, not the prefixes you are

Re: Upload a valid image. The file you uploaded was either not an image or a corrupted image.

2012-07-01 Thread Nikhil Verma
Hi Thomos I reinstalled almost everything and then simply install PIL and i get this PIL 1.1.7 SETUP SUMMARY version 1.1.7 platform linux2 2.7.2+ (default, Oct 4 2011, 20:06:09) [GCC

Re: Upload a valid image. The file you uploaded was either not an image or a corrupted image.

2012-07-01 Thread Thomas Orozco
Did you get any error messages during the PIL instalation that indicated why jpeg support was unavailable? Specifically, which files could not be found? Maybe you don't have the correct roots included? I'm not sure Django (that's what you're using, using right?) would use pillow, especially when

Re: javascript in django template not executed when request is sent via ajax

2012-07-01 Thread Larry Martell
On Fri, Jun 29, 2012 at 2:45 PM, Larry Martell wrote: > I have a django template that has some javascript/jQuery code in it > that defines some keyup event handers. If a user goes to the URL > directly the javascript is executed, and the event handers all work > fine.

Re: Upload a valid image. The file you uploaded was either not an image or a corrupted image.

2012-07-01 Thread Nikhil Verma
HI Thomos I also installed pillow and now it shows th support but i am having the same error. SETUP SUMMARY (Pillow 1.7.7 / PIL 1.1.7) version

Re: Management form in Model Formsets

2012-07-01 Thread Knight Samar
Thanks Thomas! I checked the script and tried to follow it. It seems that for Django 1.2, *not* modifying the form-TOTAL_FORMS, form-INITIAL_FORMS and form-MAX_NUM_FORMS works properly!! Regards, Samar On Sunday, 1 July 2012 22:12:37 UTC+5:30, Thomas Orozco wrote: > > You might want to check

Re: Upload a valid image. The file you uploaded was either not an image or a corrupted image.

2012-07-01 Thread Nikhil Verma
Hi Thomos As you said i reinstalled it and in my virtualenv i did pip install -I pil It succesfully installed and i get this PIL 1.1.7 SETUP SUMMARY

Re: Upload a valid image. The file you uploaded was either not an image or a corrupted image.

2012-07-01 Thread Thomas Orozco
Now that the required packages are installed, could you try removing PIL and reinstalling? To remove PIL, find the installation directory and the egg and remove them from your system. Then, I reinstall using apt, easy install or pip. Don't forget to sudo. Le 1 juil. 2012 18:38, "Nikhil Verma"

Re: Management form in Model Formsets

2012-07-01 Thread Thomas Orozco
You might want to check this snippet out: djangosnippets.org/snippets/1389*/ * Le 1 juil. 2012 06:27, "Knight Samar" a écrit : > Hi, > > I am using Django 1.2 and developing using Model formsets. Using > JavaScript, I am allowing the user to dynamically "Add another"

Re: Upload a valid image. The file you uploaded was either not an image or a corrupted image.

2012-07-01 Thread Nikhil Verma
HI Thomos I tried this nikhil@nikhil-desktop:~$ sudo apt-get install libjpeg libjpeg-dev libfreetype6-dev zlib1g-dev Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'libjpeg62-dev' instead of 'libjpeg-dev' E: Unable to locate package

Re: Upload a valid image. The file you uploaded was either not an image or a corrupted image.

2012-07-01 Thread Thomas Orozco
Installing the packages through apt-get gave you the error? Could you please post the full output of the apt-get command? Le 1 juil. 2012 18:27, "Nikhil Verma" a écrit : > HI Thomos > > > I tried what you suggest and i recieved this. > > sudo apt-get install libjpeg

Re: Upload a valid image. The file you uploaded was either not an image or a corrupted image.

2012-07-01 Thread Nikhil Verma
HI Thomos I tried what you suggest and i recieved this. sudo apt-get install libjpeg libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev Traceback (most recent call last): File "/home/nikhil/Citysom/bin/easy_install", line 8, in load_entry_point('setuptools==0.6c11', 'console_scripts',

Re: Upload a valid image. The file you uploaded was either not an image or a corrupted image.

2012-07-01 Thread Thomas Orozco
Do you have jpeg support installed for PIL? Le 1 juil. 2012 18:13, "Nikhil Verma" a écrit : > > Hi All > > I am trying to add jpeg image in a ImageField. and it gives this error . > It is not allowing me to save the image. > > I have installed PIL and image other

Upload a valid image. The file you uploaded was either not an image or a corrupted image.

2012-07-01 Thread Nikhil Verma
Hi All I am trying to add jpeg image in a ImageField. and it gives this error . It is not allowing me to save the image. I have installed PIL and image other utilities. Upload a valid image. The file you uploaded was either not an image or a corrupted image. Can anybody point what is missing ?

Re: Django CMS 2.3 Released!

2012-07-01 Thread Pascal Chambon
Yayh, django-cms and django-zinnia latest versions can once agains work together B-) thanks, regards, PKL Le 29/06/2012 15:42, Jonas Obrist a écrit : Today I am very excited that we just released Django CMS 2.3, with Django 1.4 support. You can read the release notes at Django at

Django-Grappelli...... customize the admin/base_site.html

2012-07-01 Thread bruce
Dear All, Before Grappelli is installed, I can simply create a customized admin/base_site.html to override the default admin/base_site.html. After the Grappelli is installed, I failed to do it. Is there any way I can customize the base_site.html file? or, is there any links for additional

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread Cal Leeming [Simplicity Media Ltd]
Wow - glad to see there's people interested in this! Here is the schedule, could everyone please select which days/times they are available (enter more than one if possible) http://www.doodle.com/8ptehyqr6uezhtsy I'll leave the schedule open until 14th July, whichever slot gets the most votes

am new bird to django,need some suggestion...please please do reply friend..

2012-07-01 Thread rick
hello django lovers, am new bird to this language and i have read django documentation and did not able to learnt it properly . am making a small application of *students management system *,in which i have to do*insertion of new record ,deletion and search of record. *..and am facing problem

Re: am new to use forms in django..

2012-07-01 Thread manish girdhar
hii..thanks for the concern ... yeha i have gone through it..and now that problem is solved.. On Sun, Jul 1, 2012 at 5:33 PM, pankaj anand wrote: > Have you gone through this ? > > https://docs.djangoproject.com/en/dev/topics/forms/?from=olddocs > > > On Saturday, 30

url pattern dont study. 8very urgent)

2012-07-01 Thread pakyazilim
i want to design url pattern url(r'^yapilacaklar/ ','todo.views.todo_list', name='todo_list'), url(r'^yapilacaklar/(?P[0-9]+){0,1}?/(?P[A-Za-z]+)$','todo.views.todo_list', name='todo_list'), but i have error that statement. yapilacaklar/ yapilacaklar/1 yapilacaklar/1/sil

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread Ehab Elgendy
+1 :) cool topic On Saturday, June 30, 2012 6:10:27 PM UTC+3, Cal Leeming [Simplicity Media Ltd] wrote: > > Hi all, > > As some of you know, I did a live webcast last year (July 2011) on our LLG > project, which explained how we overcome some of the problems associated > with large data

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread pankaj anand
+1 Please :) On Saturday, 30 June 2012 20:40:27 UTC+5:30, Cal Leeming [Simplicity Media Ltd] wrote: > > Hi all, > > As some of you know, I did a live webcast last year (July 2011) on our LLG > project, which explained how we overcome some of the problems associated > with large data

Re: Use regular expression to retrieve all image tags from a given content

2012-07-01 Thread pankaj anand
You can also use Pyquery for this purpose.. On Saturday, 30 June 2012 18:07:13 UTC+5:30, mo.mughrabi wrote: > > Hello, > > am really a noob with regular expressions, I tried to do this on my own > but I couldn't understand from the manuals how to approach it. Am trying to > find all img tags

Re: am new to use forms in django..

2012-07-01 Thread pankaj anand
Have you gone through this ? https://docs.djangoproject.com/en/dev/topics/forms/?from=olddocs On Saturday, 30 June 2012 01:09:47 UTC+5:30, rick wrote: > > > > On Sat, Jun 30, 2012 at 12:09 AM, rick wrote: > >> i dont knw where to make a form...right now i am making

admin addGroup similar layout

2012-07-01 Thread ledzgio
Hi all, I would like to have a layout similar to the one in the Admin page --> Groups --> Add Group, the Permissions field, where I can have all elements of a table throw a foreignKey (I suppose) on the left and add them to the right side. How can I reproduce this configuration? how can I

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread william ratcliff
Sounds fun! On Sunday, July 1, 2012, James wrote: > > > On Saturday, June 30, 2012 11:10:27 AM UTC-4, Cal Leeming [Simplicity > Media Ltd] wrote: >> >> Hi all, >> >> As some of you know, I did a live webcast last year (July 2011) on our >> LLG project, which explained how we overcome some of the

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread James
On Saturday, June 30, 2012 11:10:27 AM UTC-4, Cal Leeming [Simplicity Media Ltd] wrote: > > Hi all, > > As some of you know, I did a live webcast last year (July 2011) on our LLG > project, which explained how we overcome some of the problems associated > with large data processing. > > After

Re: Django Sessions - HttpResponseRedirect

2012-07-01 Thread M Oklah
I saw that post and set request.session.modified = True before redirecting in the view with no luck! Any other ideas? Thanks, -Moe On Sun, Jul 1, 2012 at 4:08 PM, Alagappan wrote: > I think someone has faced a similar issue as yours. Find more details at: > >

Django Sessions - HttpResponseRedirect

2012-07-01 Thread M Oklah
Hello, Why is it that the session id changes after a redirect is initiated from a view function? This is basically the scenario, after the browser makes a POST request to a custom login() view function, the view function authenticates the user and redirects (302) the user back to a page, but the

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread Davinir F Campos Jr
+1 Em 01/07/2012 08:06, "Alec Taylor" escreveu: > +! :] > > On Sun, Jul 1, 2012 at 5:52 PM, ionic drive wrote: > > +1 great! > > > > > > On Sat, 2012-06-30 at 16:10 +0100, Cal Leeming [Simplicity Media Ltd] > wrote: > > > > Hi all, > > > > > > > >

Re: Query with GeoDjango

2012-07-01 Thread Jani Tiainen
I thought that it was fixed along with https://code.djangoproject.com/ticket/12344 ... Bascially it aoubt that Django picks "origin manager" to be used in related models (and thus related model manager) as well and that seem to cause queries to fail. On Sun, Jul 1, 2012 at 3:42 AM, Ethan Jucovy

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread Alec Taylor
+! :] On Sun, Jul 1, 2012 at 5:52 PM, ionic drive wrote: > +1 great! > > > On Sat, 2012-06-30 at 16:10 +0100, Cal Leeming [Simplicity Media Ltd] wrote: > > Hi all, > > > > As some of you know, I did a live webcast last year (July 2011) on our LLG > project, which explained

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread ionic drive
+1 great! On Sat, 2012-06-30 at 16:10 +0100, Cal Leeming [Simplicity Media Ltd] wrote: > Hi all, > > > > As some of you know, I did a live webcast last year (July 2011) on our > LLG project, which explained how we overcome some of the problems > associated with large data processing. > > >

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread Nikhil Verma
Great . +1 On Sun, Jul 1, 2012 at 1:12 PM, Àlex Pérez wrote: > +1 > > > 2012/7/1 s > >> Great >> On Jun 30, 2012 6:10 PM, "Cal Leeming [Simplicity Media Ltd]" < >> cal.leem...@simplicitymedialtd.co.uk> wrote: >> >>> Hi all, >>> >>> As some of you

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread Àlex Pérez
+1 2012/7/1 s > Great > On Jun 30, 2012 6:10 PM, "Cal Leeming [Simplicity Media Ltd]" < > cal.leem...@simplicitymedialtd.co.uk> wrote: > >> Hi all, >> >> As some of you know, I did a live webcast last year (July 2011) on our >> LLG project, which explained how we overcome