Re: Sharing a development site cheaply (free as in beer?)

2009-06-29 Thread Tim Kersten
> Currently GAE only supports django 0.96. Besides that, there are several > django features that is not available on GAE such as: session middleware and > django model which in effect django admin and django auth is not runnable on > it too. But it's quite worth it for your needs I reckon. Um, i

Re: Sharing a development site cheaply (free as in beer?)

2009-06-29 Thread Tim Kersten
There are several hosting options out there, although I don't know of any free Django hosting other than Google app-engine. For normal Django, I've had some positive experience with http://djangohosting.ch , for €4 per month. I've also heard good things about http://www.webfaction.com/ . If you

Re: Trouble rendering a ManyToManyField with CheckBoxSelectMultiple widget

2009-06-26 Thread Tim Kersten
That works? You can use a ChoiceField to select _multiple_ values for the many-to-many field? Tim ^,^ On Fri, Jun 26, 2009 at 3:40 AM, Rodrigo Cea wrote: > > Stupid mistake, I had to use a MultipleChoiceField instead of a plain > ChoiceField. > > styles= forms.MultipleChoiceField (widget=form

Re: delete foreign cookie - version 0.95

2008-09-17 Thread Tim Kersten
Perhaps you could call a script on the other domain to update/delete/whatever the cookie in question? Tim ^,^ On Wed, Sep 17, 2008 at 2:05 PM, Tim Kersten <[EMAIL PROTECTED]> wrote: > I didn't think it was possible to delete/modify/create cookies for > other domains

Re: delete foreign cookie - version 0.95

2008-09-17 Thread Tim Kersten
I didn't think it was possible to delete/modify/create cookies for other domains obvious security issues and all than, no? Tim ^,^ On Wed, Sep 17, 2008 at 1:59 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > hi all > > please, i would like to ask for a little help. I am getting cooki

Re: Absolute URL vs Relative URL, or ~ ?

2008-09-16 Thread Tim Kersten
The domain isn't changing. It's just the path, so links that use absolute paths will break. In a way I get it - using relative urls is easy to break something if you need to move it. Also copy & paste becomes hard. Perhaps an APPNAME_URL in your request context would help? Tim ^,^ 2008/9/16 Ja

Re: Absolute URL vs Relative URL, or ~ ?

2008-09-16 Thread Tim Kersten
Isn't that what MEDIA_URL is for? At least for your images and css resources. And as for the rest of the urls... urls.py? Tim ^,^ On Tue, Sep 16, 2008 at 9:02 AM, est <[EMAIL PROTECTED]> wrote: > > Today, my boss came to me and asked: "Please move our django site from > http://xxx.com/ to htt

Re: OT: Google Chrome

2008-09-03 Thread Tim Kersten
The EULA says that only for "services"... Google Chrome isn't exactly a service. It's an application. You may be accessing services with google chrome, but it's a product and so imho that clause doesn't apply. Probably just copy and paste from google's standard terms & conditions. Tim ^,^ On W

Re: average posts per month?

2008-09-02 Thread Tim Kersten
There are a million different ways you could implement posts... how would anyone help you if you don't give the implementation details of your post? Tim ^,^ On Tue, Sep 2, 2008 at 2:05 AM, Will Rocisky <[EMAIL PROTECTED]> wrote: > > Oh! > > I am talking purely about Django models and queries

Re: using File storage

2008-08-28 Thread Tim Kersten
work. Marty's solution looks a lot more correct and a lot cleaner too. Perhaps you should be trying to make that work instead? Tim ^,^ On Thu, Aug 28, 2008 at 7:18 PM, julianb <[EMAIL PROTECTED]> wrote: > > On Aug 28, 6:03 pm, "Tim Kersten" <[EMAIL PROTECTED]> wrot

Re: using File storage

2008-08-28 Thread Tim Kersten
> Chart.objects.create(xml=default_storage.save('data.xml', ContentFile(data))) ha, I was almost certain that django wouldn't make it as hard as I had explained it. :-D Glad to see it's this easy! Tim ^,^ --~--~-~--~~~---~--~~ You received this message because yo

Re: using File storage

2008-08-28 Thread Tim Kersten
iirc, you can use http://docs.python.org/lib/module-StringIO.html to have a file like object from a string, and use that to make your django File object ( http://www.djangoproject.com/documentation/files/#the-file-object ). There's probably a better way than this though so you might want to wait

Re: newbie question - import conflicts

2008-08-28 Thread Tim Kersten
y views.py) >> And import it accordingly If your code is running in the sitedir then >> it should be able to import it. >> >> On Wed, Aug 27, 2008 at 12:34 PM, Tim Kersten <[EMAIL PROTECTED]> wrote: >>> >>> Your app folder must be in the current dire

Re: Wiki/CMS app?

2008-08-28 Thread Tim Kersten
Created a list for timiki: http://groups.google.com/group/timiki Tim ^,^ On Thu, Aug 28, 2008 at 9:58 AM, Tim Kersten <[EMAIL PROTECTED]> wrote: > I got a report of an error last night, and this morning alright. Last > night was due to an accidental import statement that somehow

Re: Wiki/CMS app?

2008-08-28 Thread Tim Kersten
at 7:06 AM, Thomas Guettler <[EMAIL PROTECTED]> wrote: > > Hi, > > I just tested your demo. Somehow there were some 500 pages (internal > server error). > > Nevertheless it looks to have most features I need. > > I the top, I would not display "home.html" but onl

Re: Problems With The Tutorial

2008-08-27 Thread Tim Kersten
Make sure your typing the command without the quotes too. Example: python manage.py runserver Tim ^,^ On Wed, Aug 27, 2008 at 11:42 PM, Sonny <[EMAIL PROTECTED]> wrote: > > When I type ' python manage.py runserver' bash says no file or > directory found. > I'm running ubuntu 7.02? > Thanks f

Re: running Django on a very small VPS

2008-08-27 Thread Tim Kersten
I know this isn't exactly on topic, but I signed up for http://djangohosting.ch/ today and was rather impressed. It's not a VPS, but quite impressive all the same. Tim ^,^ On Wed, Aug 27, 2008 at 9:57 PM, Erik Allik <[EMAIL PROTECTED]> wrote: > > You should check out > http://lincolnloop.com

Re: newbie question - import conflicts

2008-08-27 Thread Tim Kersten
Your app folder must be in the current directory, iirc, or in the python path for the import to work. Because the project is in the python path you'll always be able to import project.app. Rather than trying to "import something from app" - which as you said fails, you could try "import something"

Re: Wiki/CMS app?

2008-08-27 Thread Tim Kersten
system, so backups, restores and exporting/importing any data should be simple as the entire content is pure (x)html. I just set up a demo page here so that progress can be viewed: http://timikidemo.io41.com/ Tim ^,^ On Wed, Aug 27, 2008 at 4:24 PM, Thomas Guettler <[EMAIL PROTECTED]> wrote:

Re: Wiki/CMS app?

2008-08-26 Thread Tim Kersten
I was looking for something similar myself a while back and when I didn't find it, I decided to make my own. I only started a very short while ago, but it's well underway and is already being used internally. If you need something that has all the features you listed below now, then perhaps you s

Re: HTML in ValidationError?

2008-08-24 Thread Tim Kersten
http://www.djangoproject.com/documentation/forms/#customizing-the-error-list-format Hope this helps, Tim ^,^ On Sun, Aug 24, 2008 at 8:06 AM, coan <[EMAIL PROTECTED]> wrote: > > > > On Aug 24, 1:18 am, "Tim Kersten" <[EMAIL PROTECTED]> wrote: >> Seehttp://

Re: HTML in ValidationError?

2008-08-23 Thread Tim Kersten
See http://www.djangoproject.com/documentation/templates/#automatic-html-escaping Tim ^,^ On Sat, Aug 23, 2008 at 12:04 PM, coan <[EMAIL PROTECTED]> wrote: > > > I try to do a raise forms.ValidationError('oh no'), but the > HTML tags are escaped when I render my form as {{ form }}. > Tried t