Re: django as a platform for a commercial SaaS project?

2007-03-25 Thread ScottB
Hi Walter. On Mar 24, 3:59 pm, "walterbyrd" <[EMAIL PROTECTED]> wrote: > If I wanted to create commercial quality hosted software, would django > be the best solution? The sort of things I have in mind would be very > database oriented, and involve a lot of forms and reports. I would > like to be

Re: Fwd: Different subdomain for each application (again)

2007-03-25 Thread ScottB
Hi Tom. On Mar 24, 2:42 pm, Tom Smith <[EMAIL PROTECTED]> wrote: > A while ago Doug and Eivind asked about using subdomains for each app. > > I'd like to do this, but in the example they had a stab at they were > using Apache whereas I'm using Lighttpd... One thing you might like to consider is

Re: 'module' object has no attribute 'handler404'

2007-03-21 Thread ScottB
Hi konstantin. On Mar 21, 2:38 am, "akonsu" <[EMAIL PROTECTED]> wrote: > i have no handler404 defined in my application, so when a 404 is > raised the server returns internal server error and an error message > saying 'module' object has no attribute 'handler404' is written in to > the log. how t

Re: Problem importing models in custom data import scripts

2007-03-21 Thread ScottB
Hi Nathan. On Mar 21, 12:37 am, "Nathan Harmston" <[EMAIL PROTECTED]> wrote: > My Project is called pynomics and the app alignments. > ~/pynomics/alignments/models.py > > so in my "Parser.py", I try to import the models file > from pynomics.alignments.models import * > > but I get the following e

Re: New Forms/Newbie Question

2007-03-21 Thread ScottB
Hi Jim. On Mar 19, 8:41 pm, "JimR" <[EMAIL PROTECTED]> wrote: > how do I retrieve/store the correct key/id for the > attribute information? I generate a drop-down with the valid > selections "home," "mobile," etc.) and then want to store it's > associated id ... > FORM: > class RegistrationForm(f

Re: SESSION_EXPIRE

2007-03-21 Thread ScottB
On Mar 19, 6:00 pm, "tyman26" <[EMAIL PROTECTED]> wrote: > Where do I set the 'SESSION_EXPIRE_AT_BROWSER_CLOSE = True'? I added > this to the "settings" file and sync'd the database, but when I close > the browser the session still stays intact. Do I have to add this > when the session is create

Re: Subversion: How do you set up multiple branches of the same project on the same machine?

2007-03-19 Thread ScottB
Hi Aidas. On Mar 19, 2:18 pm, "Aidas Bendoraitis" <[EMAIL PROTECTED]> wrote: > I have a symlink from trunk/someproject to site-packages/someproject > on my machine. > > I need to launch the branched version of the project at the same time. > So intuitively I create a symlink from branches/somebra

Re: referrers: to django or not?

2007-03-19 Thread ScottB
Hi Bram. On Mar 17, 2:17 pm, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote: > "in the last 7 days your blog/item/whatever has been visited from: > 7 xhttp://somewebsite.com > 5 xhttp://someotherwebsite.com Beware of opening yourself up to referrer spam. Spam bots can request pages on your si

Re: How to use Django session without browser cookies support

2007-03-17 Thread ScottB
On Mar 15, 8:33 pm, Atilla <[EMAIL PROTECTED]> wrote: > What I can think of the top of my head is writing a middleware that > replaces all your internal URLs in the output, appending to them the > session ID variable. Note that your session IDs will be sent in the referrer header and can be seen

Re: Deployment with Subversion

2007-03-15 Thread ScottB
Hi Vincent. On Mar 14, 5:16 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Does anyone have tricks to make this process a bit more efficient and > not catastrophic in case we forget to copy the settings.py file? I use conditionals inside my settings.py so that one lot of paths/ settings ge

Re: Template Problem

2007-03-14 Thread ScottB
Hi Samira. On Mar 11, 11:56 am, "samira" <[EMAIL PROTECTED]> wrote: > Hi every Body, can any body help me? I want to have two folders for my > templates. One it for general template and other for template related > to member for example. How I can extend from general folder in > member ? Not sur

Re: Bit torrent class

2007-03-14 Thread ScottB
Hi Hubi. On Mar 10, 12:07 pm, "Hubi" <[EMAIL PROTECTED]> wrote: > i'm looking for bit torrent class for Django which can scrape > information (seed, peer) about the torrent file from trackers. I'm not sure if there is a Python module/library that does this, but if not it should be pretty easy to

Re: Video uploading and converting - queue system?

2007-03-08 Thread ScottB
Hi Henrik. On Mar 7, 10:47 pm, "Henrik Lied" <[EMAIL PROTECTED]> wrote: > So I've been thinking about a queue-system. How I should do this I'm > not sure about. I was thinking about adding an extra field to the > model (encoded = models.BooleanField), and setup a python script which > returns all

Re: Video uploading and converting - queue system?

2007-03-08 Thread ScottB
Hi Henrik. On Mar 7, 10:47 pm, "Henrik Lied" <[EMAIL PROTECTED]> wrote: > So I've been thinking about a queue-system. How I should do this I'm > not sure about. I was thinking about adding an extra field to the > model (encoded = models.BooleanField), and setup a python script which > returns all

Re: Thoughts about rendering errors below the form field?

2007-03-06 Thread ScottB
Hi Vertigo. On Mar 6, 9:05 am, "Vertigo" <[EMAIL PROTECTED]> wrote: > The default HTML rendering of form errors, with method as_table() at > least, is to display them above the form field. Am I the only one > concerned with this? :-) I wanted the error before the form field, but after the label.

Re: Getting up and running

2007-03-02 Thread ScottB
On Mar 2, 5:49 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I keep getting the following error when i syncdb > > raise ImproperlyConfigured, "Error loading psycopg2 module: %s" % e > django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 > module: No module named psycopg2 It

Re: Using Authentication Framework

2007-03-01 Thread ScottB
Hi Matt. > The problem is that it then trys to serve the css from the wrong url - > in the server window I get > > "GET /accounts/site_media/default.css HTTP/1.1" 404 2644 > > whereas the correct path is /site_media/default.css I think you want the url for your media directory to be full, rathe

Re: HttpResponsePermanentRedirect by POST

2007-03-01 Thread ScottB
> How do I do a HttpResponsePermanentRedirect by POST method with > params? > Any ideas? Not sure I understand the question. Your view can return an HttpResponsePermanentRedirect, telling the client to go to another url. However, you can't cause the client to post values to that url. You could

Re: passing a md5 digest string into URL

2007-02-27 Thread ScottB
Hi Giuseppe. > As i said, i need to pass in my URL a variable, wich is the > result of a md5 digest. > (no private information... only a validation key). > > Obviously i tried with > (r'^users/activate_user/(?P)/', 'views.register'), > (r'^users/activate_user/(?P[a-zA-Z0-9%\-]+=)/', > 'views.reg

Re: Newforms: Setting field width?

2007-02-21 Thread ScottB
> All my form elements on a newforms form are rather tiny. Is there any > way to specify the width of these fields? By default no length is specified for inputs, so they will be whatever size the browser defaults to. It's not the prettiest, but if you specify the widget to use, you can set attri

Re: login_required decorator

2007-02-20 Thread ScottB
Hi Frank. > is there any reason that the login_required decorator doesn't have the > login_url parameter? If you want to set the login url to something other than the default / accounts/login/ you add this to your settings.py: from django.contrib.auth import LOGIN_URL LOGIN_URL = '/accounts/sig

Re: Django over modpython

2007-02-19 Thread ScottB
For VPS hosted based in the UK, I can highly recommend Xtraordinary Hosting. I have a basic VPS with them and it's super fast. http://www.xtrahost.co.uk/xenvps Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Cooki Problem

2007-02-14 Thread ScottB
On Feb 14, 7:00 am, "samira" <[EMAIL PROTECTED]> wrote: > we can have two ways to store data in cookie: Session for permanent > and cookie for temporary. Am I right? Not exactly. Data stored in session is held on the server. The session middleware uses a cookie to give the client a session id s

Re: correct limit_choices_to syntax

2007-02-13 Thread ScottB
On Feb 13, 8:06 am, Benedict Verheyen <[EMAIL PROTECTED]> wrote: > def get_rooms(): > return Room.objects.exclude(id__in=[patient.room.id for patient in > Patient.objects.filter(room__isnull=False)]) > I tried limit_choices_to = {'id_in': get_rooms} but this gives me: > TypeError at /patient/

Re: Cooki Problem

2007-02-12 Thread ScottB
On Feb 12, 8:06 am, "samira" <[EMAIL PROTECTED]> wrote: > I want to have two > kind of cookie: permanent and temporary. Temporary cookie should be > deleted when browser close. I don't want to use > "SESSION_EXPIRE_AT_BROWSER_CLOSE" because that will delete all part of > cookies but I want to temp

Re: Registration confirmation view

2007-02-12 Thread ScottB
On Feb 11, 3:42 pm, "voltron" <[EMAIL PROTECTED]> wrote: > I plan on using newForms and the auth module for my site. All of the > examples I have seen involve extracting form data and creating a user > in the database immediately, how can I "shortcircuit" this process to > allow one to confirm one

Re: Quick but authenticated static file content.

2007-02-12 Thread ScottB
On Feb 11, 12:06 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > The files will be stored on a general > filesystem (probably on a large SAN array but I appreciate advice on > alternatives that can be shared by multiple servers). An alternative to SAN would be MogileFS (from the same people