Re: Where do you put your business logic in django? Organizing big projects in django.

2010-09-27 Thread Thomas Weholt
On Mon, Sep 27, 2010 at 10:07 AM, Mike Dewhirst wrote: > On 27/09/2010 5:08pm, MrMuffin wrote: >> >> Where do you put your business logic in django? In my project I`ve put >> it into the models.py, but that file soon become huge and hard to >> maintain. Of course I can just stuff it into whatever

Re: Where do you put your business logic in django? Organizing big projects in django.

2010-09-27 Thread Thomas Weholt
h cases it has the > benefit that it forces you to think about dependancies management, > which can greatly helps when it comes to maintainance. Ok, I see your point, but still - there`s nothing about this in the main django documentation as far as I know. The docs should have a section about

Re: Where do you put your business logic in django? Organizing big projects in django.

2010-09-27 Thread Thomas Weholt
On Mon, Sep 27, 2010 at 12:40 PM, Steve Holden wrote: > On 9/27/2010 4:57 AM, Thomas Weholt wrote: >> On Mon, Sep 27, 2010 at 10:38 AM, bruno desthuilliers >> wrote: >>> On 27 sep, 09:08, MrMuffin wrote: >>>> Where do you put your business logic in django?

Re: Where do you put your business logic in django? Organizing big projects in django.

2010-09-27 Thread Thomas Weholt
On Mon, Sep 27, 2010 at 4:52 PM, bruno desthuilliers wrote: > On 27 sep, 12:55, Thomas Weholt wrote: >> On Mon, Sep 27, 2010 at 12:40 PM, Steve Holden wrote: >> > I think the point is to learn enough Python that you don't need >> > Django-specific advice. >&g

Re: Where do you put your business logic in django? Organizing big projects in django.

2010-09-28 Thread Thomas Weholt
on of boilerplate code. Any thoughts or ideas? I`ll upload it to the cheeseshop as soon as I can get time to debug/test a bit more. The code isn`t pretty at the moment, but it seems to get the job done. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because yo

Re: Django app that uploads media files and servers them through a view?

2010-09-30 Thread Thomas Weholt
re users can upload and backup their media and access it through a web interface. Serving static media using django was terrible and using nginx was incredibly fast, but I lost all access control to the static media. Any help on this subject would be highly appreciated. -- Mvh/Best regards, Thomas

Re: Django app that uploads media files and servers them through a view?

2010-09-30 Thread Thomas Weholt
On Thu, Sep 30, 2010 at 1:52 PM, Xavier Ordoquy wrote: > Hi, > > Although I haven't done it, the following link may give you a good overview > of how to do it: > http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/ > > Regards, > Xavier. > > Le 30

Re: Separating application media from project media

2010-10-01 Thread Thomas Weholt
that platform. Doesn`t matter much to me, but we should work to make our apps portable. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Separating application media from project media

2010-10-01 Thread Thomas Weholt
quot;: http://lifehacker.com/5496652/how-to-use-symlinks-in-windows And it works on my vista box here at work :-) -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: Django Tutorial

2010-10-04 Thread Thomas Weholt
to python land in general don`t forget to pick up a book on plain python as well and read that first. "Learning python" is good :-) And as mentioned earlier the standard django tutorial is good, but the http://djangobook.com/ is also a great reference. -- Mvh/Best regards, Thomas Wehol

Re: Finding It Hard To Make It Work!

2012-02-08 Thread Thomas Weholt
tends "base_meek.html" %} >> >           {% block body %} >> >         >> >     >> >       >> >            {{ mobForm }} >> >       >> >       >> >     >> >        {% endblock %} >> >> > What am I doing

Re: Bulk Creating Django Models from CSV File?

2012-04-02 Thread Thomas Weholt
You might want to look at DSE as well. Currently is has some issues with Django 1.4, but I'll look into fixing those tonight. https://bitbucket.org/weholt/dse2 Regards, Thomas Weholt On Mon, Apr 2, 2012 at 7:24 AM, Victor Hooi wrote: > Hi, > > I have several large CSV files that

Re: New to Jdango - What IDE to use?

2012-04-23 Thread Thomas Weholt
oup. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- Mvh/

Re: Import from local ftp server

2012-04-30 Thread Thomas Weholt
"Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl

Making fields read-only after first save in admin

2012-06-18 Thread Thomas Weholt
I want to make a few foreignkey-fields read-only in the admin after the post is saved, ie when the change-form for that item is opened after the item has been saved the two foreignkeys in question should not be editable. In my case the user has to chose two foreignkeys when first adding an entry, b

How to render a modeladmin dynamically?

2012-06-22 Thread Thomas Weholt
using a custom template extending the normal change_list template. I cannot add these things to the modeladmin of the models in question, it has to be done at runtime. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google

Middleware manipulating template in response

2012-08-09 Thread Thomas Weholt
"sch-", "sec-", "send", "seri", "sgh-", "shar", "sie-", "siem", "smal", "smar", "sony", "sph-", "symb"

Re: Middleware manipulating template in response

2012-08-09 Thread Thomas Weholt
Exist: >>> return >>> else: >>> view_kwargs["template"] = template >>> >>> return view_func(request, *view_args, **view_kwargs) >>> >>> >>> >>> >>> from d

Pure python-alternative to Gunicorn/NGINX/Serving static content

2012-08-09 Thread Thomas Weholt
I'm using gunicorn and nginx on ubuntu when deploying my django projects, but now I need to run a project on several platforms, including windows. Is there a similar pure python configuration ( with the expected reduced performance for serving static content )? -- Mvh/Best regards, Thomas W

Re: Iphone applications via django

2012-09-11 Thread Thomas Weholt
ers@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this

Re: can django be used in destop application?

2011-08-24 Thread Thomas Weholt
Ltd] wrote: > > -- > 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 > django-users+unsubscr

Creating an alternative change_list view for a specific app/model, not extending or overriding

2011-08-24 Thread Thomas Weholt
need to do this as well in my alternative view. I want to use the date-hierarchy, filtering, pagination, admin actions etc you get for free in the admin in my alternative view. Is this possible? How do I reuse most of the existing admin code to achieve this? -- Mvh/Best regards, Thomas Weholt

Re: Creating an alternative change_list view for a specific app/model, not extending or overriding

2011-08-25 Thread Thomas Weholt
nding on the aforementioned attribute provided you're passing > the request in the Context. > > This event allows you to fine tune which bits you want to change. > > Le 24 août 2011 23:38, "Thomas Weholt" a écrit : >> I want to create a view looking and workin

Where's the code picking apart the info about selected filters in the admin change_list stored in the current session?

2011-08-28 Thread Thomas Weholt
ps? I want to create a similar piece of code as an alternative change_list in the admin. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Where's the code picking apart the info about selected filters in the admin change_list stored in the current session?

2011-08-28 Thread Thomas Weholt
ase > unsubscribe<http://click22.googlegroups.com/cl/unsubscribe.php> > > 866-288-1880 > 5150 yarmouth ave, Encino, CA 91316 > On Sun, 28 Aug 2011 18:43:54 +0200, Thomas Weholt ** wrote: > -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this mess

Values for ManyToMany-field set in code not visible in admin

2011-08-29 Thread Thomas Weholt
the change_form for the model are not selected. Selected the values for the ManyToMany-field in the admin manually is saved ok and display ok. What's the difference between setting fields like this in code and doing it in the admin? -- Mvh/Best regards, Thomas Weholt http://www.wehol

Re: Norwegian Sorting

2011-09-09 Thread Thomas Weholt
o unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscrib

Re: Using gedit for django development

2011-09-13 Thread Thomas Weholt
Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/d

Caching static images using memcache/nginx

2011-09-15 Thread Thomas Weholt
atetag to generate the url etc. Sorry if it's still of topic. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- 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.co

Re: Caching static images using memcache/nginx

2011-09-15 Thread Thomas Weholt
umbnails is actually the thing > slowing your app down. > > Cheers, > Cliff > > > On Thu, 2011-09-15 at 15:24 +0200, Thomas Weholt wrote: >> Ok, this might sound a bit off-topic but bear with me. >> >> I got a templatetag in an app that generates thumbnails ( >

Re: Caching static images using memcache/nginx

2011-09-15 Thread Thomas Weholt
t; can see which headers you need to set to tell the client browser to cache a > resource. > > > On Thu, Sep 15, 2011 at 4:51 PM, Thomas Weholt > wrote: >> >> Good point Cliff! I just assumed serving static content would benefit >> from caching, but perhaps m

Re: Looking for a job in the Arctic Circle

2011-09-30 Thread Thomas Weholt
You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/_OtQN-CLLLEJ. > To post to this group, send email to django-users@googlegroups.com. > To

Re: Bulk import of data

2011-12-04 Thread Thomas Weholt
is group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- Mvh/Best regards, Thomas Weholt http://

Re: Which IDE should I use for Django?

2011-12-19 Thread Thomas Weholt
> > > -- > 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 > django-users+unsubscr...@googleg

Re: Which IDE should I use for Django?

2011-12-19 Thread Thomas Weholt
ptana Studio. >> >> Thanks, >> Anoop Thomas Mathew >> >> atm >> ___ >> Life is short, Live it hard. >> >> >> >> >> >> On 19 December 2011 16:41, Thomas Weholt wrote: >>> >>> Pycharm +1 >>> >>>

Re: Introducing: pythonpackages.com

2012-01-03 Thread Thomas Weholt
ou 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > htt

Re: Interface implementation in python

2012-01-04 Thread Thomas Weholt
t; django-users+unsubscr...@googlegroups.com >> > (mailto:django-users+unsubscr...@googlegroups.com). >> > For more options, visit this group >> > athttp://groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the G

Dual license in a django world

2012-01-09 Thread Thomas Weholt
time on my django projects if they generated some kind of income. What do you think? How would a dual license be recieved in the django community? Any tip or thought on the subject would be appreciated. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message

Unicode/Non-ASCII characters in the admin throws exception

2013-01-28 Thread Thomas Weholt
This is a recurring problem for django users obviously by the amount of posts returned by google and I've had this problem in the past as well, but cannot remember how I got around it. Googling did'nt help either. When I use Norweian characters like ØÆÅ in CharField-field in the django admin I

Re: Unicode/Non-ASCII characters in the admin throws exception

2013-01-29 Thread Thomas Weholt
tch to the maintainers. First up; Django debug toolbar :-) Thomas On Monday, January 28, 2013 10:07:22 PM UTC+1, Thomas Weholt wrote: > > This is a recurring problem for django users obviously by the amount of > posts returned by google and I've had this problem in the past as well, but

Re: plz help me i have checked many time but i could not find error place.....

2013-02-06 Thread Thomas Weholt
rom this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.g

Django 1.5 & Python 3 - porting packages to Python3

2013-02-15 Thread Thomas Weholt
), django-debug-toolbar, django-celery etc. Are there any focus in the community on getting packages ready for python3? -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To u

django-quickview v0.1 released - proof-of-concept/comments wanted

2013-02-18 Thread Thomas Weholt
you can browse the source at https://bitbucket.org/weholt/django-quickview. The testsite-folder at bitbucket contains a working example. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users&qu

Re: error in templates...

2013-02-19 Thread Thomas Weholt
ls from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > &

Re: ANNOUNCE: Django 1.5 released

2013-02-26 Thread Thomas Weholt
pt_out. >> >> > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. >

Announcement: django-quickview 0.3 - putting the nitro in rapid web development

2013-02-27 Thread Thomas Weholt
;-) -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To po

Re: Announcement: django-quickview 0.3 - putting the nitro in rapid web development

2013-02-28 Thread Thomas Weholt
Packaging python is hard!! Fixed the problem now. pip install django-quickview works. Sorry. Thomas On Thu, Feb 28, 2013 at 5:03 AM, Bino Oetomo wrote: > > > On Feb 28, 2:39 am, Thomas Weholt wrote: >> >> Documentation and tutorial >> athttps://bitbucket.org/

Re: Announcement: django-quickview 0.3 - putting the nitro in rapid web development

2013-02-28 Thread Thomas Weholt
On Thu, Feb 28, 2013 at 4:10 PM, Tom Evans wrote: > On Wed, Feb 27, 2013 at 7:39 PM, Thomas Weholt > wrote: >> pypi : https://pypi.python.org/pypi/django-quickview/ >> Source at https://bitbucket.org/weholt/django-quickview >> >> Documentation and tutorial at &

Profiling django apps using Python 3? No hotspot module.

2013-03-14 Thread Thomas Weholt
h Python 3? If not I'll try to port one of the ones I've found but why re-invent the wheel? -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: Profiling django apps using Python 3? No hotspot module.

2013-03-14 Thread Thomas Weholt
ils from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. >

Re: django notification like facebook

2013-03-18 Thread Thomas Weholt
To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You receiv

Suddenly manage.py syncdb fails with 'no such table django_session'

2013-04-04 Thread Thomas Weholt
ath.abspath(__file__)) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(PROJECT_PATH, 'database.db'), 'USER': '', 'PASSWORD': '', '

Re: Suddenly manage.py syncdb fails with 'no such table django_session'

2013-04-09 Thread Thomas Weholt
I've later discovered that, in my case, one of my other packages, which monkey patches my models, most likely is the cause of the problem. Thomas On Tue, Apr 9, 2013 at 12:41 PM, Serdar Dalgic wrote: > On Thu, Apr 4, 2013 at 10:24 PM, Thomas Weholt > wrote: > > I haven'

Re: Status of Django with Python 3.x

2013-04-11 Thread Thomas Weholt
Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups &qu

Re: What to Django people have to say about Javascript frameworks to complement Django's philosophy on the front end

2013-04-17 Thread Thomas Weholt
ngo-users+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/django-users?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >>

Re: IDE to practice django template language

2013-04-19 Thread Thomas Weholt
en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails

Re: IDE to practice django template language

2013-04-19 Thread Thomas Weholt
n Fri, Apr 19, 2013 at 3:35 PM, Tim Cook wrote: > > > On Fri, Apr 19, 2013 at 9:01 AM, Thomas Weholt wrote: > >> PyCharm! Allthough commercial - it's great and really worth the prize, >> and now is on sale for half prize! >> >> >> > Hi Thomas, >

Re-usable app for REST API creation with Python 3 support?

2013-04-22 Thread Thomas Weholt
wrong? -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.

Re: Please help me in Django

2013-06-10 Thread Thomas Weholt
p at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django user

Re: How does it all work

2013-06-10 Thread Thomas Weholt
> "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/d

Re: background image for table not apply in printout page and email copy - Django

2013-06-13 Thread Thomas Weholt
this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received th

Re: How to make set background image for printout layout

2013-06-13 Thread Thomas Weholt
it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >

Re: Python 3

2013-10-23 Thread Thomas Weholt
https://groups.google.com/d/msgid/django-users/fcab2249-1b88-405a-9106-dd2b544d3d07%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to

ANN: DSE 1.0.0-RC1

2011-04-13 Thread Thomas Weholt
) release candidate of DSE ( http://pypi.python.org/pypi/dse/1.0.0-RC1 ) and if anybody has time/interest to help me iron out any bugs or issues before I label it as stable and release the official 1.0 release that would be great. Thanks for your attention. -- Mvh/Best regards, Thomas Weholt http://www.

Debugging a unittest

2011-04-19 Thread Thomas Weholt
s the best way to do this? -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- 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, s

Re: Accessing ImageField temporary file to dynamically change upload_to storage path

2011-04-26 Thread Thomas Weholt
up. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Mvh/

Cannot operate on a closed database

2011-04-29 Thread Thomas Weholt
I'm trying to run a unittest, but it crashes with an exception, saying "Cannot operate on a closed dabase". I'm not using the orm to insert records, but raw SQL - and raw sql is the only option. When or what closes the connection to the database? -- Mvh/Best regards

ANN: DSE v2.0.0-Beta - DSE uses 1.8% of the time compared to the Django ORM updating 100.000 records.

2011-05-03 Thread Thomas Weholt
ed-to-django.html DSE at pypi: http://pypi.python.org/pypi/dse/ Source at bitbucket.org: https://bitbucket.org/weholt/dse2 Thanks for your attention. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django us

Re: ANN: DSE v2.0.0-Beta - DSE uses 1.8% of the time compared to the Django ORM updating 100.000 records.

2011-05-03 Thread Thomas Weholt
Brian Bouterse wrote: > This would have been so useful on my last project.  14.4 Million records > took a couple of days with a single thread using the ORM.  This would have > really sped things up. > Brian > > On Tue, May 3, 2011 at 7:50 AM, Thomas Weholt > wrote: >>

Re: ANN: DSE v2.0.0-Beta - DSE uses 1.8% of the time compared to the Django ORM updating 100.000 records.

2011-05-03 Thread Thomas Weholt
ect.  14.4 Million records > took a couple of days with a single thread using the ORM.  This would have > really sped things up. > Brian > > On Tue, May 3, 2011 at 7:50 AM, Thomas Weholt > wrote: >> >> Inserting, updating or deleting lots of records using the Djang

Re: Best practice for async task in django?

2011-05-06 Thread Thomas Weholt
-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups &quo

Giving inlined models in a form in admin a default value based on order in form?

2011-05-06 Thread Thomas Weholt
_order = 1, 2 and 3. If I click to add a new child item in that same form, it should be giving sort_order = 4, then 5 etc. You get the picture? Is this possible? -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Group

using reverse to find the index-page of an app?

2011-05-08 Thread Thomas Weholt
ot getting it. Sorry. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- 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 thi

Inserting csrf-token in a form generated by a templatetag?

2011-05-08 Thread Thomas Weholt
I've got a templatetag generating a form, but trying to add a csrf-token failes. What's the correct way to add a csrf-token to a form generated in plain html in a templatetag? -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are sub

Ann: django-photofile released - thumbnail generation with automatic rotation based on Exif.Orientation

2011-05-09 Thread Thomas Weholt
-Photofile/ Released as GPL. Alpha status. Testers and comments wanted. Planned features: more metadata handling ( EXIF, IPTC, XMP ) and optional use of pgmagick or similar for better thumbnail quality. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you

ANN: Django-photophile v.0.2.0 - templatetag for thumbnail generation with automatic rotation and an abstract model for EXIF-metadata handling.

2011-05-10 Thread Thomas Weholt
downloading. Released as GPL. Source available at https://bitbucket.org/weholt/django-photofile/src. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: performance of model instgance save()

2011-05-11 Thread Thomas Weholt
On Wed, May 11, 2011 at 10:21 AM, Daniel Roseman wrote: > On Wednesday, May 11, 2011 7:50:16 AM UTC+1, Brian wrote: >> >> Sure - it's just that bit more convenient and readable to use the ORM >> approach. If I get the chance, I must try substituting direct calls to >> psycopg and see if that makes

How to use django-taggit in admin.py?

2011-05-11 Thread Thomas Weholt
How can I use django-taggit in the admin related to my model? -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- 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

Problems using django-taggit; tags disappear in the admin

2011-05-11 Thread Thomas Weholt
tags.all() [, , ] >>> AdvancedPhoto.objects.all()[1].tags.all() [, , ] This works fine. Saving/adding a photo in the admin and then checking it in the shell afterwards: >>> from photoapp.models import * >>> AdvancedPhoto.objects.all()[0].tags.all() [] Hmmm ... what's going on

CharField with choices gets no ... choices

2011-05-12 Thread Thomas Weholt
string and I could not set any choice-property. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- 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

Re: CharField with choices gets no ... choices

2011-05-12 Thread Thomas Weholt
On Thu, May 12, 2011 at 10:09 AM, Jani Tiainen wrote: > On Thu, 2011-05-12 at 09:59 +0200, Thomas Weholt wrote: >> I got a model looking something like this >> >> class SomeModel(models.Model): >>     somefield = models.CharField(max_length=100, choices=somemethod()

How to choose a license for an app or a project?

2011-05-13 Thread Thomas Weholt
-- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- 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 django-user

Re: How to choose a license for an app or a project?

2011-05-13 Thread Thomas Weholt
On Fri, May 13, 2011 at 4:15 PM, Tom Evans wrote: > On Fri, May 13, 2011 at 3:05 PM, Boštjan Mejak > wrote: >> For example, the CCleaner GUI application provides only the setup (so the >> binaries) of the application. They don't give the source code of it. If I >> wanted the same thing with my a

Re: How to choose a license for an app or a project?

2011-05-13 Thread Thomas Weholt
l so I can benefit from bug fixes, added features etc. So I still believe GPL is the right license for me to use. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: How to choose a license for an app or a project?

2011-05-13 Thread Thomas Weholt
On Fri, May 13, 2011 at 6:55 PM, Jacob Kaplan-Moss wrote: > On Fri, May 13, 2011 at 11:30 AM, Thomas Weholt > wrote: >> Hmmm ... maybe, but because of the reusable app focus in django I >> think some sort of guideline regarding choice of license could be >> important.

ANN: DSE 2.0.0-RC1, now using the BSD license.

2011-05-18 Thread Thomas Weholt
under the BSD license ( and that's the only change compared to beta9 ). http://pypi.python.org/pypi/dse/2.0.0-RC1 -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Master/detail in the admin

2011-05-25 Thread Thomas Weholt
e change_list filtered to only show details related to a specific master-record and reuse as much of the admin-code/featurebase as possible. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users&q

Django development with iPad as target platform?

2011-05-27 Thread Thomas Weholt
I just got my hands on an iPad and was wondering if anybody has done any django development where the iPad was the target platform/browser/client? Thanks in advance and expect some django-app aimed at ipad in the near future ;-). -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You

How to get user object from RequestContext?

2011-05-30 Thread Thomas Weholt
How do I get the user related to the current request in templatetag? Using RequestContext? @register.tag(name='sometag') def sometag(parser, token): try: tagname, model_inst = token.split_contents() except ValueError: raise template.TemplateSyntaxError, "%r tag requires exa

Trouble with simple aggregation

2011-06-08 Thread Thomas Weholt
Say I got a model like so: class Article(models.Model): title = models.CharField(max_length=100) text = models.TextField() category = models.CharField(max_length=20) author = models.CharField(max_length=50) Article.objects.create(title="Foo", text="Story about foo", category="adve

Multiple forms into one form/trouble accessing form fields

2011-06-15 Thread Thomas Weholt
fields into one new form. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- 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, sen

ANN: django-kolibri - a concept for Asynchronous Processors/Workflow management for django.

2011-06-21 Thread Thomas Weholt
pypi-entry don't get formatted like restructured text that would be swell. Thanks! -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: ANN: django-kolibri - a concept for Asynchronous Processors/Workflow management for django.

2011-06-21 Thread Thomas Weholt
On Tue, Jun 21, 2011 at 11:16 PM, Calvin Spealman wrote: > Interesting project. My first question was going to be "Why aren't you > just using Celery?" until I got to the part of the description that > says it is built on *top* of celery. Yes, it might be a good idea to put that in the beginning

Re: ANN: django-kolibri - a concept for Asynchronous Processors/Workflow management for django.

2011-06-22 Thread Thomas Weholt
On Wed, Jun 22, 2011 at 2:01 PM, Ethan Jucovy wrote: > On Tue, Jun 21, 2011 at 5:09 PM, Thomas Weholt > wrote: >> >> Proof of concept. Need comments. Released under a modified BSD-license. >> >> http://pypi.python.org/pypi/Kolibri/0.1.0a >> >> or better

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-22 Thread Thomas Weholt
from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscrib

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-22 Thread Thomas Weholt
1180) (range: 72500921 > ~ 72550921), (avg 16.9 mins/million) - [('is_checked', 49659), > ('is_image_blocked', 0), ('has_link', 1517), ('is_spam', 4)] > Could you let me know if those benchmarks are better/worse than using DSE? > I'd be inte

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-22 Thread Thomas Weholt
On Wed, Jun 22, 2011 at 3:52 PM, Cal Leeming [Simplicity Media Ltd] wrote: > Sorry, let me explain a little better. > (51.98s) Found 49659 objs (match: 16563) (db writes: 51180) (range: > 72500921 ~ 72550921), (avg 16.9 mins/million) - [('is_checked', > 49659), ('is_image_blocked', 0), ('has_link'

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-22 Thread Thomas Weholt
increase is huge using the method described here, even compared to my current solution ( using cursor.executemany ), which is considerably faster than the django orm allready. My testing so far have been using postgresql, not sure how mysql will perform. I expect to release DSE v.2.2.0 with th

Ann: DSE v.3.0.0 Beta #1

2011-06-23 Thread Thomas Weholt
ts using:: # pk = the primary key field for the model, in most cases id for field, values in bulk_updates.iteritems(): for value, ids in values.iteritems(): model.objects.filter(**{"%s__in" % pk: ids}).update(**{field: value}) For huge datasets wher

Re: Ann: DSE v.3.0.0 Beta #1

2011-06-23 Thread Thomas Weholt
On Fri, Jun 24, 2011 at 3:54 AM, Russell Keith-Magee wrote: > On Fri, Jun 24, 2011 at 9:44 AM, Cal Leeming [Simplicity Media Ltd] > wrote: >> >> >> On Fri, Jun 24, 2011 at 2:34 AM, Russell Keith-Magee >> wrote: >>> >>> On Fri, Jun 24, 2011 at 9:28 AM, Cal Leeming [Simplicity Media Ltd] >>> wrot

  1   2   >