Nesting related object in formset

2010-10-13 Thread Preston Holmes
I'm pretty comfortable with the concept of mixing multiple objects in one form. But I have a case where I have a model formset and want to add a form field that represents a field from a related model, such that the related model can be created if it is filled out. As a simple example: I have a

Re: mtv pattern(diagram)

2010-10-13 Thread Kenneth Gonsalves
On Wed, 2010-10-13 at 15:11 +0300, Roberto Benitez wrote: > From my point of view, in terms of django, your graphic would look > like the > following: > > request ---> views ---> model ---> template ---> response > |^ >

Re: mtv pattern(diagram)

2010-10-13 Thread Kenneth Gonsalves
On Wed, 2010-10-13 at 04:51 -0700, refreegrata wrote: > I have some questions. > > difference between : views in mtv and controllers in mvc, > difference between : templates in mtv and views in mvc, > > I read the documentation for Django, but still not clear to me. my diagram: request -->

Formset errors

2010-10-13 Thread pinco
Hi all, I have a form and a formset that are passed to a template. I would like to display any errors at the top of the template, using something like this: {% if form.errors or form.non_field_errors or formset.errors or formset.non_form_errors %} The operation could not be

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Brian Bouterse
RabbitMQ implements a standards based protocol called AMQP, which provides asynchronous, reliable delivery of messages. The broker simply passes messages around. Celeryd processes join a message broker (RabbitMQ) and pull messages

Re: Halting large form-based file uploads

2010-10-13 Thread Jonathan Barratt
Hi Ross, > I'm using a simple html form to upload a few simple text files to my > Django-based application. > 1. Django docs says that any file under about 2.5M gets held in memory > until I save it away. I assume then, that if I don't save it, the > hander def in my views.py finishes and

Re: get_or_create failuire

2010-10-13 Thread spacelab
not sure what you are doing wrong but I get the same error using Django 1.2.3 with mysql. Sorry if that is not helpful. On Sep 28, 6:48 am, Szymon wrote: > Hi, > > Problem: sometimes (not always) get_or_create is trying to create > duplicated record. > > Model: > > class

Re: Iterating over a queryset to run another query?

2010-10-13 Thread John M
is the subcategory the same for all the top level categories? if so, i think you should be able to query your category queryset, like this? finalset = Category.objects.filter().filter(subcategory__field=) Unless I'm not understanding. On Oct 13, 10:52 am, Austin Govella

Re: TEMPLATE_CONTEXT_PROCESSORS and testserver

2010-10-13 Thread diogobaeder
Never mind... one of the views was lacking a context_instance... :-P Thanks! On 12 out, 17:17, diogobaeder wrote: > Hi there, > > I've being noticing something strange: I added a context processor to > my project, but it's not being used when I run the project by >

Re: Different E-mail Settings for Error Messages

2010-10-13 Thread Russell Keith-Magee
On Wed, Oct 13, 2010 at 11:59 PM, Matt_313 wrote: > Hi, > > I have a Django site that gets on average 6,000 visits a day. We use a > white listed e-mail server to send out e-mails to our customers (order > notifications, password resets etc.) > This costs a fraction of

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Shawn Milochik
On Oct 13, 2010, at 5:25 PM, Javier Guerra Giraldez wrote: > On Wed, Oct 13, 2010 at 3:43 PM, Shawn Milochik wrote: >> C. The Celery daemon polls the broker regularly, looking for tasks. > > i hope this isn't polling, but a signal initiated by the broker. > > -- > Javier

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Shawn Milochik
On Oct 13, 2010, at 5:07 PM, ringemup wrote: > Thank you for taking the time to explain that, Shawn -- it makes > everything a LOT clearer. > > If you could spare the time, I'm curious about a couple of aspects of > the architecture: > > - What is the purpose of having a separate broker and

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Javier Guerra Giraldez
On Wed, Oct 13, 2010 at 3:43 PM, Shawn Milochik wrote: > C. The Celery daemon polls the broker regularly, looking for tasks. i hope this isn't polling, but a signal initiated by the broker. -- Javier -- You received this message because you are subscribed to the Google

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread ringemup
Thank you for taking the time to explain that, Shawn -- it makes everything a LOT clearer. If you could spare the time, I'm curious about a couple of aspects of the architecture: - What is the purpose of having a separate broker and daemon? - How does the broker know when to pass the task back

Halting large form-based file uploads

2010-10-13 Thread Ross
I'm using a simple html form to upload a few simple text files to my Django-based application. It's working nicely, I'm able to retrieve the request.FILES objects and store them away as I wish. Upon receipt of the request object in my views.py I get the file object, and check its size with

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Shawn Milochik
On Oct 13, 2010, at 4:11 PM, ringemup wrote: > >> It's surprisingly easy to get set up with nothing more than the >> tutorial/into for django-celery. If anyone has problems with it I'd be happy >> to try to assist. > > Thanks, I might take you up on that. > >> Although getting everything

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Brian Bouterse
I would be willing to give an overview. Basically you should: 1) yum or apt-get install rabbitMQ 2) make sure the service is started. 3) Set up your broker by running these 3 commands . 4) pip install

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread ringemup
> It's surprisingly easy to get set up with nothing more than the tutorial/into > for django-celery. If anyone has problems with it I'd be happy to try to > assist. Thanks, I might take you up on that. > Although getting everything working is fairly easy, in my opinion the docs > aren't too

Re: UserProfile

2010-10-13 Thread Ted
request.user.get_profile().avatar_url Assuming you have set a AUTH_PROFILE_MODULE in settings, and send the request context when rendering. On Oct 13, 5:19 am, reduxdj wrote: > I have a simple use-case. I want the user's profile to be available to > the context

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Shawn Milochik
On Oct 13, 2010, at 1:58 PM, Brian Bouterse wrote: > I have found cron to be a poor solution for this although it is tempting > since it is so easy and will get you started right away. What I observe > happens is, basically someone puts the cron job in crontab, and then a lot of > time

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Nick Arnett
On Wed, Oct 13, 2010 at 4:38 AM, Mattias Linnap wrote: > Hi Django users, > > I'm building an application with Django, and I need some database > changes to occur at certain times in the future - independently of any > web request. Things like cleaning up expired sessions,

Re: Database Setup

2010-10-13 Thread Everett
On Oct 13, 2:34?am, Jonathan Barratt wrote: > On 13 ?.?. 2010, at 10:19, Everett wrote: > > > I'm running Django on Windows. When I edited the settings.py file for > > the MySql database I'm running in an XAMPP package, the Django > > development server throws a

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Brian Bouterse
I have found cron to be a poor solution for this although it is tempting since it is so easy and will get you started right away. What I observe happens is, basically someone puts the cron job in crontab, and then a lot of time passes, and folks forget which machine in the cluster is actually in

Iterating over a queryset to run another query?

2010-10-13 Thread Austin Govella
I have a category page that lists all of its subcategories on it. For each subcategory, I would like to query for one product in that subcategory. In PHP, I think I did this in the page, outputting HTML as I went. But I can't figure out how to do this in Django. My programming brain is just

Re: UserProfile

2010-10-13 Thread Detectedstealth
Take a look at my site: http://www.wcfree.com you will have to register etc but once you are done let me know if that is what you are looking for with user profiles and having the image available etc... If so I can help you. PS: Make sure to email me your username after you are finished so i can

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Ethan Poole
Another technique, that I feel should be pointed out, is a custom django-admin command: http://docs.djangoproject.com/en/dev/howto/custom-management-commands/. If you are going to use a crontab to run a Python script, this is by far the easiest way to do it. On 13 Okt, 10:53, ringemup

Re: How do I use JQuery UI tabs with Django (or other tab-solution)?

2010-10-13 Thread David De La Harpe Golden
On 13/10/10 17:55, David De La Harpe Golden wrote: > it's one > place you could put the ajaxification script since jquery takes pains sorry, meant to finish that sentence - "takes pains to make dom injection of scripts tags work" - see discussion @

Re: How to launch home page from urls.py?

2010-10-13 Thread Chris Boyd
Thank you Rob! > {'template': 'index.html'} But in that case I have to use Django template file, while my home page is built with Pyjamas (http://pyjs.org/). Can I use a Django urlpattern to launch any HTML file, not just Django tempalte file? Thank you, Chris On Wed, Oct 13, 2010 at 9:46

Noob » Tutorial » UnicodeDecodeError in ‘basehtt p.py’

2010-10-13 Thread PureVirtual
Hi, Django People! It's my second day of getting Django basics so I'm just following the Tutorial precisely. When I first got to the admin site I noticed that it looks odd like the page has lost it's CSS. So I tried to load the CSS file mentioned in the header:

Re: Executing queries across multiple models

2010-10-13 Thread nathan
Thanks. Worked perfectly. I never thought to do: for person in Person.objects.all(): -- Nathan On Oct 13, 4:37 am, Kenneth Gonsalves wrote: > On Tue, 2010-10-12 at 20:39 -0700, nathan wrote: > > I have three Models: > > > Person: > >     name =

Re: How do I use JQuery UI tabs with Django (or other tab-solution)?

2010-10-13 Thread David De La Harpe Golden
On 13/10/10 16:17, Torbjorn wrote: > Thanks for the replies. > > Jonathan: No I'm not stuck to JQuery, I will consider dojango. Thanks > [Another thing to be aware of is dajaxproject.com] > Third Okay, so you _are_ using the tabs' ajax mode. > That works, but when I choose tab Third and post

Re: How to launch home page from urls.py?

2010-10-13 Thread Robbington
Hi Chris, I use urlpatterns = patterns('django.views.generic.simple', (r'^$', 'direct_to_template',{'template': 'index.html'}), ) Where template is the defined template directory in my settings.py Seems a better way to me, as then if you want to expand your site you can just incorperate

Different E-mail Settings for Error Messages

2010-10-13 Thread Matt_313
Hi, I have a Django site that gets on average 6,000 visits a day. We use a white listed e-mail server to send out e-mails to our customers (order notifications, password resets etc.) This costs a fraction of a cent per e-mail - so all the details are in settings.py. Today, something happened

Re: How to launch home page from urls.py?

2010-10-13 Thread Chris Boyd
Thank you for your response, Jonathan! > I believe that the regular expression you're looking for is just "( r'^$', ...)," Yes, that is right. "a.b.com" will be accepted and the control transfered, but the problem is that I cannot provide the remaining part of the URI, specifically

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread ringemup
You can also use this technique[1] to create a python script that you can call from your crontab. Basically, you can call anything in Django from any Python script as long as you set the DJANGO_SETTINGS_MODULE environment variable first and have Django, your project, and your apps on your path.

Re: HTTP load testing tools?

2010-10-13 Thread Chris Withers
On 13/10/2010 09:17, Chris Withers wrote: I hope this is still on topic, but what tool sets do people around here use for doing load testing of Django projects? Thanks for the answers... ...now to ask the question in a different way again ;-) Anyone recommend any load testing services,

Re: How do I use JQuery UI tabs with Django (or other tab-solution)?

2010-10-13 Thread Torbjorn
Thanks for the replies. Jonathan: No I'm not stuck to JQuery, I will consider dojango. Thanks David: I'm newbie at JavaScript (as we can see) and I only use JQuery UI for the tabs. Here is how I use it in my base.html Tabs

Re: How long is a model validation heavy testsuite supposed to run?

2010-10-13 Thread Jonathan Barratt
On 13 ?.?. 2010, at 22:07, Javier Guerra Giraldez wrote: > 2010/10/13 Jonathan Barratt : >> not being an SQLite user myself but knowing the database image is a simple >> single file > > you'd be surprised to learn that a good single-file architecture can > be

Re: How long is a model validation heavy testsuite supposed to run?

2010-10-13 Thread Javier Guerra Giraldez
2010/10/13 Jonathan Barratt : > not being an SQLite user myself but knowing the database image is a simple > single file you'd be surprised to learn that a good single-file architecture can be waaay faster than a more complex system. (good examples include Tokyo

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Jo
On 13 ?.?. 2010, at 18:50, Jonathan Barratt wrote: > On 13 ?.?. 2010, at 18:38, Mattias Linnap wrote: > >> Hi Django users, >> >> I'm building an application with Django, and I need some database >> changes to occur at certain times in the future - independently of any >> web request. Things

Re: HTTP load testing tools?

2010-10-13 Thread Paul Winkler
On Oct 13, 4:17 am, Chris Withers wrote: > Hey all, > > I hope this is still on topic, but what tool sets do people around here > use for doing load testing of Django projects? Same stuff as for any web project. Last time I needed something more than ab, I used funkload

Re: How do I use JQuery UI tabs with Django (or other tab-solution)?

2010-10-13 Thread David De La Harpe Golden
On 13/10/10 08:14, Torbjorn wrote: > In my first shot > I got the tabs nice looking, one template for each tab and I can > navigate between the tabs, but, when I do something on a tab, for > instance posting a form, I would like to get back to that tab. How do > I do that? > Well, django is

Re: UserProfile

2010-10-13 Thread Daniel Roseman
On Oct 13, 1:19 pm, reduxdj wrote: > I have a simple use-case. I want the user's profile to be available to > the context instance. For instance, the user's avatar image, i want > them to be able to see it all the time. Is there way to make the user > profile available

Re: mtv pattern(diagram)

2010-10-13 Thread refreegrata
Or: request | | V internal controller(urls.py) | | V || | views |<-->model |___|<--->template | | V response is this diagram most specific? have any error?(this post is only because i need put a

Re: HTTP load testing tools?

2010-10-13 Thread Brian Bouterse
I have used Tsung before, and liked it. It's written in erlang so it's natively distributed which means with a cluster of machines you can generate a LOT of traffic. ;-) Brian On Wed, Oct 13, 2010 at 4:17 AM, Chris Withers wrote: >

UserProfile

2010-10-13 Thread reduxdj
I have a simple use-case. I want the user's profile to be available to the context instance. For instance, the user's avatar image, i want them to be able to see it all the time. Is there way to make the user profile available to the context instance? Thanks, Patrick -- You received this

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Tom Evans
On Wed, Oct 13, 2010 at 12:38 PM, Mattias Linnap wrote: > Hi Django users, > > I'm building an application with Django, and I need some database > changes to occur at certain times in the future - independently of any > web request. Things like cleaning up expired sessions,

Re: mtv pattern(diagram)

2010-10-13 Thread Roberto Benitez
* * * * * More experienced django developers: please correct me if I am wrong. * * * * * * >From my point of view, in terms of django, your graphic would look like the following: request ---> views ---> model ---> template ---> response |^

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Brian Bouterse
You really should take a look at django-celery. It is the right tool for this job IMHO. Brian On Wed, Oct 13, 2010 at 7:38 AM, Mattias Linnap wrote: > Hi Django users, > > I'm building an

Re: mtv pattern(diagram)

2010-10-13 Thread Jonathan Barratt
On 13 ?.?. 2010, at 18:51, refreegrata wrote: > I have some questions. First off, I don't think you should be making a distinction of mtv against mvc. Django is mvc, there's no need, IMO, to describe it differently as an mtv -- model, template, view are just names for elements which Django

Re: mtv pattern(diagram)

2010-10-13 Thread refreegrata
I have some questions. difference between : views in mtv and controllers in mvc, difference between : templates in mtv and views in mvc, I read the documentation for Django, but still not clear to me. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Jonathan Barratt
On 13 ต.ค. 2010, at 18:38, Mattias Linnap wrote: > Hi Django users, > > I'm building an application with Django, and I need some database > changes to occur at certain times in the future - independently of any > web request. Things like cleaning up expired sessions, deleting > expired user

Re: Editing user profiles via "inlines" breaks password management in admin site

2010-10-13 Thread Martin Burger
Oh, thanks! Actually, it's much simpler this way. On Oct 13, 12:29 pm, Jonathan Barratt wrote: > On 13 ต.ค. 2010, at 17:19, Martin Burger wrote: > > > Hello, > > > I implemented a user profile that is activated via AUTH_PROFILE_MODULE > > in settings.py. In order

What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Mattias Linnap
Hi Django users, I'm building an application with Django, and I need some database changes to occur at certain times in the future - independently of any web request. Things like cleaning up expired sessions, deleting expired user actions, etc. What is the best way to implement those? 1) Make a

Re: mtv pattern(diagram)

2010-10-13 Thread Tom Evans
On Wed, Oct 13, 2010 at 12:08 PM, refreegrata wrote: > Hello i want to do a diagram to explain de mtv pattern. Any idea? > > for explain the mvc I can do something like: > > > request--->controller->model->view->response >                       |                

Re: Admin Many-to-Many on a regular Form?

2010-10-13 Thread Marc Aymerich
On Tue, Oct 12, 2010 at 10:12 PM, AK wrote: > I have not yet found a solution for this, the closest I've come > requires a bit of work based on James Bennett's response here: > http://markmail.org/message/irsln5d6m6wpxdiu > > An alternative that looks slicker than the

mtv pattern(diagram)

2010-10-13 Thread refreegrata
Hello i want to do a diagram to explain de mtv pattern. Any idea? for explain the mvc I can do something like: request--->controller->model->view->response | ^ |-| but i

Re: How long is a model validation heavy testsuite supposed to run?

2010-10-13 Thread Jonathan Barratt
On 13 ?.?. 2010, at 17:43, Russell Keith-Magee wrote: > 2010/10/13 Jonathan Barratt : >> On 13 ?.?. 2010, at 2:31, Jorge Vargas wrote: > >> A database migration might not be the sort of effort you were looking for, >> but I can only imagine that moving from

Re: How long is a model validation heavy testsuite supposed to run?

2010-10-13 Thread Russell Keith-Magee
2010/10/13 Jonathan Barratt : > On 13 ?.?. 2010, at 2:31, Jorge Vargas wrote: > A database migration might not be the sort of effort you were looking for, > but I can only imagine that moving from SQLite to Postgres or MySQL would > offer you the largest possible

Re: How long is a model validation heavy testsuite supposed to run?

2010-10-13 Thread Russell Keith-Magee
On Wed, Oct 13, 2010 at 3:31 AM, Jorge Vargas wrote: > Hello, > > I recently inherited a project that uses a lot of model validations > and is mainly just a model (we have two django apps that use it as > their backend). > > The test suite currently returns > > Ran 460

Re: Editing user profiles via "inlines" breaks password management in admin site

2010-10-13 Thread Jonathan Barratt
On 13 ?.?. 2010, at 17:19, Martin Burger wrote: > Hello, > > I implemented a user profile that is activated via AUTH_PROFILE_MODULE > in settings.py. In order to be able to view and edit user profiles in > the admin site, I used the method described at >

Re: How long is a model validation heavy testsuite supposed to run?

2010-10-13 Thread Jonathan Barratt
On 13 ?.?. 2010, at 2:31, Jorge Vargas wrote: > Hello, > > I recently inherited a project that uses a lot of model validations > and is mainly just a model (we have two django apps that use it as > their backend). > > The test suite currently returns > > Ran 460 tests in 980.347s > That is

Editing user profiles via "inlines" breaks password management in admin site

2010-10-13 Thread Martin Burger
Hello, I implemented a user profile that is activated via AUTH_PROFILE_MODULE in settings.py. In order to be able to view and edit user profiles in the admin site, I used the method described at

Re: How to launch home page from urls.py?

2010-10-13 Thread Jonathan Barratt
On 13 ?.?. 2010, at 7:57, Chris wrote: > Hello, > > Currently in my urls.py I have "( r'^winapp/(?P.*)$', > 'django.views.static.serve', { 'document_root': 'winapp' } )," and I > can launch my home pahe by pointing my browser to something like > "a.b.com/winapp/HomePage.html". > > I have gone

Re: How do I use JQuery UI tabs with Django (or other tab-solution)?

2010-10-13 Thread Jonathan Barratt
On 13 ?.?. 2010, at 14:14, Torbjorn wrote: > > > Or, is it another smoother way to get tabs in a Django app? If you're not completely tied to jQuery, you might consider dojango, which is Django-integrated version of the Dojo ajax toolkit, which does support tabs. Good luck! Jonathan --

Re: Executing queries across multiple models

2010-10-13 Thread Kenneth Gonsalves
On Tue, 2010-10-12 at 20:39 -0700, nathan wrote: > I have three Models: > > Person: > name = models.CharField(max_length=20) > > Item: > name = models.CharField(max_length=20) > > Collection: > owner = models.ForeignKey(Person) > items = models.ManyToManyField(Item) > > Where

Re: Help with http basic authentication

2010-10-13 Thread Piotr Zalewa
Althought it is true, there are ways to get this data to Django. Check this (after a simple google search): http://stackoverflow.com/questions/152248/can-i-use-http-basic-authentication-with-django zalun http://jsfiddle.net/user/zalun/ On 10-10-13 01:38, Sam Lai wrote: On 12 October 2010

How do I use JQuery UI tabs with Django (or other tab-solution)?

2010-10-13 Thread Torbjorn
Hi, I would like to use the JQuery UI tabs in my Django app but how should I do that? I cannot figure it out with Django's template system. One problem is inheritance but maybe I should skip that? In my first shot I got the tabs nice looking, one template for each tab and I can navigate between

Executing queries across multiple models

2010-10-13 Thread nathan
I have three Models: Person: name = models.CharField(max_length=20) Item: name = models.CharField(max_length=20) Collection: owner = models.ForeignKey(Person) items = models.ManyToManyField(Item) Where each Person has a Collection consisting of several Items. What I want to do

How to launch home page from urls.py?

2010-10-13 Thread Chris
Hello, Currently in my urls.py I have "( r'^winapp/(?P.*)$', 'django.views.static.serve', { 'document_root': 'winapp' } )," and I can launch my home pahe by pointing my browser to something like "a.b.com/winapp/HomePage.html". I have gone through the documentation and a couple of books, but I

Re: HTTP load testing tools?

2010-10-13 Thread Jonathan Barratt
On 13 ?.?. 2010, at 15:17, Chris Withers wrote: > Hey all, > > I hope this is still on topic, but what tool sets do people around here use > for doing load testing of Django projects? I use httperf generally, haven't found a need to find something different for Django -

Re: distinct doesn't work on admin actions¿?

2010-10-13 Thread Marc Aymerich
On Wed, Oct 13, 2010 at 3:57 AM, Karen Tracey wrote: > On Tue, Oct 12, 2010 at 6:31 AM, Marc Aymerich wrote: > >> I'm writing an action for the django admin site. My model looks like: >> >> class order(models.Model): >> entity =

HTTP load testing tools?

2010-10-13 Thread Chris Withers
Hey all, I hope this is still on topic, but what tool sets do people around here use for doing load testing of Django projects? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk -- You received this message

Re: Questions about Django's authentication system

2010-10-13 Thread Daniel Roseman
On Oct 13, 4:22 am, Andy wrote: > A few questions about Django's authentication system: > > - Once a user is logged in, how long does he remain logged in? Is > there any way to configure this - e.g. "users will remain logged in > for 24 hours"? It's determined by the

Re: Database Setup

2010-10-13 Thread Jonathan Barratt
On 13 ?.?. 2010, at 10:19, Everett wrote: > I'm running Django on Windows. When I edited the settings.py file for > the MySql database I'm running in an XAMPP package, the Django > development server throws a bunch of unhandled exceptions. It starts > out like this: The most useful error

Re: Delete the FileField record but keep the file?

2010-10-13 Thread Jonathan Barratt
On 12 ?.?. 2010, at 22:42, Stodge wrote: > Short of creating my own custom FileField class, is there anyway to > pass an optional "delete" flag to a custom file system storage? Not AFAIK. > I have a case where I want to delete the FileField record, but not the file. If it were me, I would just