Re: MEDIA and STATIC in a nutshell?

2011-05-13 Thread Shawn Milochik
Did you read the docs? http://docs.djangoproject.com/en/1.3/ref/contrib/staticfiles/ To use the staticfiles app you need to not only put the right things in settings.py, but also run manage.py collectstatic to gather up all your static content, then rsync/copy/whatever that content to the

Re: all data of all manyToMany relations lost!

2011-05-13 Thread ?manu*
Maybe I found the offending command!! Here is what I wrote: # T is some model in my model.py opts = T._meta fields = opts.fields fields.extend(opts.many_to_many) ... This is awful! I'm erroneously modifying the fields value of my model! E. On 13 Mag, 23:45, "?manu*"

MEDIA and STATIC in a nutshell?

2011-05-13 Thread Eiji Kobayashi
Hi Everyone, This may seem like a very stupid question, but what exactly is the difference between MEDIA and STATIC? I read through the Django doc and it seems like STATIC is for css,js,img... etc., while MEDIA is for user uploaded files? But I'm confused because things do not work exactly like

Re: How to choose a license for an app or a project?

2011-05-13 Thread Lior Sion
I just remembered once seeing a license generator at Binpress, maybe that can be the quick easy solution: http://www.binpress.com/license/generator On May 13, 8:06 pm, Boštjan Mejak wrote: > This is getting way out of hand. I was hoping for a simple yes/no answer. > And

Re: Template inheritance, how to render dynamic content in base templates

2011-05-13 Thread robinne
Ok, thanks everyone for the replies. I will take a look at these suggestions. On May 13, 6:06 am, Michal Petrucha wrote: > On Thu, May 12, 2011 at 08:15:59PM -0700, robinne wrote: > > How can I render dynamic content in a base template if I only call a > > view on my

Re: Why is request.session.flush() deleting my objects from DB?

2011-05-13 Thread Shawn Milochik
Given that logging a user out calls flush(), I don't believe that's what's deleting your data. Otherwise everyone using contrib.auth would be complaining. What data is being deleted? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: How to choose a license for an app or a project?

2011-05-13 Thread Kenneth Gonsalves
On Fri, 2011-05-13 at 19:06 +0200, Boštjan Mejak wrote: > This is getting way out of hand. I was hoping for a simple yes/no > answer. > And what I got? A bunch of yada yada. Can't you people just express > yourself > by saying yes or no? because it is not a simple question to answer yes or no. >

Re: How to choose a license for an app or a project?

2011-05-13 Thread Kenneth Gonsalves
On Fri, 2011-05-13 at 12:23 +, Bjarni Rúnar Einarsson wrote: > Other random points: Generally speaking, I prefer the more recent, > modern > licenses (GPLv3 instead of GPLv2, Apache instead of BSD) because they > do a > better job covering issues like patents. Some would argue that > putting

Why is request.session.flush() deleting my objects from DB?

2011-05-13 Thread ekms
Hello, I have a form where I want that every time that a user want to send it, he has to login. So, before the view that render the form, I made another view where I do request.session.flush() and after this, I redirect to the form (the view of the form has @login_required). User completes the

Re: Change select to a form in a ForeignKey relationship

2011-05-13 Thread Ernesto Guevara
Very good, I edited here. Thank You! 2011/5/13 Shawn Milochik > On 05/13/2011 04:22 PM, Guevara wrote: > >> Thank you shaw! >> >> You're welcome. Note that there's no reason to add 'commit = True' when > saving the address -- that's the default. > > > Shawn > > -- > You

UTF-8 and files automatically created

2011-05-13 Thread Michael
Hello everybody, I am a beginner with Django and I was wondering something about UTF-8. As a matter of fact, the files created automatically by Django when you create your site and apps are not encoded in UTF-8. So some characteres like the end of line are specific to the OS you have been

Re: Model query whit n OR

2011-05-13 Thread Fabian Ezequiel Gallina
2011/5/13 Martin Quinta : > i need a serch in db  users > (users have  city, age,sex.. etc) > > but i need serch users from many citys. > > somthing like this... >  from django.db.models import Q >

Model query whit n OR

2011-05-13 Thread Martin Quinta
i need a serch in db users (users have city, age,sex.. etc) but i need serch users from many citys. somthing like this... from django.db.models import Q (http://docs.djangoproject.com/en/dev/topics/db/queries/#complex- lookups-with-q-objects) users.objects.get(Q(city='') | Q(city=''),

all data of all manyToMany relations lost!

2011-05-13 Thread ?manu*
Dear experts, today I was inspecting the ManyToMany relations in the _meta subclass of a Model class of my database. At some time I realized that all data associated to such relations was lost in the database! The corresponding tables are empty. Other fields and relations are ok. I suspect I

Re: Cache entire page *except* one block?

2011-05-13 Thread Nan
Ah, that helps a lot! Thanks, Jacob! On May 13, 5:22 pm, Jacob Kaplan-Moss wrote: > On Fri, May 13, 2011 at 3:01 PM, Nan wrote: > > I'm working on a site where about 95% of the pages are "static" and > > change no more than once a week, and should

Re: Change select to a form in a ForeignKey relationship

2011-05-13 Thread Shawn Milochik
On 05/13/2011 04:22 PM, Guevara wrote: Thank you shaw! You're welcome. Note that there's no reason to add 'commit = True' when saving the address -- that's the default. Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Cache entire page *except* one block?

2011-05-13 Thread Jacob Kaplan-Moss
On Fri, May 13, 2011 at 3:01 PM, Nan wrote: > I'm working on a site where about 95% of the pages are "static" and > change no more than once a week, and should therefore be cached; > however, there are a couple blocks in the base template (login forms, > blocks that load

Re: Looking for recommendations to replace vBulletin with a django based forum

2011-05-13 Thread Cal Leeming [Simplicity Media Ltd]
Have you considered maybe writing one from scratch? It'd be a good way to try out new 1.3 features, and expand ones knowledge about Django :) Cal On Fri, May 13, 2011 at 4:43 PM, MikeKJ wrote: > > None of those but have used > http://code.google.com/p/django-forum/ >

Re: How to choose a license for an app or a project?

2011-05-13 Thread Jacob Kaplan-Moss
On Fri, May 13, 2011 at 12:35 PM, Boštjan Mejak wrote: > Where to put my license? In a file or in all the modules? I'll use MIT > license. Do I need to disclose the source code? I'm sorry, but I have a policy of not answering questions that are asked rudely, and you're

Re: Change select to a form in a ForeignKey relationship

2011-05-13 Thread Guevara
Thank you shaw! It works! if form.is_valid() and formE.is_valid(): address = formE.save(commit=True) employee = form.save(commit=False) employee.address = address employee.save() ## redirect to html list Thanks! On 13 maio, 16:17, Shawn

Cache entire page *except* one block?

2011-05-13 Thread Nan
Hi folks -- I'm working on a site where about 95% of the pages are "static" and change no more than once a week, and should therefore be cached; however, there are a couple blocks in the base template (login forms, blocks that load randomized content, etc) that shouldn't be cached. Is there any

Re: Looking for recommendations to replace vBulletin with a django based forum

2011-05-13 Thread roberto
I've been collaborating a little bit with askbot and I think it is worthy to try. The people who lead the project is very smart and gentle. Roberto On May 9, 11:27 pm, Eric Chamberlain wrote: > Hello, > > We are thinking about replacing our low-usage vBulletin forum with a django

Re: connection lost with concurrent transactions

2011-05-13 Thread Shawn Milochik
Are you using RabbitMQ as a backend? We're using both Celery and django-celery successfully with Django + Postgres and I've never seen the issue you describe. We do all our Celery stuff asynchronously, since the main point (for us) is to have the user's page load time as short as possible.

Re: Change select to a form in a ForeignKey relationship

2011-05-13 Thread Shawn Milochik
To do that you need to add a Meta to your ModelForm and exclude the address. Then add another ModelForm for Address and put both on the page at the same time. Then, after the POST, you'll need to first save the address and then add it to the cleaned_data of the employee form (or its

connection lost with concurrent transactions

2011-05-13 Thread otto.vazquez
Hi all, We are using django (1.3) with django-celery (2.2.4), database in postgres (9.0.1) with psycopg2 (2.2.2) connector for a large project (also large company). Executing celery tasks one by one works fine. When requested, django inserts a new row in db (django starts a transaction) and two

Change select to a form in a ForeignKey relationship

2011-05-13 Thread Guevara
Hello! I need to change the Select (combobox) generated by the ForeignKey relation: I have this class: class Employee(Person): address = models.ForeignKey(Address) Django automatically generates the combobox, but I wanted to be a form to enter the address of the Employee. The address is

Re: Re : get_absolute_url method breaks under 1.3 but works with 1.2.5

2011-05-13 Thread creecode
Hello wxHacker, Ummm... I've already defined the method and it worked under 1.2.5 and broke in 1.3. Am I misunderstanding your point? Perhaps my attachment < https://groups.google.com/group/django-users/attach/73bbe17d0b6bae40/absolute_url_test.zip?part=4=0 > didn't show at all end points?

Using generic_inlineformset_factory to inline a form for categories?

2011-05-13 Thread Stodge
I have the following models: class Category(models.Model): type = models.CharField(max_length=128) class CategoryTerm(models.Model): term = models.CharField(max_length=128) type = models.ForeignKey(Category, related_name='terms') class CategoryMap(models.Model): term =

Re: Re : get_absolute_url method breaks under 1.3 but works with 1.2.5

2011-05-13 Thread creecode
Hello Dominique, On Friday, May 13, 2011 10:09:19 AM UTC-7, Dominique Guardiola Falco wrote: None of my business, but you could also look why your code is calling this > method when it shouldn't be called > Or add a blank get_absolute_url methods to the models which doesn't have > one > The

Re: How to choose a license for an app or a project?

2011-05-13 Thread Boštjan Mejak
Where to put my license? In a file or in all the modules? I'll use MIT license. Do I need to disclose the source code? -- 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

Re: Re : get_absolute_url method breaks under 1.3 but works with 1.2.5 and many major and minor versions prior

2011-05-13 Thread Boštjan Mejak
Define get_absolute_url in models.py that is a file in your application's directory. from django.db import models class MyModeName(models.Model): # Add field names here like --> name = models.CharField(max_length=20, primary_key=True) def __unicode__(self): # Well, you

Re: How to choose a license for an app or a project?

2011-05-13 Thread Javier Guerra Giraldez
On Fri, May 13, 2011 at 12:13 PM, Thomas Weholt wrote: > And the point you're making about the non-legal isssues are just as > important for me as I want to "use" the community to make my own > software better. Hmmm ... as one of those copylefters it's somewhat of > a

Re: How to choose a license for an app or a project?

2011-05-13 Thread Thomas Weholt
On Fri, May 13, 2011 at 6:55 PM, Jacob Kaplan-Moss wrote: > On Fri, May 13, 2011 at 11:30 AM, Thomas Weholt > wrote: >> Hmmm ... maybe, but because of the reusable app focus in django I >> think some sort of guideline regarding choice of license

Re: How to choose a license for an app or a project?

2011-05-13 Thread Jacob Kaplan-Moss
On Fri, May 13, 2011 at 12:06 PM, Boštjan Mejak wrote: > This is getting way out of hand. I was hoping for a simple yes/no answer. > And what I got? A bunch of yada yada. This tone is uncalled for and borderline unacceptable here. You have no right to demand anything

Re : get_absolute_url method breaks under 1.3 but works with 1.2.5 and many major and minor versions prior

2011-05-13 Thread Dominique Guardiola Falco
None of my business, but you could also look why your code is calling this method when it shouldn't be called Or add a blank get_absolute_url methods to the models which doesn't have one -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: How to choose a license for an app or a project?

2011-05-13 Thread Boštjan Mejak
This is getting way out of hand. I was hoping for a simple yes/no answer. And what I got? A bunch of yada yada. Can't you people just express yourself by saying yes or no? Is it *that* hard? Okay now... I made a Django application called MyWiki (yes, it's a little simple wiki application). I don't

Re: How to choose a license for an app or a project?

2011-05-13 Thread Jacob Kaplan-Moss
On Fri, May 13, 2011 at 11:30 AM, Thomas Weholt wrote: > Hmmm ... maybe, but because of the reusable app focus in django I > think some sort of guideline regarding choice of license could be > important. The problem is that license choice is one of those "holy wars" that

Re: How to choose a license for an app or a project?

2011-05-13 Thread Javier Guerra Giraldez
On Fri, May 13, 2011 at 11:45 AM, Thomas Weholt wrote: > even sell it as > part of a larger piece of software i don't think GPL allows it. -- Javier -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: How to choose a license for an app or a project?

2011-05-13 Thread Thomas Weholt
> Look at it this way: > > If you want to force contribution back to your project, then AGPL or GPL3. > This limits participation of people who want to use your code in their > products or SAAS services because it forces them to release their > customizations for free. Well, I think that's my

Re: How to choose a license for an app or a project?

2011-05-13 Thread Thomas Weholt
On Fri, May 13, 2011 at 4:15 PM, Tom Evans wrote: > On Fri, May 13, 2011 at 3:05 PM, Boštjan Mejak > wrote: >> For example, the CCleaner GUI application provides only the setup (so the >> binaries) of the application. They don't give the source

Re: Looking for recommendations to replace vBulletin with a django based forum

2011-05-13 Thread MikeKJ
None of those but have used http://code.google.com/p/django-forum/ which as it says is basic but useable or look at this link http://www.djangopackages.com/grids/g/forums/ Eric Chamberlain wrote: > > Hello, > > We are thinking about replacing our low-usage vBulletin forum with a > django

Re: How to choose a license for an app or a project?

2011-05-13 Thread Mike Seidle
On Friday, May 13, 2011 07:34:35 am Thomas Weholt wrote: > I've released three django-related packages the last few months, all > under the GPL license. Recently somebody asked me about my license > choice; "Why not BSD, the same as django?". My reason for choosing GPL > is based on the fact that

Re: Use of FileField fields causes memory consumption to grow without releasing it

2011-05-13 Thread Gustavo Narea
I've filled a bug report: http://code.djangoproject.com/ticket/16022 On 13/05/11 10:57, Gustavo Narea wrote: > Hello, > > I've noticed that when you iterate over a query set and use a > FileField instance from each model instance, the memory used by the > process increases every time the loop

legacy code with javascript help please

2011-05-13 Thread MikeKJ
This legacy code outputs an image with a set of thumbnails to change the main image with, to start it is main image above thumbnails but when any thumbnail that is not forloop.first is clicked it swaps upside down like thumbnails with main image under and I cannot see how to maintain image above

Re: How to choose a license for an app or a project?

2011-05-13 Thread Javier Guerra Giraldez
On Fri, May 13, 2011 at 9:47 AM, Boštjan Mejak wrote: > P.S.: What does OT stand for? off-topic -- Javier -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: How to choose a license for an app or a project?

2011-05-13 Thread Boštjan Mejak
What I want to know is... Must I supply the source code of my application along with the binaries if using the MIT license? P.S.: What does OT stand for? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: New Django Profiling application

2011-05-13 Thread Brian Bouterse
I don't mean to suggest django-sentry provides the functionality discuss earlier. It doesn't. I point to django-sentry to illustrate the quality of projects done at Disqus. I consider django-sentry a very high quality Django application. I was told by dcramer that they at Disqus have an app

duplicate key value violates unique constraint "menus_cachekey_pkey"

2011-05-13 Thread wilbur
When loading a Django page, I get the error: IntegrityError while rendering: duplicate key value violates unique constraint "menus_cachekey_pkey" I am using Django 1.2.4 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: New Django Profiling application

2011-05-13 Thread Xavier Ordoquy
> On May 13, 9:34 pm, Brian Bouterse wrote: >> Go for it! >> >> I know the disqus team (told by dcramer at djangocon 2010) has a great >> profiling app, you should talk with them about this. The disqus folks said >> they were in the process of packaging it up to release

Re: How to choose a license for an app or a project?

2011-05-13 Thread Tom Evans
On Fri, May 13, 2011 at 3:05 PM, Boštjan Mejak wrote: > For example, the CCleaner GUI application provides only the setup (so the > binaries) of the application. They don't give the source code of it. If I > wanted the same thing with my app, is the MIT license the right

Re: How to choose a license for an app or a project?

2011-05-13 Thread Boštjan Mejak
bobhaugen, your link https://github.com/pinax/pinax/blob/master/LICENSE is an MIT license. -- 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

Re: New Django Profiling application

2011-05-13 Thread Adrien Lemaire
I'm currently using django-sentry in my project, but I didn't now they were doing something similar. Will keep an eye on their work, thanks for this advice Brian On May 13, 9:34 pm, Brian Bouterse wrote: > Go for it! > > I know the disqus team (told by dcramer at djangocon

Re: How to choose a license for an app or a project?

2011-05-13 Thread Boštjan Mejak
For example, the CCleaner GUI application provides only the setup (so the binaries) of the application. They don't give the source code of it. If I wanted the same thing with my app, is the MIT license the right choice for me? -- You received this message

Re: How to choose a license for an app or a project?

2011-05-13 Thread bobhaugen
Another angle on licenses is software community practice. If you want to develop an app to be widely adopted within a particular software community, you will want to use a license that is the same as or compatible with the community licensing practices. For example, I wanted to develop an app

Re: How to choose a license for an app or a project?

2011-05-13 Thread Tom Evans
On Fri, May 13, 2011 at 2:30 PM, Boštjan Mejak wrote: > So if I want to create a software for which I don't want to give the source > code to the world, I use the MIT license and I am fine? Also, which > particular BSD license is similar to the MIT license in the means of

Re: How to choose a license for an app or a project?

2011-05-13 Thread Stuart MacKay
Boštjan, Details of the BSD (2 and 3 clause versions) can be found at, http://www.opensource.org/licenses/bsd-license. I use the 3-clause version for my Open Source projects which allows anybody to redistribute the code in binary form only. However if you really want to keep the source

Re: Use Ajax to retrieve data from db based on data from input box and adding it to a table.

2011-05-13 Thread AJ
No problem. I am a beginner myself in Django. Just learning by asking and answering seems a very nice way. Enjoy hacking! :) On Fri, May 13, 2011 at 8:39 AM, GKR wrote: > thanks > > > -- > You received this message because you are subscribed to the Google Groups > "Django

Re: How to choose a license for an app or a project?

2011-05-13 Thread Boštjan Mejak
So if I want to create a software for which I don't want to give the source code to the world, I use the MIT license and I am fine? Also, which particular BSD license is similar to the MIT license in the means of not needing to give the source code? -- You received this message because you are

Re: How to choose a license for an app or a project?

2011-05-13 Thread Tom Evans
On Fri, May 13, 2011 at 1:30 PM, Brian Bouterse wrote: > Very few licenses guard against this > licensing gotcha:   If the source is on the internet, I can download, > modify, and mash up your code to create some type of service based website. >  Since I never actually

Re: Template inheritance, how to render dynamic content in base templates

2011-05-13 Thread Michal Petrucha
On Thu, May 12, 2011 at 08:15:59PM -0700, robinne wrote: > How can I render dynamic content in a base template if I only call a > view on my child template? > > What I am trying to do is setup a base template that will include > "Profile" information for the user who is logged in, for example: >

Re: Template inheritance, how to render dynamic content in base templates

2011-05-13 Thread Gabe
I suggest reading about inclusion tags: http://docs.djangoproject.com/en/1.3/howto/custom-template-tags/ worked for me Gabe On 13 Maj, 07:51, Mateusz Marzantowicz wrote: > On Fri, May 13, 2011 at 5:15 AM, robinne wrote: > > How can I

Re: How to choose a license for an app or a project?

2011-05-13 Thread Boštjan Mejak
By using an MIT license, is your software's source code protected by means of not needing for you to provide it to the whole world? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Built-in login form via inclusion tag

2011-05-13 Thread Gabe
Hi, what I am trying to do is to put a login box which will use django.contrib.auth.views.login. According to documentation I`ve crated inclusion tag which works, but it only views form sumbit button not a whole form. This form is from tutorialand looks like this: {% load url from future %}

Re: How to choose a license for an app or a project?

2011-05-13 Thread Stuart MacKay
Boštjan, Choice of license can be a very subjective thing as each fulfills slightly different criteria. Take a look at this page on stackoverflow.com, http://stackoverflow.com/questions/458479/where-can-i-find-an-authoritative-overview-of-open-source-licences#458710 It gives a good

runfcgi prefork constantly restarts children

2011-05-13 Thread Alexander Schepanovski
I use django in fcgi prefork mode and as you can see here: [ruauto@newton ~]$ ps axwu | grep runfcgi | grep -v grep | sort -rk10 ruauto 72264 2,2 0,5 82352 38320 ?? L18:03 5:24,46 python /home/ruauto.ru/project/manage.py runfcgi workdir=/home/ ruauto.ru/project

Re: Use Ajax to retrieve data from db based on data from input box and adding it to a table.

2011-05-13 Thread GKR
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...@googlegroups.com. For more options, visit this

Re: How to choose a license for an app or a project?

2011-05-13 Thread Boštjan Mejak
What do you guys think about the MIT license? In what particular case would I be needing an MIT license? -- 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

Re: Use Ajax to retrieve data from db based on data from input box and adding it to a table.

2011-05-13 Thread AJ
You could do that directly but here's how I do it in development: You will have a site_media directory in Django. I usually serve the sitemedia from that directory which includes images, JS, CSS etc. You specify site_media in your settings.py. #the absolute path to this file, i.e. 'here' here =

Re: New Django Profiling application

2011-05-13 Thread Brian Bouterse
Go for it! I know the disqus team (told by dcramer at djangocon 2010) has a great profiling app, you should talk with them about this. The disqus folks said they were in the process of packaging it up to release similar to the high quality work they did on

Re: How to choose a license for an app or a project?

2011-05-13 Thread Brian Bouterse
There is no "best choice" in licensing, just right for the right situation. I like the simplicity of the apache 2.0 licensewhich is mainly BSD in spirit plus attribution. While GPL is more pure "open source" ideologically. Businesses tend to back

Re: How to choose a license for an app or a project?

2011-05-13 Thread Bjarni Rúnar Einarsson
Here are some of my rules of thumb: 1) If it is trivial, put it in the public domain (config files, etc.). 2) If you are trying to create a standard of some sort, use the Apache 2 license. 3) If you are trying to contribute to an existing community, use whatever license they use.

Re: Use Ajax to retrieve data from db based on data from input box and adding it to a table.

2011-05-13 Thread GKR
Thanks for ur idea so shall i put the scripts directly on the template file to work out or is there any better alternate.. -- 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

Re: Use Ajax to retrieve data from db based on data from input box and adding it to a table.

2011-05-13 Thread AJ
>From what you've tried to explain, I can see that you would really want to use AJAX, that means, for that page you have to write a JavaScript handler (function that handles the event of adding a new record by pressing Add or Enter). The JS will take care of the page not being submitted/refreshed.

Re: How to choose a license for an app or a project?

2011-05-13 Thread Alistair Grant
It will partly depend on who you would like to be able to use your code. The corporate mandate at my previous employer, a very large software company, was "No GPL". LGPL was tolerated, but not encouraged. The reason for the mandate was that GPL required the user to also make their code

Re: Use Ajax to retrieve data from db based on data from input box and adding it to a table.

2011-05-13 Thread AJ
>From what you've tried to explain, I can see that you would really want to use AJAX, that means, for that page you have to write a JavaScript handler (function that handles the event of adding a new record by pressing Add or Enter). The JS will take care of the page not being submitted/refreshed.

Re: Use of FileField fields causes memory consumption to grow without releasing it

2011-05-13 Thread Gustavo Narea
OK, I've found that if I use .iterator() on the query set, the amount of memory used doesn't grow. So I suppose FileField is somehow (indirectly) referencing something in the retrieved data. BTW, we've created a fresh Django project with "django-admin startproject" and the problem is present. It

Re: Use Ajax to retrieve data from db based on data from input box and adding it to a table.

2011-05-13 Thread GKR
please help -- 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

Re: How to choose a license for an app or a project?

2011-05-13 Thread Tom Evans
On Fri, May 13, 2011 at 12:34 PM, Thomas Weholt wrote: > I've released three django-related packages the last few months, all > under the GPL license. Recently somebody asked me about my license > choice; "Why not BSD, the same as django?". My reason for choosing GPL > is

Re: How to choose a license for an app or a project?

2011-05-13 Thread Boštjan Mejak
Well, the best choice is GPL v3. And the fact that you use GPL license, you must provide the source code of your application as well. That I know is true for GPL. Why would you use BSD license I don't know. You could also use the MIT license. By having this MIT license, you don't supply the source

How to choose a license for an app or a project?

2011-05-13 Thread Thomas Weholt
I've released three django-related packages the last few months, all under the GPL license. Recently somebody asked me about my license choice; "Why not BSD, the same as django?". My reason for choosing GPL is based on the fact that I'm a strong supporter of free software as defined by FSF and GPL

Use Ajax to retrieve data from db based on data from input box and adding it to a table.

2011-05-13 Thread GKR
which is the best way to implement the following:: i will be having a text box and a Add button Along with a table below it containing headers Serial No, roll no,Name, Age, Address, Phone no my logic is to take the roll no as input from the text box and when i press enter either on the text

Re: Template inheritance, how to render dynamic content in base templates

2011-05-13 Thread Mateusz Marzantowicz
On Fri, May 13, 2011 at 5:15 AM, robinne wrote: How can I render dynamic content in a base template if I only call a > view on my child template? > > What I am trying to do is setup a base template that will include > "Profile" information for the user who is logged

New Django Profiling application

2011-05-13 Thread Adrien LEMAIRE
Hello dear django users, I'm currently finishing my master in Computer Science, doing django development in my internship. I chose Instrumentation as the main subject for my dissertation, so I'm studying every aspect of instrumentation on web development. I'll start soon a new django application

Use of FileField fields causes memory consumption to grow without releasing it

2011-05-13 Thread Gustavo Narea
Hello, I've noticed that when you iterate over a query set and use a FileField instance from each model instance, the memory used by the process increases every time the loop finishes. This happens on the Web and command-line interfaces. Say you have the following model: """ class Bug(Model):

Re: Django Admin site and password field

2011-05-13 Thread Gabe
Thanks for all suggestion. Subject to close (if it was forum ;)) On 12 Maj, 23:00, Michal Petrucha wrote: > On Thu, May 12, 2011 at 09:51:24AM -0700, Gabe wrote: > > First of all thx for all replies. > > > For now I don`t use auth.User model I would like to create my own.

Re: Overriding templates for the inclusion_tag

2011-05-13 Thread Daniel Roseman
On Friday, May 13, 2011 1:01:26 AM UTC+1, Stodge wrote: > > Is there any interest in changing the inclusion template functionality > to let the function return the template name in the dictionary to the > inclusion_tag decorator? This would let the developer override the > template filename:

Re: Template inheritance, how to render dynamic content in base templates

2011-05-13 Thread Daniel Roseman
On Friday, May 13, 2011 4:15:59 AM UTC+1, robinne wrote: > > How can I render dynamic content in a base template if I only call a > view on my child template? > > What I am trying to do is setup a base template that will include > "Profile" information for the user who is logged in, for