Re: upgrading django

2009-04-02 Thread Miguel
thank you. It is not an easy upgrade. It may take long time to do it... Maybe the differences between versions are no so big ... Miguel On Fri, Apr 3, 2009 at 12:40 AM, John Baker wrote: > > I did this over dec/jan for an inherited app.. it was an absolute > nightmare.. i had to rewrite huge c

forms with foreign key population

2009-04-02 Thread Mike RA9FTM
Hello. I am new to django. I have read documentation and created a little project. I plan application with many forms. Mostly, I need to populate forms, when I have foreign key in model, like in django admin interface when we click on plus picture, a new window opens. So, I would like to know is

The requested admin page does not exist.

2009-04-02 Thread mjlissner
I am working on setting up my first django site, and I had the documentation module working, but then today I tried to use it, and I got this error: Page not found The requested admin page does not exist. I searched around, and found one message that said I needed to check my urls.py file to ens

Re: RSS producing wrong link from get_absolute url

2009-04-02 Thread Graham Dumpleton
What do you have 'django.root' option set to in Apache configuration related to mod_python? Graham On Apr 3, 9:23 am, John Baker wrote: > I have a strange problem with simple RSS feeds. It works fine locally > on my development machine but when I deploy to the test server running > through mod_

Re: RSS producing wrong link from get_absolute url

2009-04-02 Thread Alex Koshelev
Have you changed your `Site` model entry to the proper port number? On Fri, Apr 3, 2009 at 2:23 AM, John Baker wrote: > > I have a strange problem with simple RSS feeds. It works fine locally > on my development machine but when I deploy to the test server running > through mod_python on port :8

Re: Authorization on data level in django admin

2009-04-02 Thread Malcolm Tredinnick
On Thu, 2009-04-02 at 22:34 -0700, Joshua Partogi wrote: > On Apr 3, 11:23 am, Malcolm Tredinnick > wrote: > > On Fri, 2009-04-03 at 00:26 +1100, Joshua Partogi wrote: > > > Dear all, > > > > > In django admin we can give permission to user to edit, delete or > > > create certain model. But what

Re: Authorization on data level in django admin

2009-04-02 Thread Joshua Partogi
On Apr 3, 11:23 am, Malcolm Tredinnick wrote: > On Fri, 2009-04-03 at 00:26 +1100, Joshua Partogi wrote: > > Dear all, > > > In django admin we can give permission to user to edit, delete or > > create certain model. But what I want to do now is a user can only > > edit or delete the data that he

Re: multiple S3 buckets using David Larlet's S3Storage.py

2009-04-02 Thread wynfred
Thank you for this helpful input, David. Have not been able to focus on this development task yet, but will soon. Your guidance is very much appreciated. Thanks, Stephen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: how to use email instead of username for user authentication?

2009-04-02 Thread Malcolm Tredinnick
On Thu, 2009-04-02 at 19:04 -0700, Timboy wrote: > What's the best way to add users with an auto generating username? ie: > Taub.John, Smith.Tim, Smith.Tim2 You can do it however you like, since the user will never see it. Something as simple as taking the email address, replacing "@" with "AT" a

Re: how to use email instead of username for user authentication?

2009-04-02 Thread Timboy
What's the best way to add users with an auto generating username? ie: Taub.John, Smith.Tim, Smith.Tim2 On Apr 1, 3:37 am, johan.u...@student.hpi.uni-potsdam.de wrote: > Best way is to write your own authentication backend I think. > > Check the > docs:http://docs.djangoproject.com/en/dev/topic

Re: What is the best way to extend the User Model

2009-04-02 Thread Malcolm Tredinnick
On Thu, 2009-04-02 at 18:29 -0700, Dave Fowler wrote: [...] > Profile.objects.all().select_related() > > But it seems weird to base everything around the object that isn't > used for authentication. Is that what most people do? "Seems weird" isn't a particularly strong technical reason (and is

Re: How to create ability to send email from the admin with django?

2009-04-02 Thread Timboy
In two lines: from django.core.mail import send_mail send_mail('Subject here', 'Here is the message.', 'f...@example.com', ['t...@example.com'], fail_silently=False) Mail is sent using the SMTP host and port specified in the EMAIL_HOST and EMAIL_PORT settings. The EMAIL_HOST_USER and EMAIL_

Re: What is the best way to extend the User Model

2009-04-02 Thread Alex Gaynor
On Thu, Apr 2, 2009 at 9:29 PM, Dave Fowler wrote: > > I'm about to do my umpteenth Django app and I'm just wondering if > there is a new standard (better) way to extend the User model. I've > used this method > > http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/ > > And

What is the best way to extend the User Model

2009-04-02 Thread Dave Fowler
I'm about to do my umpteenth Django app and I'm just wondering if there is a new standard (better) way to extend the User model. I've used this method http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/ And a few others, but all of them keep the User and Profile objects s

Re: Adding a ManyToMany field to existing model

2009-04-02 Thread jjgod
Hi Joey, On 4月3日, 上午2时07分, Joey Gartin wrote: > I am new also, but I noticed right away that you had quotes around Speaker > > speakers = models.ManyToManyField("Speaker") > That may be the problem. I have added manytomany fields after the fact and > had no problems. Thanks, but I did try chan

Re: How do i use dojo in my Django application

2009-04-02 Thread Kenneth Gonsalves
On Thursday 02 April 2009 18:20:27 Gath wrote: > have downloaded Dojo 1.3, i want to start sampling some examples  in > the Dojo website using Django, where do i place the package? How do i > call it in my template? a template is just html - put dojo where you put your other css and js files an

Re: widget=forms.HiddenInput doesn't work

2009-04-02 Thread Michael Rose Jr.
This was fixed by upgrading to the latest version in SVN. Thanks for your help B On Apr 1, 8:57 pm, "Michael Rose Jr." wrote: > On Apr 1, 8:40 pm, Brian Neal wrote: > > > > > On Apr 1, 10:19 pm, "Michael Rose Jr." > > wrote: > > > > Brian. Thanks for responding. I mean to post "name". I've be

Re: Authorization on data level in django admin

2009-04-02 Thread Malcolm Tredinnick
On Fri, 2009-04-03 at 00:26 +1100, Joshua Partogi wrote: > Dear all, > > In django admin we can give permission to user to edit, delete or > create certain model. But what I want to do now is a user can only > edit or delete the data that he/she created. > > Is there any way we can do this in dj

Re: Performance Issue: ForeignKey will touch database again!

2009-04-02 Thread Malcolm Tredinnick
On Thu, 2009-04-02 at 00:46 -0700, Zeal wrote: > > > On 4月2日, 下午2时39分, Alex Koshelev wrote: > > On Thu, Apr 2, 2009 at 10:36 AM, Zeal wrote: > > > > > > Documentation knows [1] > > > > [1]:http://docs.djangoproject.com/en/dev/ref/models/querysets/#id4 > > Hi, Alex, > > Really appreciates you

Re: Logging out a user when his account is made inactive

2009-04-02 Thread Malcolm Tredinnick
On Wed, 2009-04-01 at 14:13 -0700, christian.oudard wrote: > I have made a page for admins to set a user account to inactive, but I > noticed that the user's session continues if he is logged in. It > appears that the is_active field is only checked when the user logs > in, not when each request i

Re: Problem Installing Django on OS X 10.4.11

2009-04-02 Thread Nick Lo
Hi Scott, > I'm having an issue confirming that Django is installed properly. I > did what the Django site said: "You can tell Django is installed by > running the Python interactive interpreter and typing import django." > So i typed in import django and got: > import django > Traceback (mo

Re: Trac + Sphinx

2009-04-02 Thread Malcolm Tredinnick
On Wed, 2009-04-01 at 15:14 -0300, Fábio Costa wrote: > Sorry, what he meant to ask is if the Django project use any kind of > integration within trac and sphinx, like some kind of plugin. If you mean djangoproject.com, the answer is "no". code.djangoproject.com is a Trac installation, www.django

Re: Setting default values for model options?

2009-04-02 Thread Malcolm Tredinnick
On Wed, 2009-04-01 at 10:58 -0700, jeremias.kangas wrote: > Hello, > > I noticed that default value when adding a field for a model is > null=False. This default option is not very good for me, because for > almost every field needs to be null in my application. Is there a way > to change these d

Re: Error creating test database

2009-04-02 Thread Russell Keith-Magee
On Thu, Apr 2, 2009 at 9:23 PM, Andrew G. wrote: > > I have a django app that is built against an existing database.  In > the database, there are a couple tables used as the many-to-many > relation lookup table.  However, I have mapped models to the many-to- > many lookup table, since I have a n

Re: Mysql?

2009-04-02 Thread Chris O'Donnell
To install Django on the server, if it isn't there already. On Mar 31, 11:33 pm, Wiiboy wrote: > Why do you need shell access?  Aren't you supposed to do all the > coding and stuff on the local server, and then upload it? --~--~-~--~~~---~--~~ You received this me

Re: upgrading django

2009-04-02 Thread John Baker
I did this over dec/jan for an inherited app.. it was an absolute nightmare.. i had to rewrite huge chunks of it.. It really would depend on how many hacks the original app had though. Unfortunately, I inherited lots of obscure shortcuts and extensions that became incompatible so most of it stopp

Problem Installing Django on OS X 10.4.11

2009-04-02 Thread Scott
I'm having an issue confirming that Django is installed properly. I did what the Django site said: "You can tell Django is installed by running the Python interactive interpreter and typing import django." So i typed in import django and got: >>> import django Traceback (most recent call last):

RSS producing wrong link from get_absolute url

2009-04-02 Thread John Baker
I have a strange problem with simple RSS feeds. It works fine locally on my development machine but when I deploy to the test server running through mod_python on port :81 the blog item links miss out the port number and so don't work. Test server with new RSS code.. http://www.adrem.uk.com:81/fe

Re: ManyToManyField() causes bugs when using 'ModelName' instead of 'self'

2009-04-02 Thread Randy Barlow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jumpfroggy wrote: > Summary: django should throw an exception when a model has its own > name as the 'to' field of a ManyToMany() insead of 'self'. > Have I missed anything? I may be misunderstanding the problem here, > but I have managed to fix my

django-facebookconnect

2009-04-02 Thread Ryan
Hey folks, I posted code for a facebook connect django app on google code. I refactored code from the News Mixer application to use for another project, and figured it was useful enough that others might want it. http://code.google.com/p/django-facebookconnect/ http://code.google.com/p/newsmixer

Re: upgrading django

2009-04-02 Thread Ayaz Ahmed Khan
On 02-Apr-09, at 8:57 PM, Miguel wrote: > I have seem new django versions improve the performance of web > applications. I have a huge web aplication and I m thinking about > changing it. How hard would be to upgrade django 0.96 to the newest > one? Has it backward compatibility? The porting

Re: mod_python: "No module named django"

2009-04-02 Thread Jeff Gentry
Err, sorry, I meant to cancel and sent this instead. I believe I found my problem while preparing to email about this (wasn't looking close enough at the error message, and it looks like apache was looking in the wrong python's site-packages) On Thu, 2 Apr 2009, Jeff Gentry wrote: > > Ok, so I

mod_python: "No module named django"

2009-04-02 Thread Jeff Gentry
Ok, so I've managed to get django running using mod_python on some other machines, but today I'm being stymied: --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

ManyToManyField() causes bugs when using 'ModelName' instead of 'self'

2009-04-02 Thread Jumpfroggy
Summary: django should throw an exception when a model has its own name as the 'to' field of a ManyToMany() insead of 'self'. I had a field like this: def Item(Model): name = CharField(max_length=100) related_items = ManyToManyField('Item', blank=True) But this caused some v

google-transmeta

2009-04-02 Thread phred78
Hello, Has anyone played with google-transmeta yet? It's great but I can't seem to understand how to pass the model building part. I'm wondering what's the best way to pass variables to templates. For instance: def view(request, language, slug): activate(language) page = Page.objects.ge

Re: Adding a ManyToMany field to existing model

2009-04-02 Thread Joey Gartin
gzjjgod I am new also, but I noticed right away that you had quotes around Speaker speakers = models.ManyToManyField("Speaker") That may be the problem. I have added manytomany fields after the fact and had no problems. Good luck! On Thu, Apr 2, 2009 at 10:02 AM, jjgod wrote: > > Hi, > > I'm

Re: Search on concatenated fields of qset

2009-04-02 Thread Jesse
Hello Tim, I gave it a try, no errors, but also no results for the Contact. I think I have a problem in the resultsc statement. How do I filter out both qset3 and qset3_inner? query = request.GET['q'] terms = query.split() # terms = re.findall(r'\w+', query) if query: # will

Re: problem customizing comments app

2009-04-02 Thread laird18
Hi Karen, thanks for the reply, and sorry for not being clearer in my original message. I've done a bit more debugging and I've found that whenever I put any form of import line, such as "from django.db import models" or "from internal.models import *" in __init__.py I get the following error whe

Adding a ManyToMany field to existing model

2009-04-02 Thread jjgod
Hi, I'm running Django version 1.1 beta 1 SVN-10368. I'm having a problem trying to a ManyToMany field to an existing model. In an application called "videos", I created a models.py like this: from django.db import models class Speaker(models.Model): name = models.CharField(max_length=200

upgrading django

2009-04-02 Thread Miguel
Hello everybody, I have seem new django versions improve the performance of web applications. I have a huge web aplication and I m thinking about changing it. How hard would be to upgrade django 0.96 to the newest one? Has it backward compatibility? thank you very much, Miguel Miguel Sent fro

How to create ability to send email from the admin with django?

2009-04-02 Thread ChrisR
I've been searching and trying to figure this out, but I haven't quite found the source that makes it snap in my mind. I'd like to be able to send an email or emails out from my site through the admin. I have the email settings added to settings.py, but not sure where to go next. I've read the

How to create ability to send email from the admin with django?

2009-04-02 Thread ChrisR
I've been searching and trying to figure this out, but I haven't quite found the source that makes it snap in my mind. I'd like to be able to send an email or emails out from my site through the admin. I have the email settings added to settings.py, but not sure where to go next. I've read the

Re: How do i use dojo in my Django application

2009-04-02 Thread Rob Goedman
Gath, Attached at the end of this email an exchange from a few months back about Dojo & Django using the dojango application. I've been using this and have been happy with it. http://code.google.com/p/dojango/ Rob On Apr 2, 2009, at 7:55 AM, Dougal Matthews wrote: > It kinds depend

Re: How do i use dojo in my Django application

2009-04-02 Thread Dougal Matthews
It kinds depends what you want to do really. JavaScript is run inside the browser and Django is running on your website. So it doesn't even know what Django or Python is, however they can communicate and pass data. By using it with Django, do you mean you want to do some Ajax stuff? If that's the

Re: Django Tutorial, Part 3

2009-04-02 Thread Dougal Matthews
Daniel and everybody else can see my reply like I can see your reply to him ;) Just so you know you don't need to reply to each of us individually... Dougal --- Dougal Matthews - @d0ugal http://www.dougalmatthews.com/ 2009/4/2 Loewe, Rosemarie > Hello Daniel, > > just I got a mail of anothe

Re: FormSet in Wizard

2009-04-02 Thread Yuka
Hi Austin, I dont know if you still need a solution, but I did, and someone else might -- also for the sake of completion, here is what i cooked up: Just inherit from below class, instead of FormWizard, and start feeding it FormSet classes as one sees fit. Also, there might be better solutions, e

Re: Error creating test database

2009-04-02 Thread Andrew G.
Even if an abstract class was added as an intermediary, wouldn't the derived class still try to create the table? There is no solution along the lines of a meta option "donotcreatetable" or the like? On Apr 2, 10:06 am, Adam N wrote: > I'm pretty sure you'll need to make it an abstract model.  

Re: Error creating test database

2009-04-02 Thread Adam N
I'm pretty sure you'll need to make it an abstract model. You could make the model that accords to the existing table abstract and then subclass that model with no additional attributes (except a different name) - that will give you access to the data directly if you need it while leaving the exi

Re: Fixtures for django.contrib.sites.Site

2009-04-02 Thread Adam N
Thanks a ton - that's exactly what the issue was. On Apr 1, 8:28 pm, Russell Keith-Magee wrote: > On Thu, Apr 2, 2009 at 5:49 AM,AdamNelson wrote: > > How do I do a fixture for the Site model?  I've tried all sorts of different > > model names > > [ > >   { > >     "model": "sites.site", > >   

Multiple Related Models in the Admin App

2009-04-02 Thread cfiles
I have been trying to figure this out for two days now with no luck. I am wanting the add/change view in the Admin app to display an inline form for the same model twice. Right now I cannot do that. Can somebody point me in the right direction? This is a legacy database I am working with, not one

Error creating test database

2009-04-02 Thread Andrew G.
I have a django app that is built against an existing database. In the database, there are a couple tables used as the many-to-many relation lookup table. However, I have mapped models to the many-to- many lookup table, since I have a need for accessing these entries directly. Since the tables

Re: Mod_wsgi and mod_python

2009-04-02 Thread Adam N
You should definitely consider Nginx with FastCGI. Something like this: http://wiki.nginx.org/NginxDjangoFastCGI On Apr 2, 2:20 am, Pythoni wrote: > I am using Django with mod_python and it works but during peak times > ( heavy loads about 50 Apache jobs), the system is almost hanged > Is it  

Re: Json Serialization / Form Validation error

2009-04-02 Thread Bro
But before, is it possible to serialize a form in JSON ? 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

Re: Json Serialization / Form Validation error

2009-04-02 Thread Bro
But beforce, is it possible to serialise a form in JSON ? Thanks On 11 fév, 00:50, adrian wrote: > Thank you all for posting this.  You saved me probably hours of head > scratching. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Authorization on data level in django admin

2009-04-02 Thread Joshua Partogi
Dear all, In django admin we can give permission to user to edit, delete or create certain model. But what I want to do now is a user can only edit or delete the data that he/she created. Is there any way we can do this in django admin? Thank you very much in advance -- If you can't believe i

Re: How do i use dojo in my Django application

2009-04-02 Thread Briel
Hi. The docs explain in great detail how you can serve static files like the dojo library. Take a look at it here: http://docs.djangoproject.com/en/dev/howto/static-files/ ~Jakob On 2 Apr., 14:50, Gath wrote: > All, > > I have downloaded Dojo 1.3, i want to start sampling some examples  in > t

How do i use dojo in my Django application

2009-04-02 Thread Gath
All, I have downloaded Dojo 1.3, i want to start sampling some examples in the Dojo website using Django, where do i place the package? How do i call it in my template? Gath --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

AW: Django Tutorial, Part 3

2009-04-02 Thread Loewe, Rosemarie
Hello Daniel, just I got a mail of another user, he had the correct answer and now it works. I have no further need for help. Best regards Rosemarie Von: django-users@googlegroups.com im Auftrag von Daniel Roseman Gesendet: Do 02.04.2009 12:53 An: Django use

AW: Django Tutorial, Part 3

2009-04-02 Thread Loewe, Rosemarie
Hallo Dougal, many many thanks for your quick response. Now it works fine. Best regards Rosemarie Von: django-users@googlegroups.com im Auftrag von Dougal Matthews Gesendet: Do 02.04.2009 14:28 An: django-users@googlegroups.com Betreff: Re: Django Tutorial,

Re: Django Tutorial, Part 3

2009-04-02 Thread Dougal Matthews
You error is in urls.py You have; *include('mysite/polls/urls')),* you should have; *include('mysite.polls.urls')),* The path is written python module style (with dots) rather than directory style (with slashes) Dougal --- Dougal Matthews - @d0ugal http://www.dougalmatthews.com/ 2009/4/2 Lo

Re: Controlling html display of Charfield length on forms...(newforms?)

2009-04-02 Thread NoviceSortOf
text = forms.CharField(label="text", max_length=10, widget=forms.TextInput( attrs={'size':'10', 'class':'inputText'})) Thanks Ayaz the above works perfectly. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Mysterious "=32" for all strings extracted from list showing up via send_mail

2009-04-02 Thread NoviceSortOf
Thanks that explains it fully --~--~-~--~~~---~--~~ 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 dj

Re: Django Tutorial, Part 3

2009-04-02 Thread Daniel Roseman
On Apr 2, 8:35 am, rorocam wrote: > Hello …, > > I have problems with the „Decoupling the URLconfs”. I did, as Django > Tutorial (Part 3) shows me, but it does not work, the browser shows > following error: > > > ImportError at /polls/ > > Import by filename is not supported. > > What is wrong wi

Re: Django ImageField url not relative to MEDIA_ROOT

2009-04-02 Thread pielgrzym
Thanks to pagenoare on #django-pl there is some progress: If I create a modelform, and instead of manually invoking model instance and saving it, I just do: new_image = form.save() Things work like expected. Why? :) On 2 Kwi, 12:18, pielgrzym wrote: > Hi there, > > Before explanation here is

Re: How Do I Extend Model form

2009-04-02 Thread mahesh
Hi, I am trying to create a (single) comprehensive form with UserProfile + some Fields from User to be given as form_class arguments for django module "django-profiles" I think my next alternative (without above module) is FormSets ? (is it ?, please advise ) Thx/Mahesh

Django ImageField url not relative to MEDIA_ROOT

2009-04-02 Thread pielgrzym
Hi there, Before explanation here is the link to problematic code: http://wklej.org/hash/968a35feef/ If one creates a model with imageField and uses it via admin everything is just fine - model instances have the image field with correct url: photo = Image.objects.get(pk=1) photo.image.url '/m

Re: Django domain handling and shortcut url, strange

2009-04-02 Thread Graham Dumpleton
See: http://docs.djangoproject.com/en/dev/ref/settings/#setting-SESSION_COOKIE_DOMAIN Graham On Apr 2, 8:28 pm, coulix wrote: > Hi, > > i have the following domainwww.foo.comand an alias foo.com > When i post a comment i want to redirect to the submit page so i use a > wrapper for this: > >

Re: How Do I Extend Model form

2009-04-02 Thread Oli Warner
I'm not entirely sure why you want to do this (so please excuse me if this doesn't apply) but you should know that you're allowed more than one django Form inside a single HTML element. So you can easily have several ModelForms (or mix them with regular Forms) inside a single tag. I hope that m

Re: Inheriting attributes from a model

2009-04-02 Thread Denis
Thanks! Problem solved, here's how to do it: class QuoteItemManager(models.Manager): def from_product(self, product): i = QuoteItem(current_product=product) i.product_serialized = serializers.serialize('json', Product.objects.filter(id=product.id)) try: i.p

How Do I Extend Model form

2009-04-02 Thread mahesh
How Do I Extend Model form. I need to generate a form with some fields from User + UserProfile; However I see nothing .. class UserForm(ModelForm) : class Meta: model = User class BigForm(UserForm): class Meta(UserForm.Meta): model = MySiteProfil

Re: FileField - Forms - upload to not available

2009-04-02 Thread Lior
I've got the same problem. I'm using signals, so I guess your problem will not be solved with signals. I'm also using pre_save. It seems that the attribute upload_to isn't (yet) set when in pre_save. I still don't know if it's a bug, or a 'new feature', as my code works perfectly on Django 1.0.2.

Django domain handling and shortcut url, strange

2009-04-02 Thread coulix
Hi, i have the following domain www.foo.com and an alias foo.com When i post a comment i want to redirect to the submit page so i use a wrapper for this: def comment_posted( request ): if request.GET.has_key('c'): comment = get_object_or_404(Comment, pk=request.GET['c']) retu

Re: forming email body

2009-04-02 Thread Oli Warner
Yeah I've used the template engine for this before and it has worked well. No complaints and it's relatively simple: from django.core.mail import send_mail from django.template import loader, Context t = loader.get_template('my/template.txt') send_

Re: forming email body

2009-04-02 Thread Daniel Roseman
On Apr 2, 2:58 am, Joey Gartin wrote: > Newbie question: > > In a view I am sending out a few emails to users.  The email format is > identical for each user, with the users information being dynamic. > > My question is regarding forming a long email and using it as the body over > and over (in a

Re: JQuery magic in admin?

2009-04-02 Thread Briel
Hi, If you don't need the form elements themselves, as you do everything in the save method, you don't need to do anything with the form. All you need to do, is to create the visual effect, which can be done with jQuery quite easily. You could just hide the fields if you prefer them empty and cre

JQuery magic in admin?

2009-04-02 Thread Alfonso
Hi, I've got two very unremarkable models, Invoice Order that has a foreign key to an Invoice model. There are some tax calculations that happen on the save of the order model that populate and update the corresponding fields in the Invoice model. All works fine and in fact all calculations in

Django Tutorial, Part 3

2009-04-02 Thread rorocam
Hello …, I have problems with the „Decoupling the URLconfs”. I did, as Django Tutorial (Part 3) shows me, but it does not work, the browser shows following error: > ImportError at /polls/ > Import by filename is not supported. What is wrong with my application? I have installed Python 2.6 and

Re: Performance Issue: ForeignKey will touch database again!

2009-04-02 Thread Zeal
On 4月2日, 下午2时39分, Alex Koshelev wrote: > On Thu, Apr 2, 2009 at 10:36 AM, Zeal wrote: > > > Documentation knows [1] > > [1]:http://docs.djangoproject.com/en/dev/ref/models/querysets/#id4 Hi, Alex, Really appreciates your prompt response and useful solution, the sql queries have been dramatic

Re: Mod_wsgi and mod_python

2009-04-02 Thread Graham Dumpleton
On Apr 2, 5:20 pm, Pythoni wrote: > I am using Django with mod_python and it works but during peak times > ( heavy loads about 50 Apache jobs), the system is almost hanged > Is it  worth changing from mod_python into mod_wsgi? > What would I get or lose? Read: http://blog.dscpl.com.au/2009/