Re: How to use Django with Apache and mod_wsgi

2010-06-04 Thread Dmitry Dulepov
Hi! Jagdeep Singh Malhi wrote: > please Discuss in detail ... > I am not able to understand ,how i can use Django with mod_wsgi > I am using ubuntu 10.04 (LTS) > please help. This article is titled "How to use Django with Apache and mod_wsgi":

Re: *Immediate* session expiration problem/bug in IE

2010-06-04 Thread Dmitry Dulepov
Hi! Shawn Milochik wrote: > Do any of you have an idea as to where the problem is? I've spent a long > time changing just about every setting in IE to do with cookies, > security, temp files, etc., disabling all the add-ons, deleting temp > files, changing and customizing security zones, adding

Re: How to use Django with Apache and mod_wsgi

2010-06-04 Thread Kenneth Gonsalves
On Saturday 05 June 2010 10:49:59 Jagdeep Singh Malhi wrote: > please Discuss in detail ... > I am not able to understand ,how i can use Django with mod_wsgi > no big deal - just follow the docs -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this

How to use Django with Apache and mod_wsgi

2010-06-04 Thread Jagdeep Singh Malhi
please Discuss in detail ... I am not able to understand ,how i can use Django with mod_wsgi I am using ubuntu 10.04 (LTS) please help. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

aggregation question

2010-06-04 Thread P. Kaminski
Hello, I'm studying the Django page on aggregation http://docs.djangoproject.com/en/dev/topics/db/aggregation/ In the section 'Joins and aggregates' there's an example of how to create an annotation for each Store with book price ranges. But what if I want to do the opposite, i.e. for each

help with serving up mp4 with "nice" url

2010-06-04 Thread Margie Roginski
Hi, I am trying to serve up an mp4 video from my django app. I've generated the video using a tool called Camtasia, and it creates a set of files for me that all go in a single directory. I've put these down in my site_media directory with a directory structure like this:

Re: Custom tag weird behaviour

2010-06-04 Thread __alex__
Yeah, this was from the copy paste. It is split_contents()[1], otherwise the code wouldn't run at all ;) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from

Re: Something like admin.StackedInline where 'extra'

2010-06-04 Thread zehi
Thanks Frank. On Jun 3, 6:33 pm, Frank Wiles wrote: > On Thu, Jun 3, 2010 at 9:56 AM, jeremy07 wrote: > > Hi, I have a simple booking app where first form gets number of > > travelers. Based on that number I need to generate another form with > >

Re: Django sessions issue

2010-06-04 Thread Tom Evans
On Fri, Jun 4, 2010 at 8:45 PM, aa56280 wrote: >> How are you logging out? Are you sure you are calling >> django.contrib.auth.logout() ? > > Yup, I'm calling django.contrib.auth.views.logout() > You better show some code now... Cheers Tom -- You received this message

Ensuring a single file in storage, per FileField

2010-06-04 Thread Scott Gould
Hi folks, I have various models with File and Image fields. I want to keep the filesystem storage clean, removing any orphaned file upon a new one being uploaded. To date I've been overriding save() in each model, which isn't terribly robust: class MyModel def save(self, **kwargs):

Re: admin modifications

2010-06-04 Thread rahul jain
Hi Daniel, Yes I know about admin actions but I would like to provide a select option/modify button on every rows inside my admin display. Not just at one place. --RJ On Wed, Jun 2, 2010 at 1:05 AM, Daniel Roseman wrote: > On Jun 2, 7:56 am, rahul jain

Multi-table inheritance create child

2010-06-04 Thread Francis Gulotta
Has anyone used the patch from this ticket #7623? http://code.djangoproject.com/ticket/7623 Does it work well? Is there a better way? I've got the same problem the submitter has except I was hoping to extend the auth.User class so I'd still have all of the user methods available in the new user

Re: Django sessions issue

2010-06-04 Thread aa56280
> How are you logging out? Are you sure you are calling > django.contrib.auth.logout() ? Yup, I'm calling django.contrib.auth.views.logout() -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: django ORM memory leaks in standalone script

2010-06-04 Thread tmitchell
Holy reading comprehension, Batman. Just saw you have DEBUG off, ignore previous comment. On Jun 4, 10:34 am, Кирилл Яковенко wrote: > I have tried this method, but it didn't give any results. > I suspect that this is due to incorrect settings of the database or

Re: django ORM memory leaks in standalone script

2010-06-04 Thread tmitchell
Are you running with DEBUG on? I've noticed the same memory growth in standalone scripts when in DEBUG mode. It may be related to this: http://docs.djangoproject.com/en/dev/ref/templates/api/#django-core-context-processors-debug On Jun 4, 10:34 am, Кирилл Яковенко

Re: Recommendations for a twitter oauth library?

2010-06-04 Thread steve
I wanted to second my thumbs up for oauth2. It's working for my site as well. I'm using http://github.com/simplegeo/python-oauth2 specifically (though the official Twitter library page mentions that the "brosner fork" should be the one to use, which is forked from the one I'm using, and I haven't

Re: Template issue, maybe?

2010-06-04 Thread Bill Freeman
People are more likely to have ideas if you give us your Apache configuration stanzas, particularly the WSGIScriptAlias and, if used your WSGIDaemonProcess and WSGIProcessGroup directives, any directory stanzas you have for serving the media, admin-media, and any other static content trees. All

Re: Template issue, maybe?

2010-06-04 Thread Venkatraman S
Admin media is not being loaded. -V- http://twitter.com/venkasub On Fri, Jun 4, 2010 at 11:59 PM, Vectar wrote: > Hello all, > > New to Django, I have been through all the tutorials and verified > things appeared to be working. I am running a windows server 2003 > license,

Template issue, maybe?

2010-06-04 Thread Vectar
Hello all, New to Django, I have been through all the tutorials and verified things appeared to be working. I am running a windows server 2003 license, with Apache 2.1.2 I think It is 2 something anyhow. I have Python 2.6 installed and I have The latest version available to me of the mod_wsgi

*Immediate* session expiration problem/bug in IE

2010-06-04 Thread Shawn Milochik
I've been having an infuriating problem. Less than 1% of our users, all on IE, had this symptom: 1. They log in. 2. They are redirected to the main screen (logged in successfully). 3. They click any link or refresh, and they're redirected to the login page because Django sees request.user as

Re: Custom tag weird behaviour

2010-06-04 Thread Bill Freeman
I don't know if you have other problems, but the following is invalid python: val = token.split_contents()1 You may have meant: val = token.split_contents()[1] Which gets you the second element of the list returned by split_contents(). If you wanted the first element, change the

Re: django ORM memory leaks in standalone script

2010-06-04 Thread Кирилл Яковенко
I have tried this method, but it didn't give any results. I suspect that this is due to incorrect settings of the database or connect to it. 2010/6/4 Dj Gilcrease > On Fri, Jun 4, 2010 at 6:44 AM, yakovenko wrote: > > import os > > import sys > >

Re: XML database updates

2010-06-04 Thread Venkatraman S
On Fri, Jun 4, 2010 at 9:40 PM, Nick wrote: > I have been playing with > ElementTree and BeautifulSoup but there is just something I'm not > getting. > What is the problem that you are facing? if your XML is well defined, then parse it, extract the data, convert that into

my own error handler

2010-06-04 Thread Henrik Genssen
hi, I have written my own error handler mddleware sending my own formatted mail instead of Djangos build in. How do I now disable the default mail, as I now get 2 for every error. looking into handle_uncaught_exception() of django.core.handlers.base I can not find any usefull var, that

Multiple languages question about /jsi18n/

2010-06-04 Thread Stodge
I think I have basic internationalisation working for english and french. I can switch languages and change the page's title accordingly. However, if I visit: /jsi18n/ I see the catalog definition and a few gettext related functions etc. However, these are defaults and the translations in the

limit choices in the drop down of subcategory based on related category in Django admin

2010-06-04 Thread vikk
Hi, I have three models as class Category(models.Model): name = models.CharField(max_length=128) class SubCategory(models.Model): category = models.ForeignKey(Category) name = models.CharField(max_length = 400) class Document(models.Model): category =

Re: hello django users, I have one doubt. I am doing one django project. It shows one SyntaxError in the line(if not created:) in views.py file.I attached the particular in that. I want the reason o

2010-06-04 Thread Karen Tracey
On Fri, Jun 4, 2010 at 7:54 AM, kanniga sivasubramanian < kskanniga...@gmail.com> wrote: > If not created: > Don't uppercase the I in if. Karen -- http://tracey.org/kmt/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: How to dynamically set limit_choices_to for ManyToManyField using values from an instance?

2010-06-04 Thread Massimiliano della Rovere
Thanks Scott, I have one doubt though: I need a bound form to properly set the queryset. Using your method I'd use an unbound form, am I wrong? On Fri, Jun 4, 2010 at 14:33, Scott Gould wrote: > Create a ModelForm for your model (A), set the queryset to what you > want on the

Re: django ORM memory leaks in standalone script

2010-06-04 Thread Dj Gilcrease
On Fri, Jun 4, 2010 at 6:44 AM, yakovenko wrote: > import os > import sys > os.environ['DJANGO_SETTINGS_MODULE'] = 'md.settings' > sys.path.append('/md/lib') > from django.db import close_connection, reset_queries > from md.mddata.models import Info > def test(): >  for i

django ORM memory leaks in standalone script

2010-06-04 Thread yakovenko
Hello guys, I use django ORM in standalone daemon. And It sucks more and more memory. I have created small script for testing: --- import os import sys os.environ['DJANGO_SETTINGS_MODULE'] = 'md.settings' sys.path.append('/md/lib') from

Re: How to dynamically set limit_choices_to for ManyToManyField using values from an instance?

2010-06-04 Thread Scott Gould
Create a ModelForm for your model (A), set the queryset to what you want on the appropriate field (n), and then register that ModelForm for admin use in your admins.py. Regards Scott On Jun 4, 6:14 am, Massimiliano della Rovere wrote: > When displayed in the

Re: hello django users, I have one doubt. I am doing one django project. It shows one SyntaxError in the line(if not created:) in views.py file.I attached the particular in that. I want the reason o

2010-06-04 Thread kanniga sivasubramanian
hello Venkatraman sir, I accept your suggestion. I will send only my questions in body. Thankyou for your acknowledgement. On Fri, Jun 4, 2010 at 5:36 PM, Venkatraman S wrote: > Please do not send the email in teh subject line :) > > -- > You received this

Re: hello django users, I have one doubt. I am doing one django project. It shows one SyntaxError in the line(if not created:) in views.py file.I attached the particular in that. I want the reason o

2010-06-04 Thread kanniga sivasubramanian
hello Vinicius Mendes sir, You are right. I had done the certain mistake only. I corrected that. Thankyou for your acknowledgement. On Fri, Jun 4, 2010 at 5:36 PM, Vinicius Mendes wrote: > I guess it is because the 'I' is uppercase. Try all the line in lowercase. >

Re: hello django users, I have one doubt. I am doing one django project. It shows one SyntaxError in the line(if not created:) in views.py file.I attached the particular in that. I want the reason o

2010-06-04 Thread Vinicius Mendes
I guess it is because the 'I' is uppercase. Try all the line in lowercase. Atenciosamente, Vinicius Mendes Solucione Sistemas vinic...@solucione.info On Fri, Jun 4, 2010 at 8:54 AM, kanniga sivasubramanian < kskanniga...@gmail.com> wrote: > def bookmark_save_page(request): > if request.method

Re: hello django users, I have one doubt. I am doing one django project. It shows one SyntaxError in the line(if not created:) in views.py file.I attached the particular in that. I want the reason o

2010-06-04 Thread Venkatraman S
Please do not send the email in teh subject line :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: hello django users, I have one doubt. I am doing one django project. It shows one SyntaxError in the line(if not created:) in views.py file.I attached the particular in that. I want the reason o

2010-06-04 Thread kanniga sivasubramanian
Thank for your(Dj Gilcrease) answer sir. I got the correct answer for the problem. On Fri, Jun 4, 2010 at 5:28 PM, Dj Gilcrease wrote: > syntax error is because of capitol 'I' in if > > -- > You received this message because you are subscribed to the Google Groups >

Re: hello django users, I have one doubt. I am doing one django project. It shows one SyntaxError in the line(if not created:) in views.py file.I attached the particular in that. I want the reason o

2010-06-04 Thread Dj Gilcrease
syntax error is because of capitol 'I' in if -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

hello django users, I have one doubt. I am doing one django project. It shows one SyntaxError in the line(if not created:) in views.py file.I attached the particular in that. I want the reason of my

2010-06-04 Thread kanniga sivasubramanian
def bookmark_save_page(request): if request.method == 'POST': form = BookmarkSaveForm(request.POST) if form.is_valid(): # Create or get link. link, dummy = Link.objects.get_or_create( url=form.cleaned_data['url'] ) # Create or get bookmark. bookmark,

RE: Re: utf8-problems

2010-06-04 Thread Henrik Genssen
no, developing on macos, testing and production on debian regards Henrik >reply to message: >date: 03.06.2010 12:05:02 >from: "kirian" >to: "Django users" >subject: Re: utf8-problems > >just guessing.. are you developing on a windows

Re: File Upload with Progress Bar

2010-06-04 Thread Venkatraman S
Anyone who wants to work on this problem with me? We can probably collaborate and release it over this weekend. On Fri, Jun 4, 2010 at 3:16 AM, Brad Pitcher wrote: > Some versions of flash have a bug that causes the entire browser to > freeze while uploading. I am

Multiples connections

2010-06-04 Thread Badio Nadae Ivar
Hi i have one question i 'm new in django and on my appalication , i want to put one security. that means i want if one user it's connected to block anymore client who want to connected with the same user at that time one the server. Thanks Sorry for my english -- Nadae Ivar Badio

How to dynamically set limit_choices_to for ManyToManyField using values from an instance?

2010-06-04 Thread Massimiliano della Rovere
When displayed in the Admin interfaces, I'd like to filter the values of n, so that instances of N already linked to other instances of A sharing the same instance of o are not shown: so when you edit an instance of A (let's call it "a"), you see only the instances of n in use by a and the unsed

Re: Directory structuring

2010-06-04 Thread Dmitry Dulepov
Hi! Mike Dewhirst wrote: > a) It's not the standard. I've looked around at subversion repository > tutorials but can't seem to wrap my head around applying that to our > software. Why not the standard? Many large companies do it the same way as you do. > b) Sometimes we need to change

Re: Django sessions issue

2010-06-04 Thread Tom Evans
On Thu, Jun 3, 2010 at 9:06 PM, aa56280 wrote: > Django's docs say: "When a user logs in, Django adds a row to the > django_session database table. Django updates this row each time the > session data changes. If the user logs out manually, Django deletes > the row. But if the

Getting all the concrete model classes inheriting from a certain abstract model class

2010-06-04 Thread Vasil Vangelovski
Hi I have around 30 models inheriting from one abstract model class and the number may grow (there's a specific reason for this design decision, involving making the database easy for people to make reports from the data with other tools, namely ms access, and making it easier to make changes to

Re: danymic attributes in template

2010-06-04 Thread Tom Evans
On Fri, Jun 4, 2010 at 10:15 AM, ChuanRen wrote: > for example: > keys=[item1,item2] > obj={item1:1,item2:2} > > the template: > {%for key in keys%} >    {{obj.key}} > {%endfor%} > > In this example, the key in template will resolved to item1 and item2, > I thought: >

danymic attributes in template

2010-06-04 Thread ChuanRen
for example: keys=[item1,item2] obj={item1:1,item2:2} the template: {%for key in keys%} {{obj.key}} {%endfor%} In this example, the key in template will resolved to item1 and item2, I thought: {{obj.{{key will work, but it output a error. Any approach can solve this problem? -- You

Re: Manager.Raw() + Pagination

2010-06-04 Thread huw_at1
Ah I solved this now by realising I simply needed to cast the RawQuerySet as a list. On Jun 2, 7:52 am, huw_at1 wrote: > Hi all, > > I'm trying to use Djangos new Raw feature to run a custom SQL and > return back a list of objects. This works fine however I then want to >

Re: how should reusable apps handle url namespace?

2010-06-04 Thread Daniel Roseman
On Jun 4, 5:06 am, HARRY POTTRER wrote: > I'm writing a forum app that I want to be reusable. All of my urls I > have named. Some of them are named like "index" and "thread" which are > generic and will likely collide with existing project's urls. I don't > want to do something

Re: design question - forms as meta-data to a model

2010-06-04 Thread Russell Keith-Magee
On Fri, Jun 4, 2010 at 12:03 PM, Jason Beaudoin wrote: > Silence usually implies some key piece of documentation was missed, or > was this just lost amongst more interesting posts? :) You've missed two important alternatives: * The people who can answer your question