Re: unable to open database file - sqlite3/apache problem - help?

2008-10-29 Thread Jason Sidabras
this solution doesn't fix it for me. i have my db in /var/www/myproject/databasefile and i've just simply `chmod 777` the parent directory On Oct 17, 1:22 pm, Emilio <[EMAIL PROTECTED]> wrote: > I found the solution: > > http://django.freelancernepal.com/errors/django-says-unable-to-open-d... >

Unit Testing forms with hidden fields

2008-12-08 Thread Jason Sidabras
Hello, I am working on adding unit testing to my code and the snag I have come across is in regards to unit fields. When user.is_anonymous() I have a hidden field sender_id = 1 which is easy to test by: from django.test.client import Client c = Client() c.post('sender_id': '1', 'post', '') bu

Re: Unit Testing forms with hidden fields

2008-12-08 Thread Jason Sidabras
wondering if django has a way to grab these hidden fields and place them in the post data when i run a c = Client() c.post('/contact-us/', {'some': 'variables' [+ hidden variables from template]}) Thanks. Jason On Dec 8, 6:54 pm, Malcolm Tredinnick <[EMAIL PROT

Re: Unit Testing forms with hidden fields

2008-12-08 Thread Jason Sidabras
Sounds good. I will probably work with Twill. Thanks! On Dec 8, 10:34 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-12-08 at 20:16 -0800, Jason Sidabras wrote: > > Sorry, I guess I missed that part. > > > In my template it checks if there is a user lo

Re: Django models

2008-12-22 Thread Jason Sidabras
The way I was thinking of doing it was to have two foreignkeys named friend1 and friend2 then when you do your list you could run (something like) friends = Friendship.objects.get(friend1__exact=user) and friends2 = Friendship.objects.get(friend2__exact=user) Then you have a complete instance of

Revision 6391 Admin error

2007-10-26 Thread Jason Sidabras
Hello, In an effort to keep up with svn with django I have just upgraded all of my sites to the newest svn revision. The problem is after updating I get the error: >NameError at /admin/ >name 'PasswordField' is not defined >Request Method:GET >Request URL: http://xxx/admin/ >Exception

Re: Revision 6391 Admin error

2007-10-26 Thread Jason Sidabras
ROTECTED]> wrote: > On Fri, 2007-10-26 at 15:49 -0700, Jason Sidabras wrote: > > Hello, > > > In an effort to keep up with svn with django I have just upgraded all > > of my sites to the newest svn revision. The problem is after updating > > I get the error: > > >

database table prefix

2007-02-27 Thread Jason Sidabras
Does django currently support a DATABASE_PREFIX option? The question arises because of a problem I am having with sqlite and my hosting provider. And the end of the day I would like to have three website which use some combinations of the same apps. These websites do not share "stories" from the

Re: database table prefix

2007-02-27 Thread Jason Sidabras
Sorry, mis-typed before. But I'm trying to see how this might work for my case. My mistake was that I am not trying to create multiple databases. Just multiple tables. So app named foo typically creates a table: foo_news and I would like it to be: site_one_foo_news Jason On Feb 27, 5:03 pm, "

Re: database table prefix

2007-02-27 Thread Jason Sidabras
_table Meta option > something like: > > from django.conf import settings >db_tabe = 'this_app_table_site_%d' % settings.SITE_ID > > but I'd rather make the applications understand SITE_ID and work accordingly. > > Cheers, > Marc > > On 2/28/07, Ja