Re: Expert

2009-05-23 Thread Juan Hernandez
where could I download third party django apps?? On Sun, May 24, 2009 at 8:21 PM, Tim Chase wrote: > > > I like you to plan me a timetable to learn Django from a to z > > in 3 months pleas help me. > > You don't mention your starting point: > > - Do you already

Re: running django with wsgi over apache

2009-05-23 Thread Sam Chuparkoff
On Sat, 2009-05-23 at 16:55 -0300, Gabriel wrote: > I can make django work under wsgi. > > I configured apache to run wsgi and the test script works. > > This is the vhost conf: > > > ServerName test.banshee.lnx > DocumentRoot "/home/www/python" > ErrorLog

Re: Django 1.0.2 show grandparent in admin

2009-05-23 Thread adelaide_mike
Spot on. Thanks Karen On May 24, 11:08 am, Karen Tracey wrote: > On Sat, May 23, 2009 at 9:57 PM, adelaide_mike > wrote: > > > > > > > First, please forgive my post to the Django developers group.  I mis- > > understood the terminology. > > > I

Re: Django 1.0.2 show grandparent in admin

2009-05-23 Thread Karen Tracey
On Sat, May 23, 2009 at 9:57 PM, adelaide_mike wrote: > > First, please forgive my post to the Django developers group. I mis- > understood the terminology. > > I am a total beginner in Django but have long experience with Omnis. > My data stores addresses in three

Django 1.0.2 show grandparent in admin

2009-05-23 Thread adelaide_mike
First, please forgive my post to the Django developers group. I mis- understood the terminology. I am a total beginner in Django but have long experience with Omnis. My data stores addresses in three tables named Suburb, (columns are id, name) Street, (columns are id, name, suburb_id) Property

Re: please provide a html download of the doc

2009-05-23 Thread James Bennett
Constructive suggestions for improving the documentation system should go into tickets in Trac. Personal correspondence between participants should stay off-list. Thread should be over now, please. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct."

Re: please provide a html download of the doc

2009-05-23 Thread Michael
On Sat, May 23, 2009 at 4:15 PM, Masklinn wrote: > > On 23 May 2009, at 21:32 , Nils-Hero wrote: > > Hi, > > > > that is a sympathic cite by voltaire and i agree > > > > Sphinx sucks, simply because it is not installable. dot. > This is going to turn into a real ugly

Re: Expert

2009-05-23 Thread Tim Chase
> I like you to plan me a timetable to learn Django from a to z > in 3 months pleas help me. You don't mention your starting point: - Do you already have /any/ programming skills? - Do you already know Python? - Do you already know HTML? - Do you understand HTTP? - Are you comfortable

Re: please provide a html download of the doc

2009-05-23 Thread Sam Chuparkoff
Email me privately and I will send you the html docs. sdc --~--~-~--~~~---~--~~ 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

Fixed: Why does form.is_valid() throw ValueError?

2009-05-23 Thread Rex
On May 23, 1:40 am, Daniel Roseman wrote: > On May 23, 5:07 am, Rex wrote: > > On May 22, 4:33 pm, "R. Gorman" wrote: > > > On May 21, 10:48 pm, Rex wrote: > > > > > I have the following

Re: adding errors to forms

2009-05-23 Thread Sam Chuparkoff
The reference you want is here: http://docs.djangoproject.com/en/dev/ref/forms/validation/#form-subclasses-and-modifying-field-errors Note particularly those first few paragraphs under 'Form subclasses and modifying field errors', and examples below. sdc

Re: Expert

2009-05-23 Thread Michael
On Sat, May 23, 2009 at 4:35 PM, dr.attas wrote: > > I like you to plan me a timetable to learn Django from a to z in 3 > months pleas help me. Start with the tutorial. Write your own app. Look at 3rd party apps for overall best practices. Start digging into source code.

Re: user object in login.html

2009-05-23 Thread Mike Ramirez
On Saturday 23 May 2009 02:10:17 pm Rok wrote: > Tried, but still no luck. Is it enough just to set > TEMPLATE_CONTEXT_PROCESSORS or should I add something else? Should be, here is the relative doc page for it.

Re: user object in login.html

2009-05-23 Thread Rok
On 23 maj, 21:28, Mike Ramirez wrote: > On Saturday 23 May 2009 11:53:08 am Rok wrote: > > > I am using @login_required decorator, where "I" do not have to write > > my login view, since decorator does everything "I" want. When user is > > not logged in it gets redirected to

Expert

2009-05-23 Thread dr.attas
I like you to plan me a timetable to learn Django from a to z in 3 months pleas help me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

running django with wsgi over apache

2009-05-23 Thread Gabriel
I can make django work under wsgi. I configured apache to run wsgi and the test script works. This is the vhost conf: ServerName test.banshee.lnx DocumentRoot "/home/www/python" ErrorLog /home/gabriel/pywks/test/error_log WSGIDaemonProcess test processes=2 threads=15

Iterate over MultipleChoiceList in Template

2009-05-23 Thread Retro486
I'm using the CheckboxSelectMultiple widget in a MultipleChoiceField and I need more control over where the field labels go and the field themselves. So far this is the only field type I've had a problem with. I've spent at least a few hours trying to find info on the web to no avail. I can't

Re: Shared connection stuff?

2009-05-23 Thread m...@nysv.org
On May 23, 11:57 am, "m...@nysv.org" wrote: > Maybe I'll still try Process objects instead of processing.Pool.imap() > to be safe.. I never did, as it seems the connection is very global. I also made a finding that the connection live in the base model, so although

Re: please provide a html download of the doc

2009-05-23 Thread Nils-Hero
Hi, that is a sympathic cite by voltaire and i agree Sphinx sucks, simply because it is not installable. dot. html-zips or 'setup.py install'. its just that simple. I suggest, you compile that doc for me, send it to n...@freiewelt.org, and for this work i put that as a download on my website

Re: user object in login.html

2009-05-23 Thread Mike Ramirez
On Saturday 23 May 2009 11:53:08 am Rok wrote: > I am using @login_required decorator, where "I" do not have to write > my login view, since decorator does everything "I" want. When user is > not logged in it gets redirected to LOGIN_URL where he can login, when > he request URL/view which has

Re: user object in login.html

2009-05-23 Thread Rok
I am using @login_required decorator, where "I" do not have to write my login view, since decorator does everything "I" want. When user is not logged in it gets redirected to LOGIN_URL where he can login, when he request URL/view which has @login_required decorator... But what if user requests

Re: Admin css being weird

2009-05-23 Thread Ariel Nunez
Please make sure there isn't another Django version being loaded. I experienced the same situation when I had copied admin media from one version and the Django module loaded had another one. (i.e. Django 1.0 installed systemwide and Django 1.1 on a virtualenv) Regards, Ariel.

Re: Unintended date to Unicode string conversion

2009-05-23 Thread Carlos A. Carnero Delgado
Hi, On Sat, May 23, 2009 at 1:22 PM, Karen Tracey wrote: > On Sat, May 23, 2009 at 1:05 PM, Alex Gaynor wrote: >> >> For what it's worth, neither I, nor anyone else, have ever seen the issue >> on a non-Windows platform.  However, I seem to recall

Re: Unintended date to Unicode string conversion

2009-05-23 Thread Karen Tracey
On Sat, May 23, 2009 at 1:05 PM, Alex Gaynor wrote: > > For what it's worth, neither I, nor anyone else, have ever seen the issue > on a non-Windows platform. However, I seem to recall using a different > SQLite, or python, or something version actually fixes the issue.

Re: Unintended date to Unicode string conversion

2009-05-23 Thread Alex Gaynor
On Sat, May 23, 2009 at 11:58 AM, Carlos A. Carnero Delgado < carloscarn...@gmail.com> wrote: > > Hi, > > On Sat, May 23, 2009 at 12:54 PM, Alex Gaynor > wrote: > > There was a bug like this seen when aggregates were first added that no > one > > was ever able to figure

Re: Unintended date to Unicode string conversion

2009-05-23 Thread Carlos A. Carnero Delgado
Hi, On Sat, May 23, 2009 at 12:54 PM, Alex Gaynor wrote: > There was a bug like this seen when aggregates were first added that no one > was ever able to figure out.  If you search django-developers you'll see the > discussions of this, it was only ever seen on Windows

Re: Unintended date to Unicode string conversion

2009-05-23 Thread Alex Gaynor
On Sat, May 23, 2009 at 11:51 AM, Carlos A. Carnero Delgado < carloscarn...@gmail.com> wrote: > > Hello, > > I'm having a little problem that's making my head hurt. I'm getting an > unintended date to string conversion in my application. > > >>> import django > >>> django.VERSION > (1, 1, 0,

Re: Plugin technology

2009-05-23 Thread Jani Tiainen
George Song kirjoitti: > On 5/23/2009 8:53 AM, Jani Tiainen wrote: >> Kai Diefenbach kirjoitti: >>> Hi Jani, >>> >>> On 23 Mai, 14:13, Jani Tiainen wrote: I'm designing application (site) that is supposed to rely heavily on pluings. i didn't found much of

Unintended date to Unicode string conversion

2009-05-23 Thread Carlos A. Carnero Delgado
Hello, I'm having a little problem that's making my head hurt. I'm getting an unintended date to string conversion in my application. >>> import django >>> django.VERSION (1, 1, 0, 'beta', 1) >>> import djtest.settings >>> djtest.settings.DATABASE_ENGINE 'sqlite3' Obviously, djtest

Re: how to delete table from database?

2009-05-23 Thread Francis
Also, There is a plugin for firefox that enable you to manage sqlite database with a GUI interface. https://addons.mozilla.org/en-US/firefox/addon/5817 I find it quite handy On May 23, 7:01 am, ashish tiwari wrote: > i create the tables in models.py > > i have the problem to

Re: de-facto tagging (was: When do snippets get into Django?)

2009-05-23 Thread Dougal Matthews
Fair enough. I don't really have an issue with the idea, could be quite handy. I can just imagine them saying no :) so thought I would question it as a move/idea. Also, might be a good idea to wait until 1.1 is out the door so they have time to consider it properly... Dougal On 23/05/2009,

Re: Why does form.is_valid() throw ValueError?

2009-05-23 Thread R. Gorman
Is your form variable the problem? Based on using f.is_valid() the code prior to this should be: f = *YourFormObject*(request.POST) R. On May 23, 12:07 am, Rex wrote: > On May 22, 4:33 pm, "R. Gorman" wrote: > > > > > > > You are correct in

Re: use of HttpResponseForbidden(), etc.

2009-05-23 Thread George Song
On 5/23/2009 9:07 AM, ken keller wrote: > When my view returns: > > return HttpResponseForbidden() > > the browser doesn't show the non-200 status. How are you determining that the browser is not receiving a 403 status? -- George --~--~-~--~~~---~--~~ You

Re: Plugin technology

2009-05-23 Thread George Song
On 5/23/2009 8:53 AM, Jani Tiainen wrote: > Kai Diefenbach kirjoitti: >> Hi Jani, >> >> On 23 Mai, 14:13, Jani Tiainen wrote: >>> I'm designing application (site) that is supposed to rely heavily on >>> pluings. >>> >>> i didn't found much of references how I can create plugin

use of HttpResponseForbidden(), etc.

2009-05-23 Thread ken keller
When my view returns: return HttpResponseForbidden() the browser doesn't show the non-200 status. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

ashish tiwari wants to chat

2009-05-23 Thread ashish tiwari
--- ashish tiwari wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-d1daa37620-797e12f2ba-bbc006273b9d2d26 You'll need to

ashish tiwari wants to chat

2009-05-23 Thread ashish tiwari
--- ashish tiwari wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-d1daa37620-dc0367129f-044c014942754058 You'll need to

ashish tiwari wants to chat

2009-05-23 Thread ashish tiwari
--- ashish tiwari wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-d1daa37620-3180f48683-516d3374db6ca61b You'll need to

Re: Plugin technology

2009-05-23 Thread Alex Gaynor
On Sat, May 23, 2009 at 10:50 AM, Jani Tiainen wrote: > > George Song kirjoitti: > > On 5/23/2009 5:13 AM, Jani Tiainen wrote: > >> I'm designing application (site) that is supposed to rely heavily on > >> pluings. > >> > >> i didn't found much of references how I can create

Re: Plugin technology

2009-05-23 Thread Jani Tiainen
Kai Diefenbach kirjoitti: > Hi Jani, > > On 23 Mai, 14:13, Jani Tiainen wrote: >> I'm designing application (site) that is supposed to rely heavily on >> pluings. >> >> i didn't found much of references how I can create plugin ... > > You may look into this article: >

Re: Plugin technology

2009-05-23 Thread Jani Tiainen
George Song kirjoitti: > On 5/23/2009 5:13 AM, Jani Tiainen wrote: >> I'm designing application (site) that is supposed to rely heavily on >> pluings. >> >> i didn't found much of references how I can create plugin that can >> provide something useful for my main template. something like: >> >>

Re: loading data with fixtures / recursion depth error

2009-05-23 Thread Karen Tracey
On Sat, May 23, 2009 at 10:34 AM, Andrew Se. Fefelov < andrew.fefe...@gmail.com> wrote: > > Hello guys! > > Using manage.py loaddata I got error > > RuntimeError: maximum recursion depth exceeded > > Full text on: http://dpaste.com/46940/ > > Don know what to do. Help pls! > >From the stack

Re: Plugin technology

2009-05-23 Thread Kai Diefenbach
Hi Jani, On 23 Mai, 14:13, Jani Tiainen wrote: > I'm designing application (site) that is supposed to rely heavily on > pluings. > > i didn't found much of references how I can create plugin ... You may look into this article:

Re: Accessing session variables in template with django

2009-05-23 Thread Puneet
Thanks Daniel, Its working fine now. :) On May 23, 1:39 am, Daniel Roseman wrote: > On May 23, 6:34 am, Puneet wrote: > > > > > Hi All, > > > I am facing issue when I am trying to access session variables in > > django. > > > I am setting

Re: global name 'request' is not defined

2009-05-23 Thread Bobby Roberts
> class MyForm(forms.Form): >     def __init__(self, *args, **kwargs): >         request = kwargs.pop('request', None) >         if request: >             self.request = request >         super(MyForm, self).__init__(*args, **kwargs) > > ... and in the view: > myform = MyForm(request.POST,

Re: Plugin technology

2009-05-23 Thread George Song
On 5/23/2009 5:13 AM, Jani Tiainen wrote: > I'm designing application (site) that is supposed to rely heavily on > pluings. > > i didn't found much of references how I can create plugin that can > provide something useful for my main template. something like: > > myplugin.py: > >

loading data with fixtures / recursion depth error

2009-05-23 Thread Andrew Se. Fefelov
Hello guys! Using manage.py loaddata I got error RuntimeError: maximum recursion depth exceeded Full text on: http://dpaste.com/46940/ Don know what to do. Help pls! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: global name 'request' is not defined

2009-05-23 Thread Daniel Roseman
On May 23, 2:33 pm, Bobby Roberts wrote: > > The code you have given is incapable of producing that error - request > > is passed as a parameter, so will always be defined within the > > function. Are you sure the error is coming from within the function? > > Give us the

Re: de-facto tagging (was: When do snippets get into Django?)

2009-05-23 Thread martin f krafft
also sprach Dougal Matthews [2009.05.23.1103 +0200]: > I don't think tagging is a particularly hard or non-trivial. No. All the more reason to push for a standard and prevent dozens of different implementations, no? > Anyway, this conversation is a bit irrelevant because;

Re: global name 'request' is not defined

2009-05-23 Thread Bobby Roberts
> The code you have given is incapable of producing that error - request > is passed as a parameter, so will always be defined within the > function. Are you sure the error is coming from within the function? > Give us the actual traceback that is being produced. > -- > DR. def

Re: global name 'request' is not defined

2009-05-23 Thread Daniel Roseman
On May 23, 2:07 pm, Bobby Roberts wrote: > from django import forms > from tinymce.widgets import TinyMCE > > def GetRequestId(request): >     curpath=request.path >     return curpath > > Hi all.  I have  a simple function i'm tryin to implement in my > forms.py file.  The

Re: Admin css being weird

2009-05-23 Thread simonecare...@gmail.com
Hi. I've the same problem deploying a django application on my web hosting with FastCGI. I've tried also to entirely copy the media admin directory into my public_html, but the only page I continue see looking good is the LOGOUT page. It seems that Django doesn't load properly the css. In the

global name 'request' is not defined

2009-05-23 Thread Bobby Roberts
from django import forms from tinymce.widgets import TinyMCE def GetRequestId(request): curpath=request.path return curpath Hi all. I have a simple function i'm tryin to implement in my forms.py file. The intent is to get the current path. However, this code results in global

Re: Why file path and name disappear for Image Field when/after validation

2009-05-23 Thread Daniel Roseman
On May 23, 12:27 pm, Stephen Cheng wrote: > I suppose that all the fields' value in the form defined in model can > be captured and remained when/after you do form validation. My problem > is that : > > 1. When the form is not valid, the filename of image field is

Re: How to create a QuerySet from raw SQL query?

2009-05-23 Thread Daniel Roseman
On May 23, 9:35 am, wierob83 wrote: > Hi, > > how can I obtain a QuerySet from a raw SQL query? > > I want to use some generic views (objects list, object detail). > Unfortunately, all examples I've seen require a QuerySet (e.g. > MyModel.objects.all()). I'm using an

Plugin technology

2009-05-23 Thread Jani Tiainen
I'm designing application (site) that is supposed to rely heavily on pluings. i didn't found much of references how I can create plugin that can provide something useful for my main template. something like: myplugin.py: provide_link = "MyPlugin" And then in my "core" application template:

Re: Single sign-in

2009-05-23 Thread Joshua Partogi
Hi Chris, What implementation are you planning to support? I think this is a good idea. Why don't you roll the ball first and get community feedback from there. Cheers. On May 23, 7:24 pm, Chris McCormick wrote: > Hi Lakshman, > > I haven't yet started or made any progress

Why file path and name disappear for Image Field when/after validation

2009-05-23 Thread Stephen Cheng
I suppose that all the fields' value in the form defined in model can be captured and remained when/after you do form validation. My problem is that : 1. When the form is not valid, the filename of image field is gone once you click submit or 2. If I intend to do something else once all fields

Re: how to delete table from database?

2009-05-23 Thread Masklinn
On 23 May 2009, at 13:01 , ashish tiwari wrote: > i create the tables in models.py > > i have the problem to delete table from databasei m using SQLITE3 > any one give me the code to how delete the table from database... > > thanks Use standard SQL DDL: DROP TABLE *tablename*;

Re: Locales

2009-05-23 Thread V
On May 22, 4:48 pm, Gabriel wrote: > Actually LANG is an example ;) > The real directory structure is: > > locale/fr/LC_MESSAGES > locale/es/LC_MESSAGES > locale/de/LC_MESSAGES > and so on > > Regards. I got that :) so you have already used lowercased LANG directory

how to delete table from database?

2009-05-23 Thread ashish tiwari
i create the tables in models.py i have the problem to delete table from databasei m using SQLITE3 any one give me the code to how delete the table from database... thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: What, if any, Apache modules are required to implement Django authentication?

2009-05-23 Thread Masklinn
On 23 May 2009, at 11:57 , Graham Dumpleton wrote: > On May 23, 5:59 am, palewire wrote: >> The default httpd.conf loaded on my CentOS server contains the >> following authentication modules. >> >> LoadModule auth_basic_module modules/mod_auth_basic.so >> LoadModule

Re: Pre-designed tempates for non-designers

2009-05-23 Thread Kenneth Gonsalves
On Saturday 23 May 2009 15:54:11 wierob83 wrote: > Are there any existing templates/stylesheets that I can build up on? this may be of interest to you: http://www.blueprintcss.org/ one of the original authors was/is? one of the designers of django's CSS and templates. -- regards kg

Re: Pre-designed tempates for non-designers

2009-05-23 Thread zayatzz
Run a google search on free css templates and you'll get hundreds and hundreds of results. Alan. On May 23, 11:54 am, wierob83 wrote: > Hi, > > Are there any existing templates/stylesheets that I can build up on? > > I'm new to Django. Although I'm impressed how easy

Pre-designed tempates for non-designers

2009-05-23 Thread wierob83
Hi, Are there any existing templates/stylesheets that I can build up on? I'm new to Django. Although I'm impressed how easy it is to create a view to return some data, the views I'm able to write as a programmer never look really good. While the admin and databrowse app seems to provide a

How to create a QuerySet from raw SQL query?

2009-05-23 Thread wierob83
Hi, how can I obtain a QuerySet from a raw SQL query? I want to use some generic views (objects list, object detail). Unfortunately, all examples I've seen require a QuerySet (e.g. MyModel.objects.all()). I'm using an existing database and already have SQL queries that I want to use. So how can

Re: Single sign-in

2009-05-23 Thread nederhoed
Hi Chris and Lakshman, hopefully I can compensate the "underwhelming response" a bit :-) The first that came to mind was OpenID. It's the rapid growing protocol being used for Signle Sign-on. It's an open standard, yeah! There are Python/Django libraries available you can use:

Pre-designed tempates for non-designers

2009-05-23 Thread wierob83
Hi, Are there any existing templates/stylesheets that I can build up on? I'm new to Django. Although I'm impressed how easy it is to create a view to return some data, the views I'm able to write as a programmer never look really good. While the admin and databrowse app seems to provide a

Re: What, if any, Apache modules are required to implement Django authentication?

2009-05-23 Thread Graham Dumpleton
On May 23, 5:59 am, palewire wrote: > The default httpd.conf loaded on my CentOS server contains the > following authentication modules. > > LoadModule auth_basic_module modules/mod_auth_basic.so > LoadModule auth_digest_module modules/mod_auth_digest.so > LoadModule

Re: Single sign-in

2009-05-23 Thread Chris McCormick
Hi Lakshman, I haven't yet started or made any progress on this library. I was a bit put off by the underwhelming response on this mailing list. Maybe I'll set up a Google Code repository this week, and import the working Facebook code I have, and then start integrating some of the other

Re: Shared connection stuff?

2009-05-23 Thread m...@nysv.org
On May 23, 1:59 am, "R. Gorman" wrote: > You can control database connections and transactions using > transaction management: > > http://docs.djangoproject.com/en/dev/topics/db/transactions/ This isn't about transactions, it's about the how the connection itself can not

Re: de-facto tagging (was: When do snippets get into Django?)

2009-05-23 Thread Dougal Matthews
I've never actually used it in any work related projects. I've only used it in personal messing around type projects... > Good contrib packages tackle issues that that are not trivial, are bikeshed > prone, and are difficult to get right for the common case. I don't think tagging is a

Re: de-facto tagging (was: When do snippets get into Django?)

2009-05-23 Thread martin f krafft
also sprach Kai Kuehne [2009.05.23.1048 +0200]: > > Pretty must everybody does seem to use django-tagging unless > > they have some special weird use-case. > > Huh? Can you remove that "everybody", please? I've never used > tagging and I'm confident - many others too. I

Re: Shared connection stuff?

2009-05-23 Thread m...@nysv.org
On May 22, 6:15 pm, Karen Tracey wrote: > On Fri, May 22, 2009 at 7:41 AM, m...@nysv.org > wrote: > > FWIW, the only other time I recall something like this coming up is here: >

Re: de-facto tagging (was: When do snippets get into Django?)

2009-05-23 Thread Kai Kuehne
Hi, On Fri, May 22, 2009 at 11:52 PM, Dougal Matthews wrote: > Pretty must everybody does seem to use django-tagging unless they have some > special weird use-case. Huh? Can you remove that "everybody", please? I've never used tagging and I'm confident - many others too.

Re: how to load data?

2009-05-23 Thread Reiner
Fields seperated with \t sounds a bit like a CSV export right? I needed to import CSV too, so I used the csv module to parse the file and then django models to store it in the database, no custom sql needed. # set up django environment [ ... ] import csv reader = csv.reader(open('file.csv',

Re: de-facto tagging (was: When do snippets get into Django?)

2009-05-23 Thread martin f krafft
also sprach Dougal Matthews [2009.05.23.0232 +0200]: > It doesn't. Why should it? Well, because django-tagging is, quote Jacob: - optional - de-facto standard - the implementation of a common pattern Tagging is a very common feature nowadays, isn't it? Having tag

Re: Why does form.is_valid() throw ValueError?

2009-05-23 Thread Daniel Roseman
On May 23, 5:07 am, Rex wrote: > On May 22, 4:33 pm, "R. Gorman" wrote: > > > You are correct in your understand that .is_valid() returns False if > > the data is invalid. Are you sure you are not processing data > > irrespective of whether the

Re: adding errors to forms

2009-05-23 Thread Reiner
I think the errors attribute needs to be a list (hence the name), so try: form._errors['name'].append('User name already in use') I think errors is not only a list, but an instance of django.forms.utils.ErrorList (or any subclass of it), which controls the way errors are displayed in the form,

Re: Accessing session variables in template with django

2009-05-23 Thread Daniel Roseman
On May 23, 6:34 am, Puneet wrote: > Hi All, > > I am facing issue when I am trying to access session variables in > django. > > I am setting the session variable something like : > >  request.session['cityname'] = cityname >  c = RequestContext(request, {'current_date':

Re: 2 seperate projects, or 2 seperate apps?

2009-05-23 Thread Skylar Saveland
> each be on their own domain when finished, and they will both have > their own auth models (to use both sites, you need an account on each > site). Sounds like two different settings files to me but I would be interested to hear what others have to input.

Re: i have a question about model

2009-05-23 Thread andrew
I recommand used "print [modal]" in the views and see what happend in the terminal. PS: you'd better try replace : def __str__(self): return self.SampleID with: def __unicode__(self): return self.SampleID On May 22, 11:55 pm, Herta

Re: de-facto tagging (was: When do snippets get into Django?)

2009-05-23 Thread Masklinn
On 23 May 2009, at 02:32 , Dougal Matthews wrote: > It doesn't. Why should it? > To be blessed at the "true standard" for tagging, the way third-party python modules are pulled into the stdlib? --~--~-~--~~~---~--~~ You received this message because you are

Accessing session variables in template with django

2009-05-23 Thread Puneet
Hi All, I am facing issue when I am trying to access session variables in django. I am setting the session variable something like : request.session['cityname'] = cityname c = RequestContext(request, {'current_date': now}) html = t.render(c) return HttpResponse(html) And I am trying to