Admin custom widget

2007-05-15 Thread Jens Werner
Hi everybody, I'm creating a new widget/template for my admin interface (image_with_thumbnail.html for nesh.thumbnail.field.ImageWithThumbnailField). For the moment it works fine, if I put the image_with_thumbnail.html in django/contrib/admin/templates/widget, but I don't want patch the django-pa

Re: Broken pipes with HttpResponseRedirect and Firefox / Trouble in paradise

2007-05-15 Thread veged
So, in my case the problem was in extension WebDeveloperToolbar and his setting "Disable cache". When caches disabled firefox really brokes pipe. On May 14, 11:35 pm, veged <[EMAIL PROTECTED]> wrote: > I have same problem with broken pipe and Firefox 2.0 (on MacOSX). But > i have it in very simpl

Re: Help with limit_choices_to

2007-05-15 Thread xgdlm
> At the moment, the easiest way I see to to that is to include a JS > file that will catch the current member_id, then call an external page > that will return a JSON string of > "Folder.objects.filter(member=member) " query_set and then build the > wished multiselected box .. I'll try that way

Discussion on urgently-looking-for-python-with-django-developers---london

2007-05-15 Thread IT Recruiter
At this momentum its permanent position. Thanks for your interest, Cheers srini --~--~-~--~~~---~--~~ 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.c

View this page "Urgently looking for Python with Django Developers - London"

2007-05-15 Thread IT Recruiter
Click on http://groups.google.co.uk/group/django-users/web/urgently-looking-for-python-with-django-developers---london?hl=en - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ You received this message because you a

Free django hosting

2007-05-15 Thread Seamus
Is there any free webhosts out there which support django? --~--~-~--~~~---~--~~ 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

Django users in London want to meet up for beers?

2007-05-15 Thread Nic James Ferrier
To talk django and python? Anyone? -- Nic Ferrier http://www.tapsellferrier.co.uk --~--~-~--~~~---~--~~ 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@googlegr

Re: FLV Video Uploader in Django

2007-05-15 Thread Pythoni
Can you please let us know more about the traffic? I understand that you can upload one file of 100Mb + at one time but do you have experience with heavy uploads? L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

***great chance to earn money!***

2007-05-15 Thread James
My name is James Cai from China.And I would like to say I've find some good ways to make business ( trade related ).If you are interested,please offer your email address,so that I can send a plan of it to you.Hope you will be my partner!! My E-mail:[EMAIL PROTECTED] --~--~-~--~~-

Re: Cannot resolve keyword '___' into field

2007-05-15 Thread Malcolm Tredinnick
On Tue, 2007-05-15 at 16:54 +1000, Mark Jarecki wrote: > The temporary fix that I've employed at the moment is e.g.: > > > Instead of > > > > > osIcons = > > > product.productOSIcons.filter(isPublished=True).order_by('osIconName') > > > I've got: > > > icons = ProductOSIcons.objects.f

Re: Model subclassing

2007-05-15 Thread Malcolm Tredinnick
On Mon, 2007-05-14 at 16:13 -0700, Joe wrote: > I was wondering what the status of this is? I know that it broke a > while back with the introduction of magic object removal, and has been > in the pipeline since. I just tested it out on my recent SVN checkout, > and it seemed to create the tables

Re: assertRedirects

2007-05-15 Thread Jiri Barton
> Redirecting to a GET with data is a fairly eclectic edge case, and I > can't say I'm a huge fan of an assertion statement modifying the > variables it is asserting. I have but to agree with both statements. Let's leave it the way it is. > I'm inclined to put this in the 'not a common use case'

SQLite - unsupported file format

2007-05-15 Thread Panos Laganakos
OS: Mac OS X - 10.4 SQLite: 3.1.3 Django: 0.96 Python: 2.5 I've set the DATABASE_ENGINE to 'sqlite3', and the db gets created when I call $manage.py syncdb And the project/apps all work fine. When I try to connect to it from the commandline 'sqlite3' tool, or pipe manage.py clearsql [appname],

Re: Django users in London want to meet up for beers?

2007-05-15 Thread IT Recruiter
Ideally looking for Django, but as work involves python can train Django if strong in programming. Thanks On 15 May, 09:54, Nic James Ferrier <[EMAIL PROTECTED]> wrote: > To talk django and python? > > Anyone? > > -- > Nic Ferrierhttp://www.tapsellferrier.co.uk --~--~-~--~~--

Re: SQLite - unsupported file format

2007-05-15 Thread Lars Stavholm
Panos Laganakos wrote: > OS: Mac OS X - 10.4 > SQLite: 3.1.3 > Django: 0.96 > Python: 2.5 > > I've set the DATABASE_ENGINE to 'sqlite3', and the db gets created > when I call > > $manage.py syncdb > > And the project/apps all work fine. > > When I try to connect to it from the commandline 'sql

order of fields in a newform

2007-05-15 Thread Bram - Smartelectronix
Hey everyone, How do I change the order of the fields in a newform: class ContactForm(forms.Form): to = forms.ModelChoiceField(ContactEmail.objects.all()) message = forms.CharField(widget=forms.Textarea()) def __init__(self, user, *args, **kwargs): super(ContactForm, self).__init

Re: order of fields in a newform

2007-05-15 Thread Malcolm Tredinnick
On Tue, 2007-05-15 at 13:18 +0200, Bram - Smartelectronix wrote: > Hey everyone, > > > How do I change the order of the fields in a newform: > > class ContactForm(forms.Form): >to = forms.ModelChoiceField(ContactEmail.objects.all()) >message = forms.CharField(widget=forms.Textarea()) >

Re: order of fields in a newform

2007-05-15 Thread Bram - Smartelectronix
Malcolm Tredinnick wrote: >> Is there any way to explicitly order fields? > > This is one of those cases where reading the newforms source is going to > be the best way to work out the answers. It shouldn't be too hard for > anybody who wants this kind of depth to trace through what is going on.

Style with newforms

2007-05-15 Thread Tipan
I've a form containing a field with radio buttons that accept a Yes/No response from the user, the field definition is: disp_resp = forms.ChoiceField(choices=[(True,'Yes'), (False,'No')],widget=forms.RadioSelect(), initial=False) When rendered to the template, it produces a bullet point alongsid

Summon specific filter on related object from Django template

2007-05-15 Thread Vertigo
Hi, Here is my problem, summarized by this web page: I would like to display only the public documents of a given project (not the private ones). Class Document has a ForeignKey field on class Project, and a BooleanField (is_public). My condition is: I just pass the Project object to my template

Re: Style with newforms

2007-05-15 Thread James Bennett
On 5/15/07, Tipan <[EMAIL PROTECTED]> wrote: > When rendered to the template, it produces a bullet point alongside > each radio button. In your template -- not in Python code -- add an HTML 'id' to your form, and then put a rule like this in your site's stylesheet: #my_form_id ul li { list-s

Re: Summon specific filter on related object from Django template

2007-05-15 Thread James Bennett
On 5/15/07, Vertigo <[EMAIL PROTECTED]> wrote: > I could build a custom method (get_public_documents) on model Project. > But the documentation suggests that model methods are 'row-level' > oriented. And yet the methods which fetch the set of related objects are instance methods, not class-level

Re: Summon specific filter on related object from Django template

2007-05-15 Thread Vertigo
Bureaucrat James Bennett, you are technically correct -- the best kind of correct! :-) Thanks for bringing me this new approach. I like it that way. As for guidelines, I tend to follow them even when I do not grasp the good reason behind. Following guidelines would have avoided my department to l

Re: Model subclassing

2007-05-15 Thread anders conbere
On 5/15/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Mon, 2007-05-14 at 16:13 -0700, Joe wrote: > > I was wondering what the status of this is? I know that it broke a > > while back with the introduction of magic object removal, and has been > > in the pipeline since. I just tested it

Re: Style with newforms

2007-05-15 Thread Tipan
Thanks James, that worked a treat. I did have a go at the CSS method before, but clearly couldn't do it at the lowest level. Moving up to the form tag did the trick. Simple really. Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: problem with file download?

2007-05-15 Thread Bob Dively
On May 14, 5:16 pm, Bob Dively <[EMAIL PROTECTED]> wrote: > The file is sent to the browser (Firefox), which understands the > mimetype correctly and hands the file off to Excel. However, Excel > says that the file is in an unrecognized format. When I open the file > with Excel, it's garbled. The

Re: Can't connect to MySQL

2007-05-15 Thread Mark Phillips
On May 14, 2007, at 10:37 AM, badger17 wrote: > It looks as if python is not even able to connect to the database. Is > MySQL definately running? Are the port and host settings correct in > settings.py ? Yes, I agree. Python cannot connect to the database. MySQL is running, I can access it via c

Re: ImportError: No module named mysite.settings

2007-05-15 Thread Mark Phillips
On May 14, 2007, at 7:41 AM, ilDave wrote: > Check the permissions of the directory where your app lives, it has to > be readable by the webserver. Good suggestion. I think it is root:wheel 755 but I will check. - Mark --~--~-~--~~~---~--~~ You received this

django vps hosting

2007-05-15 Thread urielka
I am running two django sites with vpsland(good support) for the last 7 days, but since i having problems with their ssh(running really slow) i thinking about switching to other host. Is there any good vps hosting? it probably be better if it is in Europe for lower latency. thx, Uriel --~-

Re: django vps hosting

2007-05-15 Thread david
It's not in Europe, but I've been using RimuHosting since December or so, and they've been great. The connection is fast, downtime is minimal, and their responses to support questions are always prompt. On Tue, 15 May 2007 15:12:24 -, urielka <[EMAIL PROTECTED]> wrote: > > I am running tw

Re: django vps hosting

2007-05-15 Thread Adam Fast
I've been pleased with SliceHost. On 5/15/07, urielka <[EMAIL PROTECTED]> wrote: > > > I am running two django sites with vpsland(good support) for the last > 7 days, but since i having problems with their ssh(running really > slow) i thinking about switching to other host. > > Is there any good

Fwd: COOl Summer - Thumbnails to large image

2007-05-15 Thread Kooooool forwords
[image: COOL STUFF , BE COOL , WATER GARDEN , WATER PARK] [image: COOL STUFF , BE COOL , WATER GARDEN , WATER PARK]

Tricky context question

2007-05-15 Thread Wolfram Kriesing
I have a bi-language (english and german) site. I try to hide the multi language part as best as I can from the programmer, by encapsulating it as best as I can in the model. An example: class Tag(models.Model): name_en = models.SlugField() name_de = models.SlugField() @property def

OR lookups across related tables

2007-05-15 Thread Jiri Barton
Hi, why does not the following work? My simple model: class Author(models.Model): name = models.CharField(maxlength=255) def __str__(self): return self.name class Article(models.Model): author = models.ForeignKey(Author) title = models.CharField(maxlength=255) def

How to change the encoding from UTF-8 to something else ?

2007-05-15 Thread Martin Tomov
http://code.djangoproject.com/ticket/72 About this tichet. The last question is mine. How to change the encoding, sent by the HTTP headers to something else, but UTF-8 ? The meta thing in the html is useless. Thanks --~--~-~--~~~---~--~~ You received this messa

Re: Can't connect to MySQL

2007-05-15 Thread Mark Phillips
On May 14, 2007, at 10:37 AM, badger17 wrote: > Are the port and host settings correct in > settings.py ? In settings.py I had the host as "127.0.0.1". I changed that to an empty string, and the connection succeeded. Thanks, - Mark --~--~-~--~~~---~--~~ Yo

Re: How to change the encoding from UTF-8 to something else ?

2007-05-15 Thread Atilla
On 15/05/07, Martin Tomov <[EMAIL PROTECTED]> wrote: > > http://code.djangoproject.com/ticket/72 > > About this tichet. The last question is mine. > > How to change the encoding, sent by the HTTP headers to something > else, but UTF-8 ? The meta thing in the html is useless. > > Thanks This ticke

Maintainance Middleware

2007-05-15 Thread Christian M Hoeppner
Hi there! How would one handle the following tasks in a middleware? If a settings called "MAINTENANCE" is true, check if the user is logged in. If he is, let him view the requested page normally. If not, redirect to maintenance page. If setting is false, show page normally despite user logged

Django-l10n-Portuguese

2007-05-15 Thread Alexandre Klostermann
I would like to announce a Brazilian initiative on creating a task force (read: Brazilian Django Community [1]) to translate django's documentation to portuguese in a official manner.* To do it we created the django-l10n-portuguese group in google.groups [2], and linked all portuguese translations

formulaic row-permissions + django

2007-05-15 Thread Bram - Smartelectronix
hey guys, I was wondering if anyone has ever does a formulaic permissions thing in django. something where you can define user permissions for certain actions, depending on the various attributes of an object. Think something like: def can_view(user): if self.is_private and self.owner.prefe

Re: Maintainance Middleware

2007-05-15 Thread Jeremy Dunck
On 5/15/07, Christian M Hoeppner <[EMAIL PROTECTED]> wrote: > > Hi there! > > How would one handle the following tasks in a middleware? Put this somewhere in your app: == class MaintenanceMiddleware(object): def process_request(self, request): from django.conf import settings from d

Re: Tricky context question

2007-05-15 Thread Aidas Bendoraitis
This should help you to solve almost all your multilingual problems: http://www.djangosnippets.org/snippets/51/ Regards, Aidas Bendoraitis aka Archatas On 5/15/07, Wolfram Kriesing <[EMAIL PROTECTED]> wrote: > > I have a bi-language (english and german) site. I try to hide the > multi language

Re: OR lookups across related tables

2007-05-15 Thread Wolfram Kriesing
just quickly skimming over, did you mean? Author.objects.filter( Q(name='Jiri Barton') | Q(article__title__icontains='revealed')) On 5/15/07, Jiri Barton <[EMAIL PROTECTED]> wrote: > > Hi, why does not the following work? > > My simple model: > > class Author(models.Model): > name = models.C

Re: How to change the encoding from UTF-8 to something else ?

2007-05-15 Thread [EMAIL PROTECTED]
Yes Atilla, the setting's variable must be : DEFAULT_CHARSET = 'UTF-8' --~--~-~--~~~---~--~~ 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 un

Re: Maintainance Middleware

2007-05-15 Thread [EMAIL PROTECTED]
> Hi there! > > How would one handle the following tasks in a middleware? > > If a settings called "MAINTENANCE" is true, check if the user is logged in. > If > he is, let him view the requested page normally. If not, redirect to > maintenance page. > > If setting is false, show page normall

Re: django vps hosting

2007-05-15 Thread Doug Van Horn
I use rimuhosting.com. I'm pretty sure they have a Data Center in London, so that might be the right up your alley. I'm in St. Louis, where Slicehost is located, but they have a ridiculous waiting list. So I can't even try them out. I've been happy with Rimu, though. doug. On May 15, 10:12

Re: Maintainance Middleware

2007-05-15 Thread Christian M Hoeppner
> Something like this (i didn't check if this code works): > > from django.conf import settings > from django.http import HttpResponseRedirect > > class MaintenanceMiddleware(object): > def process_request(self, request): > if settings.MAINTENANCE: > if not request.user.

Re: where to "listen" for backwards incompatible changes in trunk?

2007-05-15 Thread waylan
On May 14, 2:18 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > You should be keeping an eye on this wiki page if you are using the > absolutely latest subversion > code:http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges > > There is no RSS feed on a per-page level in the wiki,

Re: SQLite - unsupported file format

2007-05-15 Thread Panos Laganakos
I haven't installed any pysqlite versions since I moved to 2.5 (from OS X's default 2.3) Python, as sqlite3 is included in the lib module by default. I uploaded the db on the production server though, and sqlite3 client: 3.3.5 seems to open the file just fine. So as you mentioned it must be a typ

Re: OR lookups across related tables

2007-05-15 Thread Jiri Barton
That is actually the same :-) However neither Author.objects.filter( Q(name='Jiri Barton') | Q(article__title__icontains='revealed')) works. :-( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Quick Query Question

2007-05-15 Thread Collin Anderson
I am working with a laptop rental program, and I was wondering if there is a better way to do this lookup. This works fine, but it seems like it could be better. from django.db import models class Laptop(models.Model): def laptops_out_on(date): 'get a list of laptops out on a given d

Re: django vps hosting

2007-05-15 Thread urielka
yeha i really liked SliceHost they have the best prices but the waiting list is more than ridiculous,if they have such a big waiting list i would expect from them to make their data center bigger. i am staying right now with vpsland,they are really great and the ssh turn out to be a problem with m

Re: Maintainance Middleware

2007-05-15 Thread Jeremy Dunck
On 5/15/07, Christian M Hoeppner <[EMAIL PROTECTED]> wrote: ... > Of course, this would work, but it also prevents users not logged in from > logging in. Is there a way to check if the user is accessing the login view, > in order to let him access his account and the site being under maintenance?

Re: django vps hosting

2007-05-15 Thread Brian Luft
I've been using WebFaction and have been happy with it so far. The plan I'm using is actually a shared hosting plan. While you do share an OS instance with others, you still get shell access. They have a slick control panel that makes it easy to drop in various frameworks and applications (eg.

Re: Quick Query Question

2007-05-15 Thread Jeremy Dunck
On 5/15/07, Collin Anderson <[EMAIL PROTECTED]> wrote: > class Laptop(models.Model): > def laptops_out_on(date): > 'get a list of laptops out on a given day' > result = Laptop.objects.none() > for x in Rental.objects.filter(checkout__lte=date, > checkin__gte=date): >

databrowse + admin

2007-05-15 Thread wildg
The new databrowse application is pretty slick. Obviously still a work in progress, but already useful. About a month ago there was a feature request for adding a new 'view' permission to the default 'add', 'change', and 'delete' permissions in admin. The response was don't use admin to view da

dictionary lookup in template within regroup tag

2007-05-15 Thread cesco
Hi, I'm trying to render a template using a generic view of the list_detail type. The list of objects I'm trying to render in the template (which are offers) have an original_price and a discounted_price and I'd like to display also the relative discount (that is: (original_price-discounted_price

More info in Django server logs

2007-05-15 Thread Kostadin Cholakov
Hello, We are currently using Django for access to a linguistic database where people can validate certain entries by checking certain checkboxes! We have the problem that the users are not in our departament and they are connected to Internet through a different proxy server. When the annotators

Pickle model fields

2007-05-15 Thread [EMAIL PROTECTED]
Someone /has/ to be doing this. I've got a dictionary, that I want to pickle and store in a field in one of my Model classes. What is the optimal solution for this situation? All the solutions I can think of equate to jiggery-hacky and having to know if the field is in the pickled or unpickled sta

Re: django [was "vps"] hosting

2007-05-15 Thread Tim Chase
As folks are giving their opinions regarding Django-hosting, I'm in the market for some fairly inexpensive hosting service. Django-friendliness is a big plus. I spent a weekend recently doing a bit of research on the providers listed at http://code.djangoproject.com/wiki/DjangoFriendlyWebHost

More info in Django server logs

2007-05-15 Thread Kostadin Cholakov
Hello We are currently using Django to annotate linguistic data. The annotators can reject oder conferm a certain entry by checking the corresponding checkbox. The problem is that when they do this for a certain page and go to the next one and then again go back, the checkboxes are no longer chec

Re: Pickle model fields

2007-05-15 Thread Malcolm Tredinnick
On Tue, 2007-05-15 at 13:59 -0700, [EMAIL PROTECTED] wrote: > Someone /has/ to be doing this. I've got a dictionary, that I want to > pickle and store in a field in one of my Model classes. What is the > optimal solution for this situation? All the solutions I can think of > equate to jiggery-hack

Re: More info in Django server logs

2007-05-15 Thread Malcolm Tredinnick
On Tue, 2007-05-15 at 19:14 +, Kostadin Cholakov wrote: > Hello, > > We are currently using Django for access to a linguistic database > where people can validate certain entries by checking certain > checkboxes! We have the problem that the users are not in our > departament and they are con

Re: dictionary lookup in template within regroup tag

2007-05-15 Thread Malcolm Tredinnick
On Tue, 2007-05-15 at 20:40 +, cesco wrote: > Hi, > > I'm trying to render a template using a generic view of the > list_detail type. The list of objects I'm trying to render in the > template (which are offers) have an original_price and a > discounted_price and I'd like to display also the

Re: More info in Django server logs

2007-05-15 Thread Kostadin Cholakov
Hi We are using the development server only! Can you give me some reference for the necessary changes in the code? Thanks! On 5/15/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-05-15 at 19:14 +, Kostadin Cholakov wrote: > > Hello, > > > > We are currently using Django fo

MySQLdb Error

2007-05-15 Thread Steve
When trying to perform a syncdb I get the following error: Traceback (most recent call last): File "./manage.py", line 11, in execute_manager(settings) File "/usr/local/lib/python2.5/site-packages/django/core/ management.py", line 1674, in execute_manager execute_from_command_line(ac

Re: MySQLdb Error

2007-05-15 Thread Steve
I forgot to mention... Syncdb was working yesterday when I first ran it. I have added some django.contrib applications to my settings.py, which I have since removed in an effort to try to figure out if that was causing the problem. Sadly, it didn't fix the problem, and that's the only thing that'

newforms.clean_data vs. newforms.cleanED_data

2007-05-15 Thread cornelius bolten
hi, i just tried to click through my new website (django 0.97) after developing it on my localhost (django latest stable). all my websites' forms (newforms) worked well on my localhost.. but online i got lot's of errors. after some searching, i found out that newforms.clean_data changed to n

Re: newforms.clean_data vs. newforms.cleanED_data

2007-05-15 Thread canen
This changed was committed yesterday. See here http://groups.google.com/group/django-developers/browse_thread/thread/c87a893a4d7c50a0/32f777bafd3cdb35#32f777bafd3cdb35 for the discussion that lead to the change. On May 15, 10:43 pm, cornelius bolten <[EMAIL PROTECTED]> wrote: > hi, > > i just tr

Re: newforms.clean_data vs. newforms.cleanED_data

2007-05-15 Thread cornelius bolten
alright! makes sense.. canen schrieb: > This changed was committed yesterday. See here > http://groups.google.com/group/django-developers/browse_thread/thread/c87a893a4d7c50a0/32f777bafd3cdb35#32f777bafd3cdb35 > for the discussion that lead to the change. > > On May 15, 10:43 pm, cornelius bolt

Re: newforms.clean_data vs. newforms.cleanED_data

2007-05-15 Thread Malcolm Tredinnick
On Tue, 2007-05-15 at 23:43 -0400, cornelius bolten wrote: > hi, > > i just tried to click through my new website (django 0.97) after > developing it on my localhost (django latest stable). > > all my websites' forms (newforms) worked well on my localhost.. but > online i got lot's of errors.

Re: newforms.clean_data vs. newforms.cleanED_data

2007-05-15 Thread Joseph Kocherhans
On 5/15/07, canen <[EMAIL PROTECTED]> wrote: > > This changed was committed yesterday. See here > http://groups.google.com/group/django-developers/browse_thread/thread/c87a893a4d7c50a0/32f777bafd3cdb35#32f777bafd3cdb35 > for the discussion that lead to the change. > > On May 15, 10:43 pm, corneli

Re: newforms.clean_data vs. newforms.cleanED_data

2007-05-15 Thread Malcolm Tredinnick
On Tue, 2007-05-15 at 16:58 -0500, Joseph Kocherhans wrote: > On 5/15/07, canen <[EMAIL PROTECTED]> wrote: > > > > This changed was committed yesterday. See here > > http://groups.google.com/group/django-developers/browse_thread/thread/c87a893a4d7c50a0/32f777bafd3cdb35#32f777bafd3cdb35 > > for th

Re: Pickle model fields

2007-05-15 Thread Jeremy Dunck
On 5/15/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > One solution would be that the model field only stores the pickled > value. I think it's not well understood that model fields can be created by subclassing django.db.models.fields.Field. Lucki, have a look at the docstrings in that cl

Re: Pickle model fields

2007-05-15 Thread Malcolm Tredinnick
On Tue, 2007-05-15 at 17:01 -0500, Jeremy Dunck wrote: > On 5/15/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > One solution would be that the model field only stores the pickled > > value. > > I think it's not well understood that model fields can be created by > subclassing django.db.mo

Re: Pickle model fields

2007-05-15 Thread Jeremy Dunck
On 5/15/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > One day I'll have the infinite spare time I've been asking Santa Claus > for and maybe get around to adding the missing pieces and documentation. > Or somebody will beat me to it (even better). I certainly wasn't intending to prod you or

Re: MySQLdb Error

2007-05-15 Thread Steve
Apparently there is a difference between the cache created by apache and the one created by django that makes them incompatible. In order for me to run syncdb I had to delete the cache, and before apache could create a new cache, run syncdb... however this caused apache to start throwing the same

Re: Pickle model fields

2007-05-15 Thread Malcolm Tredinnick
On Tue, 2007-05-15 at 17:11 -0500, Jeremy Dunck wrote: > On 5/15/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > One day I'll have the infinite spare time I've been asking Santa Claus > > for and maybe get around to adding the missing pieces and documentation. > > Or somebody will beat me to

Re: Using Django Models outside of Django

2007-05-15 Thread johnny
Doing the following: from os import environ environ['DJANGO_SETTINGS_MODULE'] = 'settings' from settings import * Only works at the parent folder level. What if you have script in sub folder level? I tried it at sub folder level and got error: from os import environ environ['DJANGO_SETTINGS_M

Re: MySQLdb Error

2007-05-15 Thread Jeremy Dunck
On 5/15/07, Steve <[EMAIL PROTECTED]> wrote: > > Apparently there is a difference between the cache created by apache > and the one created by django that makes them incompatible. In order > for me to run syncdb I had to delete the cache, and before apache > could create a new cache, run syncdb...

Re: Using Django Models outside of Django

2007-05-15 Thread Malcolm Tredinnick
On Tue, 2007-05-15 at 15:18 -0700, johnny wrote: > Doing the following: > > from os import environ > environ['DJANGO_SETTINGS_MODULE'] = 'settings' > from settings import * > > Only works at the parent folder level. What if you have script in sub > folder level? I tried it at sub folder level

Reminder: if you're using an SVN checkout, watch for changes

2007-05-15 Thread James Bennett
Howdy, folks! Since a recent change in Django's development trunk caught a few people unawares (see the thread today on 'clean_data' versus 'cleaned_data' in newforms), I thought I'd take this opportunity to put on my release-manager hat and remind everybody that if you're working from a Subversi

Re: MySQLdb Error

2007-05-15 Thread Steve
As far as I know. I could have screwed something up, but everything related to django and apache is owned by root:wheel It's only a test environment anyway... so it's not that big of a deal if I need to delete the caches before doing things... On May 15, 3:18 pm, "Jeremy Dunck" <[EMAIL PROTECTED

Re: MySQLdb Error

2007-05-15 Thread Bryan Veloso
It looks like you're using version 1.2.2. Try using 1.2.1_p2 and see if that works, I had a problem similiar to yours and downgrading to that version fixed my problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Issue with MySQL wrapper

2007-05-15 Thread Gerard M
Hi guys I have a big problem with this wrapper im using Ubuntu 7.04 and I want to install python-MySQLdb, I used synaptics and it is installed, but when I try to do >>> import MySQLdb and I get this error: Traceback (most recent call last): File "", line 1, in File "MySQLdb/__init__.py", li

Developer needed for hosted client Screening & Client management system

2007-05-15 Thread Lee Dreams
Were an adult Service company looking for someone to develop a hosted client Screening and Client management system. The details: * allows simple "branding" of the site to match the hosting customer's existing look and feel * allows selective sharing of information between hosting customers * us

Re: Newform and Minimal File Upload Example

2007-05-15 Thread Michael Lake
Hi I'm still trying to find a minimal example. This http://www.djangosnippets.org/snippets/103/ is very specific to a zip file type. A search of the Django Users Group using 'newforms upload' gives a few posts: newforms and FileInput Newform and File Upload problem "'BoundField' o

Is it really this hard?

2007-05-15 Thread John M
I have checked the forum, and still can't believe I can't find a solution to what I perceive as a simple problem: I have two models: Customer Name phone Order Customer (foreign key to Customer) date product When I put up the form for order, I don't want the Customer (foreign key

Re: django [was "vps"] hosting

2007-05-15 Thread Chris Moffitt
> > Does anyone on the list have positive or negative experiences > with either Site5.com or ThinkHost.com you'd be willing to share? > I have used Thinkhost and actually did the write-up on the Django site of how to setup thinkhost with Django. As a provider, Thinkhost is just fine but I

Re: django vps hosting

2007-05-15 Thread scadink
I have three web hosts at the moment: SliceHost, WebFaction and DreamHost. If you are looking to deploy a nice, low-traffic (below 25k per day) site, I would probably recommend WebFaction. I was enamored by SliceHost when I first signed up because you do get a nice, dedicated 256MB piece of RAM,

Re: Is it really this hard?

2007-05-15 Thread James Bennett
On 5/15/07, John M <[EMAIL PROTECTED]> wrote: > When I put up the form for order, I don't want the Customer (foreign > key) to appear. I've not seen anything on the forum that shows you > can easily eliminate a field from the form? In general, form_for_model and form_for_instance are for when yo

Re: Is it really this hard?

2007-05-15 Thread John M
Ok, what if I make the FK just not editable and assign a value at runtime? Will that work? On May 15, 5:56 pm, John M <[EMAIL PROTECTED]> wrote: > I have checked the forum, and still can't believe I can't find a > solution to what I perceive as a simple problem: > > I have two models: > > Custom

Re: Is it really this hard?

2007-05-15 Thread John Matthew
James, thanks for the quick reply! Ok, I like what you have there, but it doesn't solve the problem of when I want to edit an existing record, how do I use the customform? I guess I'm just missing something super simple here, no? I would think code like instance = objects.get(id=1) form = Order

Re: django vps hosting

2007-05-15 Thread Kenneth Gonsalves
On 16-May-07, at 6:41 AM, scadink wrote: > WebFaction just makes deployment easy (no admin headaches) while still > giving you all of the meaningful stuff (your own Apache, mod_python, > PostgreSQL and MySQL, etc.). But that's just my opinion. a client of mine has taken a webfaction django acc

Re: django vps hosting

2007-05-15 Thread John M
Im really suprised no one has tried Amazon's EC infrastructure, it's pretty sweet, for production I would think! On May 15, 8:12 am, urielka <[EMAIL PROTECTED]> wrote: > I am running two django sites with vpsland(good support) for the last > 7 days, but since i having problems with their ssh(runn

Adding myself as a django friendly hoster

2007-05-15 Thread Josh Trutwin
Hi - I would like to add my hosting company as a django-friendly web host - is there a process to go through or should I just edit this wiki page: http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts Josh --~--~-~--~~~---~--~~ You received this message becau

Re: Adding myself as a django friendly hoster

2007-05-15 Thread Russell Keith-Magee
On 5/16/07, Josh Trutwin <[EMAIL PROTECTED]> wrote: > > Hi - I would like to add my hosting company as a django-friendly web > host - is there a process to go through or should I just edit this > wiki page: > > http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts As with most wikis, as long

Re: Is it really this hard?

2007-05-15 Thread anders conbere
As far as I know the officially recommended way of accomplishing this while still using the form_for_* helper functions is through the use of a formfield_callback, a function that takes field instances and mucks with them. def form_callback(field, **kwargs): if field.name == "field_name":

Re: Adding myself as a django friendly hoster

2007-05-15 Thread Kenneth Gonsalves
On 16-May-07, at 7:00 AM, Josh Trutwin wrote: > Hi - I would like to add my hosting company as a django-friendly web > host - is there a process to go through or should I just edit this > wiki page: > > http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts edit it -- regards kg http://la

Re: Is it really this hard?

2007-05-15 Thread Russell Keith-Magee
On 5/16/07, anders conbere <[EMAIL PROTECTED]> wrote: > > As far as I know the officially recommended way of accomplishing this > while still using the form_for_* helper functions is through the use > of a formfield_callback, a function that takes field instances and > mucks with them. > > def for

  1   2   >