Re: Problem with adding new columns to existing model.

2009-04-05 Thread Florian Strzelecki
Hello, Hm... look at this : http://docs.djangoproject.com/en/dev/ref/models/fields/#null http://docs.djangoproject.com/en/dev/ref/models/fields/#blank So, if you want the field "optional_field", write this : class MyClass(models.Model): optional_field = models.CharField('This field is Optio

Re: How can I filter query sets in a django template?

2009-04-05 Thread Florian Strzelecki
Did you try to look at Inclusion Tag ? http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#inclusion-tags In template you are not allowed to use some python code... but with an inclusion tag, you will be able to write this : {% load related_conferences %} {% related_conferences scien

Re: Best JS Library compatibility for Django

2009-04-05 Thread Florian Strzelecki
Hm... look at this : http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.is_ajax HttpRequest.is_ajax()ΒΆ New in Django 1.0: *Please, see the release notes*

Re: Beginner's Help needed

2009-04-05 Thread Florian Strzelecki
Yes you can ! *WSGI :* Alias /another /path/to/your/phpApplication WSGIScriptAlias / /path/to/file.wsgi *MOD_PYTHON :* Use Location apache directive. I don't remember what to do for php... sorry, but I know that on this way. 2009/4/5 Dougal Matthews > It depends how you mean combine really.

Re: mod_python error

2009-04-07 Thread Florian Strzelecki
And... what about that : DocumentRoot: '/usr/local/apache2/htdocs' URI:'/contact.php' Location: '/' Directory: None Filename: '/usr/local/apache2/htdocs/ contact.php' PathInfo: '' Phase: 'PythonHandler' Handler:'django.core.handlers.modpython

Re: select_related and 1-to-many relations

2009-04-07 Thread Florian Strzelecki
Hm... something like that : http://docs.djangoproject.com/en/dev/topics/db/queries/#backwards-related-objects You can reverse a relationship, using "u.*att*_set". --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: Igoogle integration

2009-04-09 Thread Florian Strzelecki
Hello, I think you could use this : http://docs.djangoproject.com/en/dev/topics/http/urls/#passing-extra-options-to-view-functions You can give some parameters to your view function, defined into the url pattern. So, when it's /mycooldfeed you will write {'template': 'normal_template.tpl'} and whe

Re: Pass subdomain to a view function.

2009-04-09 Thread Florian Strzelecki
And what about use the "request" parameter ? Link : http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.get_host You can use the request.get_host() to know what is the host using, and so make what you want (some split and catch the first part "user1"). 2009/4/9 Rodr

Re: Writing csv files to server

2009-04-23 Thread Florian Strzelecki
Hm... in my opinion this isn't a Django problem, but a conception problem. I think you need a "state" on the invoices : when does it have been paid ? If you know when, so you can filter on the date of paiement. Exemple : Paid (id-1, sales-1, date_paid-2009-03-02, value-$150) Paid (id-1, sales-1,

Re: updating dependent page from an iframe

2009-04-23 Thread Florian Strzelecki
I think this is a basic html's problem, and, I'll suppose that you absolutly need an iframe on your site. So, when you make something in an iframe, the another have to be reloaded. With Javascript, or another way... And if you don't want to reload the entire iframe, use Ajax technologie... Hm...

Re: Apache WSGI DJANGO

2009-10-13 Thread Florian Strzelecki
I think the problem is not in your wsgi file, but in your apache's vhost configuration. You should have this in your vhost configuration, to use your django application with mod_wsgi : WSGIScriptAlias / /var/www/conf/myconf.wsgi So, you should add this line (if your admin/media is url /admin/medi