django site within 7 hours (a day)

2008-11-20 Thread tom
elete this post if it is not appropriate for this group. Please don't hesitate to contact me, if there are questions. cheers, Tom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Using list_filter with a foreign key field in the Admin

2008-11-20 Thread tom
Hi Dominic, do you may have a code sample? -tom On 20 Nov., 13:33, "Dominic Ashton" <[EMAIL PROTECTED]> wrote: > Guys, > > A brief google search has led me to conclude that it's not possible to > filter on a foreign key field in the Admin. > > Can any

Re: django site within 7 hours (a day)

2008-11-21 Thread tom
> Although the submit button at the top doesn't seem to work... the submit button should work now and it is also possible to add releases to an application. looking forward having your app listed! have a nice day! tom --~--~-~--~~~---~--~~ You recei

Re: How to get the values of a field of the model

2008-11-27 Thread tom
hey, please don't shoot me if i got it wrong. but i would try this: report = Reports.objects.filter(author__in = [John, Karl, Jens, Sepp] Maybe you have to create a more suitable list with Author objects. let me know, if this has solved your issue. On Nov 27, 9:43 am, izzy <[EMAIL PROTECTED]>

Re: How to get the values of a field of the model

2008-11-27 Thread tom
sorry, just got it. that's not the right answer to your question. On Nov 27, 10:38 am, tom <[EMAIL PROTECTED]> wrote: > hey, > > please don't shoot me if i got it wrong. but i would try this: > > report = Reports.objects.filter(author__in = [John, Karl, Jens, Sepp]

AttributeError: 'module' object has no attribute

2008-07-22 Thread Tom
From: Morgan Packard gmail.com> Subject: newbie -- hiccups in following tutorial Newsgroups: gmane.comp.python.django.user Date: 2008-07-22 09:02:56 GMT (13 hours and 48 minutes ago) Hello all, I'm going through the tutorial at http://www.djangoproject.com/documentation/tutorial01/, and am hav

FileStorage S3Storage Error importing storage module S3Storage

2008-08-23 Thread tom
w if this particular change will be included within django some times? Many thanks! tom --~--~-~--~~~---~--~~ 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@g

Re: FileStorage S3Storage Error importing storage module S3Storage

2008-08-26 Thread tom
Hi David! Many thanks for your response. I assume with S3Storage.py you mean the file which I have downloaded from AWS, right? Many thanks, Tom On 25 Aug., 10:49, David Larlet <[EMAIL PROTECTED]> wrote: > Hi Tom, > > The DEFAULT_FILE_STORAGE setting need to be set with a (pyth

is_ajax and YUI uploader: works on MAC, but 403 on Windows

2008-08-26 Thread tom
a mac. Does anyone has some suggestion where to look at? (We do not have the option to migrate to django 1.0 beta yet) cheers, tom P.S.: our setup django version: 0.97-pre-SVN-unknown svn info: Path: . URL: http://code.djangoproject.com/svn/django/trunk Repository Root: http

Re: FileStorage S3Storage Error importing storage module S3Storage

2008-08-26 Thread tom
Sorry, I already found the right file: http://code.larlet.fr/hg.cgi/django-storages/raw-file/5e2aff06/S3Storage.py Many thanks for your support! On 26 Aug., 13:06, tom <[EMAIL PROTECTED]> wrote: > Hi David! > > Many thanks for your response. I assume with S3Storage.py you

Re: is_ajax and YUI uploader: works on MAC, but 403 on Windows

2008-09-02 Thread tom
appending document.cookie to the upload request. On 26 Aug., 13:15, tom <[EMAIL PROTECTED]> wrote: > Hi, > > We are using csrf together with ajax > (Patch:http://code.djangoproject.com/ticket/8127). > For content uploading we are using the YUI uploader but we are getting >

YUI uploader + CSRF + Firefox + Windows = 403

2008-09-02 Thread tom
owser, but not in firefox under windows. Does someone know how I can 'append' the document.cookie to the upload request, as stated on the YUI uploader page (http:// developer.yahoo.com/yui/uploader/)? Many thanks, tom --~--~-~--~~~---~--~~ You received this

GET FROM with parameters in action call

2008-09-19 Thread tom
e=3, which doesnt make sense for pagination in search results. :) Many thanks for your help! Cheers, Tom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: is_ajax and YUI uploader: works on MAC, but 403 on Windows

2008-10-01 Thread tom
i have posted a patch for the csrf middleware on http://code.djangoproject.com/ticket/8127. This patch allows to send the session id within a post request On 2 Sep., 14:29, tom <[EMAIL PROTECTED]> wrote: > Because of a known Flash bug, the Uploader running in Firefox in > Windows d

Modifying the Tutorial's Admin Page -- Labels and Items Displayed

2009-01-31 Thread Tom
in advance for your time and help. Best, Tom --~--~-~--~~~---~--~~ 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 fro

FileField - Forms - upload to not available

2009-02-27 Thread tom
ss the temp file, does someone know how to access the path string? regards, tom --~--~-~--~~~---~--~~ 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@googleg

Re: FileField - Forms - upload to not available

2009-03-01 Thread tom
stupload/ [Errno 2] No such file or directory: u'/Library/WebServer/Documents/ media/indiebreed/03 Magical Box.mp3' actually the path should be like this: /Library/WebServer/Documents/media/indiebreed/tmp/tracks/03 Magical Box.mp3 any ideas? ah, i am on a mac and it works und

Re: FileField - Forms - upload to not available

2009-03-07 Thread tom
Unfortunatly I still haven't found a solution and I tryed it with and without a trailing /. No difference. I will post the solution, if there is one and if I find it. :) -Tom On 5 Mrz., 16:39, Francis wrote: > Did you found any solution? > > Because I have the same problem, b

Re: Foreign key triggered some redundant SQL queries

2009-07-27 Thread Tom
Found the answer to my question just after posting... for item in FOO.objects.select_related('bar'): print item.bar.id On Jul 19, 11:33 pm, Alex Gaynor wrote: > On Sun, Jul 19, 2009 at 10:48 AM, aXqd wrote: > > > Hi, all: > > > Recently, I linked two models ( FOO & BAR ) with a foreign key. >

Re: Foreign key triggered some redundant SQL queries

2009-07-27 Thread Tom
explicitly add "student.name" to the results? Or do I need to resort to writing my own SQL? This seems like a pretty common situation so I figured Django would have some magic up its sleeves, but I can't find anything in the docs. Thanks for any help... Regards, Tom On Jul 19, 11:33 pm, Ale

buildung query with ORM

2009-08-04 Thread tom
0:20 16.0m/s 1563 Hz Is something like this possible with django? i know that i can get all data ordered by date and the use python to get a datastructure like the described table. but i want to do it with the database because i think it&#x

Re: buildung query with ORM

2009-08-04 Thread tom
On 4 Aug., 16:40, krylatij wrote: > You need to use raw sql. (http://docs.djangoproject.com/en/dev/topics/ > db/sql/#topics-db-sql) yes. i know that i can use raw sql. but if it's possible, i want to use ORM. > > I don't understand what will be if there are more then 2 channels at > the same

Searchform with pagination and GET parameters - easy solution needed

2009-08-05 Thread tom
Hi folks, i want to build a searchform (with GET parameters) and also want to use pagination. But i can't find an easy solution for this common case. My solution has a searchform, a view and a template. Can anybody tell me if this is a good solution? I'm not sure because i find it very complicate

Re: Duplicate results using ORd Q queries

2009-08-08 Thread Tom
Luke, That's brilliant, thank you so much! Just out of interest, do you know why the query was returning dupes in the first place, and why my while loop was not removing them? Thanks again, Tom On Aug 8, 2:51 pm, Luke Seelenbinder wrote: > Tom, > > make your line r

Complex model produces > 400 queries with one pageview

2009-08-13 Thread tom
ndmin"."unit" FROM "data_measurandmin" WHERE "data_measurandmin"."measurand_id" = 1 SELECT "data_measurandmax"."id", "data_measurandmax"."measurand_id", "data_measurandmax"."value", "data_meas

Re: Reloading a page with new data

2009-08-13 Thread Tom
useful to say. Thanks again, Tom On Aug 13, 8:26 pm, Margie wrote: > I have been able to mimic the admin behavior in my own app.   I > started off with the admin js functions showAddAnotherPopup and > dismissAddAnotherPopup.   Study these in the context of how they are > used in the a

Re: ModelForm's is_valid() returns False, but I don't know why.

2009-08-15 Thread Tom
like this: descripcion = models.CharField("descripción", max_length = 50, blank = True) Mind you, I am pretty new to Django, so don't take this as authoritative. Tom On Aug 15, 2:54 am, George Laskowsky wrote: > I have the following code (simplified): > > # models.p

Creating forms

2009-08-25 Thread tom
Hi all, i want to create a form with django. the form should look like a matrix (or like an excel/oocalc sheet). i attached a screenshot how the form should look like. can anybody tell me how to do this with django? Cheers tom --~--~-~--~~~---~--~~ You received

complex query - howto do with django orm?

2009-09-11 Thread tom
Hi all, i have a complex query and want to do this query with the django orm. I already use django, but the raw-sql-way: def get_windenergy_data(self, windspeed_channel, winddirection_channel, project_id, logger_serial): from django.db import connection cursor = connection.cursor

Re: FileField - Forms - upload to not available

2009-03-25 Thread tom
) upload_to and static > > (simple path) upload_to. Regardless of upload_to, the error is exactly > > the same. > > > If someone could help me redirect standard out to a log file with > > apache2/fastcgi then I could try to print something more useful. I'm > > ha

Using custom user model for authentication

2009-04-07 Thread Tom
Django. Thanks, Tom --~--~-~--~~~---~--~~ 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 this group, send email to dj

Re: Does 1and1 Hosting provide Django prerequisites? [was: installing a development environment on a 1and1.com shared hosting.]

2009-04-22 Thread tom
There is a good page about django hosting in the docs: http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts On Apr 22, 2:17 am, CLIFFORD ILKAY wrote: > On 21/04/09 06:52 PM, online service wrote: > > > I have problem to install mod_python to 1and1 dedicated server (Apache > > Portable Ru

Display an URLField as a Link

2009-05-08 Thread Tom
My model : url = models.URLField(max_length=500,blank=True,verify_exists=False) and I want the column url display url as a link () Any ideas ? Thanks for your help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Display an URLField as a Link

2009-05-11 Thread Tom
Thank you Michael, Can you explain me the "Clean" way to do that ? On May 8, 2:45 pm, Michael wrote: > On Fri, May 8, 2009 at 3:26 PM, Tom wrote: > > > My model : > > > url = models.URLField(max_length=500,blank=True,verify_exists=False) > > > and I w

"if settings.DEBUG" -- good design?

2009-05-25 Thread tom
about how you would do something like that. many thanks, tom --~--~-~--~~~---~--~~ 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 unsubsc

Re: FileField - Forms - upload to not available

2009-05-25 Thread tom
et when in pre_save. > > I still don't know if it's a bug, or a 'new feature', as my code works > perfectly on Django 1.0.2. > > Lior > > On Mar 25, 5:13 pm, tom wrote: > > > > > thanks for the update. So it seems, that save(commit=False)

Re: Display an URLField as a Link

2009-05-26 Thread Tom
Thanks for your help. I used the http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display method who work fine for me. def url_as_link(self): return '%s' % (self.url, self.url) url_as_link.allow_tags = True And call 'url_as_link' insted of 'u

Overwrite "list_display" in a new view

2009-06-08 Thread Tom
I use the admin.ModelAdmin with a list_display to display columns on the edit list page. I need another one , looking the same as the current edit list page but with other columns taken from my model. Is there a way to override easily the list_display in a new view to do that ? Thank you. --~--~

Iterating for the form.errors dictionary

2009-06-08 Thread Tom
th each dictionary key. I can only use form.errors.values to print them out instead. Regards, Tom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: Iterating for the form.errors dictionary

2009-06-08 Thread Tom
r %} > > The above will print keys instead of values as message is key not a > value..... > > On Jun 9, 11:06 am, Tom wrote: > > > Hi all, > > > Leveraging the default login view, I want to use my own login.html to > > show all the errors in the log

Query with left join?

2009-09-12 Thread tom
Hi, i want to produce a left-join query with the django orm. Can anybody help howto do the following query? SELECT S.value, D.value from data as S left join data as D on S.entry_id=D.entry_id; Cheers tom --~--~-~--~~~---~--~~ You received this message because

Re: html template usage

2009-09-12 Thread tom
What do you mean with "existing HTML template" ? On 12 Sep., 21:19, aftalavera wrote: > Hi there, > > All I need is a sample (if available) or a working example on how to use > an existing HTML template into the Django template system. Am I on the > wrong track integrating both? > > Thanks --~-

Re: Query with left join?

2009-09-14 Thread tom
27;s better when the database does the work. On 13 Sep., 19:32, Daniel Roseman wrote: > On 2009/9/13, tom wrote: > > > > > > > I have a model  to save measurement data. Every datarow has a > > identifier(CharField) and a value(FloatField) and a entry(ForeignKey). >

Display user.username in all apps without passing RequestContext

2009-09-17 Thread Tom
tance=RequestContext(request) in every view function? I recently switched from Turbogears to Django. In TG, I could just import the request object into a template. As far as I understand, this is not possible in Django. Tom --~--~-~--~~~---~--~~ You received this mes

Re: Display user.username in all apps without passing RequestContext

2009-09-17 Thread Tom
Hi Gabriel, thank you for your fast response. The decorator works great! On Sep 17, 3:43 pm, "Gabriel ." wrote: > On Thu, Sep 17, 2009 at 10:28 AM, Tom > wrote: > > > Hi group, > > > my project has a base template used by all apps. I want to show &

Error with unittests for django.contrib.auth: ERROR: Error is raised if the provided email address isn't currently registered

2009-09-21 Thread tom
Hi, i use django-1.1 with django.contrib.auth and django-registration. When i run the unittests, i become an error. Anybody has an idea? ./manage.py test auth --settings=develsettings /usr/lib/pymodules/python2.6/registration/models.py:4: DeprecationWarning: the sha module is deprecated; use th

same model field times in query result. How?

2009-11-17 Thread tom
Hi, i want to have the same model-field 2x in the query result. The model.py is: class Measurand(models.Model): """ A Model for measurement data """ entry = models.ForeignKey(Entry) avg_value = models.FloatField(help_text='the average measurement value', db_index=True, blank=T

settings.py seems to be cached or stuck

2009-11-24 Thread Tom
settings.py file is making any difference. I have even tried deleting the file altogether and still nothing changes. I have also tried recreating my project from scratch, but still no joy. This is really weird; does anybody have any ideas what is going on? Thanks in advance, Tom -- You received this

Re: settings.py seems to be cached or stuck

2009-11-24 Thread Tom
Sorry, I should have mentioned that this has only come up after deploying the project to a production server using mod_wsgi. It works absolutely fine under development. Tom On Nov 25, 2:24 am, Tim Valenta wrote: > Are you using the development server?  There's definitely caching

Re: settings.py seems to be cached or stuck

2009-11-24 Thread Tom
That is all really helpful; thanks very much everybody. My production environment is Apache 2.2.9 on Fedora, so it looks as if the solution Karen suggests will be workable, and I think I will give that a try as it looks close to ideal. Thanks again all; much appreciated. Tom -- You received

design question: storing history

2009-12-14 Thread tom
, 12.22.09 3 hours and so forth The hours worked shall be reduced. Would it make sense to have a foreign key to different models for hours worked and hours estimated, or shall I use the history and sum up the hours? Any ideas would be very much appreciated. -tom -- You received this message

Re: Admin custom filters

2010-05-05 Thread tom
functionality to the implemented list_filter... any suggestion will be appreciated! thanks tom On 4 מאי, 00:23, Thales wrote: > Good evening, > > I am trying to create a custom filter in my admin. It should be in the > general page Modify. > > If a put in the filter_list the cont

Re: Many2Many / Generic Relation filter, doesn't behave like expected, how is the right way to do it?

2010-05-12 Thread tom
nder class 7 AND also tagged under class 3 which equal to books.object.all().filter(tag=3).filter(tag=7) I search over 'QuerySet API reference' for maybe another url syntax for it, but failed to... what am I missing? does anyone know how? thanks! tom On 28 אפריל, 19:37, Tom Evans wrote:

Turning "DEPUG=False" results in missing CSS

2010-05-25 Thread tom
ot;, the layouting of the pages works again. ??? What happens when DEPUG is set to False - any changes to the path or security settings? Thanks in advance for any help. Kind regards, Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Just one action on all the objects

2010-06-27 Thread tom
In the same manner - 'check all' only check the currently visible results (100 by default) in the change list page. I want that check all will actually check all the results, even the tuples in the next pages... anyone? thanks! tom On May 26, 9:46 am, rahul jain wrote: > Hi Djan

Large static files served through django come out ~1kb short

2010-08-02 Thread Tom
a bunch of random numbers to a file then compressing it with 7zip so that the resulting file was ~64mb. Thanks! Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. T

Re: Large static files served through django come out ~1kb short

2010-08-03 Thread Tom
This was a problem with my antivirus! Turning it off fixed the problem. If anyone runs into this problem again the antivirus that caused it is ESET NOD32 4.0.474. Tom On Aug 2, 5:36 pm, ashwoods wrote: > try looking if there is something like that in the bugtracker, and if > not, you can

Re: django - Datagrid

2010-08-10 Thread Tom
Bjorn, I got this working. The way I fixed it was.. I downloaded jqGrid again and selected all the libraries to be included. My guess is that navGrid isn't bundled with the core grid. I dont know this for sure. Its working for me now. Tom On Jun 19, 3:59 pm, Bjørn Høj Jakobsen wrote:

new Django-Python can't get to sqlite

2010-08-12 Thread Tom
It's my first time using Django & I'm unable to get the demo going. I would like to use sqlite (ultimately mysql). Python 2.7 installed ok. Then I installed (I think) Django 1.2.1. The "manage.py runserver" works, but the "syncdb" fails. How do I "install" sqlite or pysqlite2 (or even mysql)? I

Re: new Django-Python can't get to sqlite

2010-08-13 Thread Tom
Aug 13, 1:08 am, Piotr Zalewa wrote: > Google "install sqlite/mysql $your_operating_system" > If you provide more info (result of running yolk and your operating > system) we will be able to help you a bit more. > > zalun > > On 10-08-13 03:15, Tom wrote: > > > It

AuthProfile and querysets

2010-11-06 Thread tom
ed to do this: project_members = request.customer.siteuser_set.filter(company = request.customer) TeamForm.base_fields['members'].queryset = project_members #<--- here is a problem, I need to have a query set holding User objects. Does someone know how i can have a User queryset instead of a SiteUs

Re: AuthProfile and querysets

2010-11-08 Thread tom
Hi, I've solved the issue with these lines user_list = request.customer.siteuser_set.values_list('user', flat = True) users = User.objects.in_bulk(list(user_list)) TeamForm.base_fields['members'].queryset = users best regards, tom On Nov 7, 12:40 am, tom wrote:

multidb - partitioning

2010-01-08 Thread tom
, tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit

Re: Python based web reporting tool?

2010-01-08 Thread tom
You could try http://www.xhtml2pdf.com/ It's xhtml+css -> pdf converter. Then you should be able to use django- templates and create from this templates pdf reports. Cheers tom -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: multidb - partitioning

2010-01-08 Thread tom
Hi Russell, On 8 Jan., 15:40, Russell Keith-Magee wrote: > On Fri, Jan 8, 2010 at 9:36 PM, tom wrote: > Regardless of how nice and helpful they might be, Django doesn't > provide explicit support for the features of specific databases. i think partitioning is not a feature

Re: multidb - partitioning

2010-01-09 Thread tom
table and insert trigger). Do you think that's possible? Do you have any good tutorial about postgres and partitioning? I'm completly new to this topic. Cheers Tom On 8 Jan., 22:01, Adrian Maier wrote: > Hello Tom, > > My feeling is that you have almost defined the solution on you

models.DateTimeField - Filter only time

2010-01-11 Thread tom
Hi, i have a datetime field for my model. Now i want to filter all entries where the time is between 12:00:00 and 13:00:00 . How to do this? I tried Entry.objects.filter(begin__gt='12:00:00', end__lt='13:00:00') Cheers, tom -- You received this message because you are subs

form.save() fails with no data, form.is_valid() is True

2010-01-16 Thread tom
he clean method: def clean(self): cleaned_data = self.cleaned_data start_date = cleaned_data.get('start_date') end_date = cleaned_data.get('end_date') if start_date and end_date: if start_date > end_date: rai

froms: extended labels

2010-01-29 Thread tom
trib.auth.models.User objects this works fine and renders a form with the username, but I would like to display the full name of the user and other information out of the profile. Does anyone know how I can get to that information? cheers, Tom -- You received this message because you are subscr

Re: Django Model Audit Log

2010-01-29 Thread tom
maybe that middleware can help you out with getting the username http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser On 29 Jan., 18:05, Shawn Milochik wrote: > I need to implement auditing for my models. The current plan is to listen for > the post_save() signal and dump the current v

Re: froms: extended labels

2010-01-29 Thread tom
f the user, for example. On 29 Jan., 18:01, tom wrote: > Hi, > > I have a Model Form defined like that: > > class ProjectMemberForm(forms.ModelForm): >     """ >     Renders a form where users can be assigned to a project. >     The ``members`` are overidde

Setting initial data for an M2M field

2010-02-16 Thread Tom
can set other initial data, for example to the 'notes' CharField fine. I guess my question boils down to: how do you set initial data for a many-to-many field? Any pointers much appreciated! Thanks, Tom -- You received this message because you are subscribed to the Goo

Re: Setting initial data for an M2M field

2010-02-16 Thread Tom
Jacob, Thanks so much for this; it really helped me. Tom On Feb 16, 8:29 pm, Jacob Kaplan-Moss wrote: > On Tue, Feb 16, 2010 at 10:01 AM, Tom wrote: > > I can set other initial data, for example to the 'notes' CharField > > fine.  I guess my question boils down to: ho

one form, many submits

2010-02-20 Thread Tom
to come up with any info on what this is or how to set it. Any thoughts would be greatly appreciated. Thanks, Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com.

Re: one form, many submits

2010-02-20 Thread Tom
David, thanks for that. I ended up going for the simple HTML method because, as you guessed, the SubmitField idea was a bit unwieldy for my needs. Thanks for your help! Tom On 20 Feb, 15:37, David De La Harpe Golden wrote: > On Sat, Feb 20, 2010 at 06:42:11AM -0800, Tom wrote: > &g

Record is saved, but no join table entry is created - weird problem

2010-02-22 Thread Tom
Hi all, I have a view that takes data from a form and saves it in the db. One of the fields is a M2M linking to another model. The record itself saves fine, but no entry in the M2M join table is created. I am passing the form initial data for the M2M in the form of a list of id numbers specifyi

Re: Record is saved, but no join table entry is created - weird problem

2010-02-22 Thread Tom
Ah! Thanks Tom, that fixed it. Tom On Feb 22, 3:27 pm, Tom Evans wrote: > On Mon, Feb 22, 2010 at 3:11 PM, Tom wrote: > > Hi all, > > > I have a view that takes data from a form and saves it in the db.  One > > of the fields is a M2M linking to another model.  The reco

Incorrect ImageField get_file_url() output on Windows?

2008-01-19 Thread tom
I'm doing local development on XP, and with the exeception of this, it has worked really well. In my settings.py, I have MEDIA_ROOT = 'C:/worker/cms/media/' MEDIA_URL = 'http://localhost:8000/docs/' ADMIN_MEDIA_PREFIX = '/media/' and then in a model: imagefile = models.ImageField(upload_to="ima

How popular is Django ?

2008-02-12 Thread tom
How popular is Django among other Python Web Frameworks (TurboGears, Pylons, Webware, CherryPy...) ? I found a link on the subject : http://www.therightsoft.com/softwaretechnologies/webframeworks ...but I'm am looking for further resources. Thanks in advance for your posts ! --~--~-~--~

edit_inline in ModelForms

2008-03-04 Thread tom
form.save_m2m() return HttpResponseRedirect(success_url) else: form = form_class() return render_to_response(template_name, { 'form': form }, context_instance=RequestContext(request)) what

Re: edit_inline in ModelForms

2008-03-04 Thread tom
hi michael, sorry for not finding the needed information and thanks a lot for the link! regards. tom On 4 Mrz., 14:31, Michael <[EMAIL PROTECTED]> wrote: > This question in various forms was asked 3 times in the last 24 hours. > Check this > outhttp://collingrady.com/200

ManyToManyField: Error in Admin Interface

2008-03-25 Thread tom
in(select) + sql, params) File "/Library/Python/2.5/site-packages/django/db/backends/util.py" in execute 18. return self.cursor.execute(sql, params) Exception Type: ProgrammingError at /admin/users/artist/add/ Exception Value: operator does not exist: integer = text[] LINE 1: .

Re: ManyToManyField: Error in Admin Interface

2008-03-25 Thread tom
Sorry, did forget to mention that I am using postgresql8.2 on Mac OS X Leopard. The web server is running through the ./manage.py script. cheers On 25 Mrz., 14:08, tom <[EMAIL PROTECTED]> wrote: > Hi, > > I try to add some data through the Admin interface but I get an SQL > E

Re: ManyToManyField: Error in Admin Interface

2008-03-26 Thread tom
,"users_artist"."myspace_link","users_artist"."youtube_link","users_artist"."home_dir","users_artist"."slug" FROM "users_artist" LEFT OUTER JOIN "users_artist_members" AS "m2m_users_artist__member

Re: ManyToManyField: Error in Admin Interface

2008-03-27 Thread tom
That was the solution. I removed the symmetrical=False and also the unique=True and now it works. many thanks for your help, Karen! On 26 Mrz., 22:04, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Mar 25, 2008 at 9:08 AM, tom <[EMAIL PROTECTED]> wrote: > >

eclipse + pydev + auto complete

2008-06-19 Thread tom
hi, I wasn't able to find some information on this list about auto completion with eclipse. I managed to get auto completion for my projects, but not for django stuff. What I want to have for example is, when I enter models. that i get a list of available models, or forms. That's it. I have added

Admin fields with abstract classes

2008-07-03 Thread tom
dmin interface to make it "pretty" for editors. But when I use it the way it is listed further up, it simply does not show up as expected. When I add the Admin stuff in the SubClass django throws an error, because the fields are unknown. Is there a way around it? Many thanks and bes

IOError with files uploads bigger than 2.5 MB

2008-07-13 Thread tom
directory. When I change the FILE_UPLOAD_MAX_MEMORY_SIZE the uploads are working fine. Help would be very much appreciated. :) Cheers, Tom """ Environment: Request Method: POST Request URL: http://localhost:8000/admin/ads/ad/11/ Django Version: 0.97-pre-SVN-unknown Python

Re: IOError with files uploads bigger than 2.5 MB

2008-07-14 Thread tom
working before. I increased the FILE_UPLOAD_MAX_MEMORY_SIZE for the moment, but need to change that back to the FILE_UPLOAD_TEMP_DIR soon. cheers, tom On 14 Jul., 04:54, Julien Phalip <[EMAIL PROTECTED]> wrote: > Looks like apache does not have write access to that directory. > T

Re: IOError with files uploads bigger than 2.5 MB

2008-07-14 Thread tom
t a different error? > > On Jul 14, 5:34 pm, tom <[EMAIL PROTECTED]> wrote: > > > hi, > > > i have done that. I am running the server with the runserver command. > > I tried also different directories using the FILE_UPLOAD_TEMP_DIR > > without any change. Thi

Re: IOError with files uploads bigger than 2.5 MB

2008-07-14 Thread tom
I am running on this version: Revision: 7920 Node Kind: directory Schedule: normal Last Changed Author: russellm Last Changed Rev: 7917 On 14 Jul., 16:14, "Ramiro Morales" <[EMAIL PROTECTED]> wrote: > On Sun, Jul 13, 2008 at 10:48 PM, tom <[EMAIL PROTECTED]> wrote:

Re: Scalability / Traffic-Volume Numbers

2007-05-09 Thread Tom
I too would love to see some ideas on what others are doing for scaling in all aspects. There was another recent post looking for ideas on scaling the back end. As well there have been a number of discussions centered on the concept multiple database support, SQLRelay, SQL Alchemy ... I'll start

Re: Offline Django Apps

2007-05-23 Thread Tom
o find lots and lots of different deployed versions of the app's DB schema in the wild, so upgrades will be nasty. With proper 2-way sync, you could just tell the remote user to sync, blow away their DB, then re-sync, but if you're trying to write a simple stand-alone app, you'll need up

Re: Offline Django Apps

2007-05-30 Thread Tom
become part of the core django distro. A link from the Django > wiki is probably a good idea though. I've created a google code project - http://code.google.com/p/djangokit/ - anyone who cares is welcome to membership. tom --~--~-~--~~~---~--~~ You receive

Persistent Python objects

2007-02-03 Thread Tom
ect around between invocations. The object is expensive to construct, so I don't want to serialize and deserialize for each HTTP request. What do you suggest for this? Tom --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Packaging and transferring code

2012-02-14 Thread Tom
How time-consuming/difficult is it to package, transfer and deploy the code of a fully developed site from one host to another? Can a non- Python/Django dev do this easily? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Filtering model searches by a property (as opposed to a field)

2012-02-29 Thread Tom
, id, location, name, owner, type" Is it not possible to filter based on a property? What is the correct method for doing this? Thanks in advance for your help. Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Filtering model searches by a property (as opposed to a field)

2012-02-29 Thread Tom
m tomorrow until the end of the week, which is what I want. On Mar 1, 3:35 am, Javier Guerra Giraldez wrote: > On Wed, Feb 29, 2012 at 3:16 PM, Tom wrote: > > Is it not possible to filter based on a property? > > queries are compiled to SQL to be sent and processed at the database

Best way to export data from Django?

2012-08-17 Thread Tom
tter way of doing this? I looked into Django middleware but this appears to be more for changing the output at the view layer, not the data layer. But if there is a better way of doing this, I'd be keen to find out! Many thanks, Tom -- You received this message because you are subscribed

Re: Best way to export data from Django?

2012-08-20 Thread Tom
ing would exist! As you say, doing this in a single HTTP Request might cause problems. Many thanks, Tom On Friday, August 17, 2012 11:35:35 PM UTC+1, Kurtis wrote: > > Just curious, which data do you not have available when using signals? You > mentioned the ID but this *should* be avail

  1   2   3   4   5   6   7   8   9   10   >