Re: choices

2008-07-02 Thread Malcolm Tredinnick
On Wed, 2008-07-02 at 13:40 -0700, urukay wrote: > > is there a way how to create choices in Models in specific way, that some > choices are not selectable (they only group and describe choices below)? > > e.g.: > > CHOICES = ( > ('0', 'Basic Colors'), > ('1', 'Red'), > ('2', 'G

Editing content in Django Admin change-list

2008-07-02 Thread David Melton
I would like to be able to change the status of an item (Yes/No Field) in a list of items from the change-list view without having to open the item and change it within the change form. Is there an easy way (built in) to the Django admin framework to allow this? --~--~-~--~~-

removing page from cache (memcache)

2008-07-02 Thread Mike Chambers
I am using memcache for my site, and it is working well except for one issue. When a user enters a comment, I redirect them to the page they commented from. However, since the page is cached they dont see the comment. My first fix was to just appened a query string to the URL, but this then m

Re: Free Comments problem...

2008-07-02 Thread [EMAIL PROTECTED]
OK, done - http://dpaste.com/hold/60475/ Chris On Jul 3, 6:01 am, "Milan Andric" <[EMAIL PROTECTED]> wrote: > Can you paste your template athttp://dpaste.comso we can have a look? > > On Wed, Jul 2, 2008 at 11:10 AM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > : ) absolutely! It's in

Re: Stability of trunk and 1.0 target: experience, testimonials?

2008-07-02 Thread James Matthews
Great! On Wed, Jul 2, 2008 at 8:43 PM, J Meier <[EMAIL PROTECTED]> wrote: > > Thank you, everyone. That was exactly what I needed. It looks like > we'll be starting a prototype on Django trunk targeting 1.0 this week. > > Jim Meier > > > -- http://search.goldwatches.com/?Search=Movado+Watches

Re: Using SQLite in production

2008-07-02 Thread Graham Dumpleton
On Jul 2, 10:20 pm, David Marko <[EMAIL PROTECTED]> wrote: > I'm just considering using SQLite in small Django project(in > production environment). I have no fear about performance but what > troubles me is whether SQLite can be used in environment like Apache > +mod_wsgi? As SQLite is file based

Re: Editing content in Django Admin change-list

2008-07-02 Thread Malcolm Tredinnick
On Wed, 2008-07-02 at 18:23 -0700, David Melton wrote: > I would like to be able to change the status of an item (Yes/No Field) > in a list of items from the change-list view without having to open > the item and change it within the change form. Is there an easy way > (built in) to the Django ad

Re: deleting a session

2008-07-02 Thread Bobby Roberts
> for key in request.session: >     del request.session[key] I get the following error: Exception Type: KeyError Exception Value:0 Exception Location: /usr/lib/python2.5/site-packages/django/contrib/ sessions/backends/base.py in __getitem__, line 31 --~--~-~--~~-

HTML Email

2008-07-02 Thread Bobby Roberts
is there a way in Django to send an actual HTML email? I can only get it to send as an attachment to a text email which is really pointless in my opinion. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: HTML Email

2008-07-02 Thread Julien
Hi, Sending HTML as an attachment means that the HTML version will be displayed by email client that are configured so, including all the web-based clients like GMail. Clients that can't show HTML or are configured not to show HTML will show the text version instead. This is therefore best pract

A little help with an idea

2008-07-02 Thread bbeaudreault
Hello all, I just recently started playing around with django, and I am interested in using it to create a site I have in mind. I would appreciate any help in understanding if I have wrapped my head around the idea of projects and apps properly. Basically, the site would have a main page that d

Test client and GET parameters problem

2008-07-02 Thread Thomas
Weird problem, I am doing just fine when accessing /bug2/title/1.html?a=r through the browser. I fail with HTTP 404 when doing the same through the test client - it seems to chock on the ?a=r bit, the /bug2/title/1.html works just fine ... Relevant url pattern: (r'^([0-9a-z-_]+)/([0-9a-z-_]+)/

Re: Stability of trunk and 1.0 target: experience, testimonials?

2008-07-02 Thread Ramdas S
I have over 25 web apps/sites on Django, including a large intranet app, that has almost always about 150 users at any point of time, some 25,000 hits a day. All of them have been running on the trunk and are stable. Some of them are news sites for mags getting 10 k hits a day. It is any day bett

Re: HTML Email

2008-07-02 Thread Peter Melvyn
On 7/3/08, Bobby Roberts <[EMAIL PROTECTED]> wrote: > is there a way in Django to send an actual HTML email? I can only get > it to send as an attachment to a text email which is really pointless > in my opinion. Did you read paragraph "Sending alternative content types" in http://www.djangopro

Re: Anyone got a backend for MS SQL Server working?

2008-07-02 Thread Ulf Kronman
Hi again all, after a few days of struggling with django-pyodbc, I have finally got past the "ImportError: No module named django-pyodbc.db.mssql.base" stage. The problem was that the module package was missing __init__.py files in the directories above the mssql directory. So I added two empty _

Re: testing login problem

2008-07-02 Thread laspal
Hi, Thanks for the help but still I am not able to login in my test client.. here is the code: from django.test import TestCase from django.test.client import Client class IndustryTest(TestCase): fixtures = ['/fixtures/initial_data.xml'] def setUp(self): self.client = Client()

Re: Anyone got a backend for MS SQL Server working?

2008-07-02 Thread Malcolm Tredinnick
On Wed, 2008-07-02 at 23:18 -0700, Ulf Kronman wrote: > Hi again all, > after a few days of struggling with django-pyodbc, I have finally got > past the "ImportError: No module named django-pyodbc.db.mssql.base" > stage. > > The problem was that the module package was missing __init__.py files >

Re: Test client and GET parameters problem

2008-07-02 Thread Alex Koshelev
There is[1] special parameter named `data` that represents GET query as dictionary. Or you can pass QUERY_STRING parameter with raw GET string [1] http://www.djangoproject.com/documentation/testing/#making-requests On Jul 3, 9:42 am, Thomas <[EMAIL PROTECTED]> wrote: > Weird problem, > > I am do

<    1   2