Re: [Forms] Avoiding Repetition

2011-06-22 Thread Nikhil Somaru
Andre, you're right. But a subclass would probably save me one line: model = OrderItem The rest follows a pattern but is otherwise unique. I'm going to look into dynamic forms as suggested by Derek On Tue, Jun 21, 2011 at 5:42 PM, Andre Terra wrote: > I'm reading

Re: updating a user form?

2011-06-22 Thread raj
nevermind, i figured it out. thanks anyway On Jun 22, 5:11 pm, raj wrote: > I think I'm starting to get the hang of it a little. I was able to > extract the data from the profile and set it as the initial value. > From what I understand, you would like me to set each user

Re: Want to give a talk at Djangocon, the time to submit is now

2011-06-22 Thread Kenneth Gonsalves
On Thu, 2011-06-23 at 07:13 +0800, Russell Keith-Magee wrote: > In the interim, the best option is your local Python conference; > PyCon.AU, PyCon.NZ or PyCon.APAC. and as already mentionedS http://in.pycon.org/2011/ -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox

Creating an instance of a subclass when superclass instance already exists

2011-06-22 Thread Matt Gardner
Hello all, I have a model hierarchy in my django app, and there is one very important task that I do not know how to do. I have a bunch of instances of the superclass (Word is the model name), and on input from a user I want to create a subclass instance (Verb) from that superclass instance.

Re: how to display form data with original values after validation failure?

2011-06-22 Thread snfctech
Figured it out - you have to populate both fs._errors _and_ loop through each form in the formset and populate its _errors attribute, as well. On Jun 22, 2:50 pm, snfctech wrote: > Hi, Michal. > > I tried that, but the errors don't get rendered for some reason (see > my

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

2011-06-22 Thread Cal Leeming [Simplicity Media Ltd]
I was thinking.. what would be really nice would be a monkey patch that could catch any inserts/updates/saves from the ORM, and defer them until the user triggered the bulk update some how.. That way, DSE would be completely interchangeable with existing code, making it much more likely for people

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

2011-06-22 Thread william ratcliff
Definitely looking forward to it! On Wed, Jun 22, 2011 at 6:50 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Nice! > > On Wed, Jun 22, 2011 at 11:39 PM, Thomas Weholt > wrote: > >> On Wed, Jun 22, 2011 at 4:47 PM, Cal Leeming

Re: Want to give a talk at Djangocon, the time to submit is now

2011-06-22 Thread Russell Keith-Magee
On Thu, Jun 23, 2011 at 12:15 AM, Addy Yeow wrote: > Any plan to host Djangcon in Asia? This exact question was asked (and answered) on django-users yesterday. There aren't any current plans for a DjangoCon.AU, NZ, or APAC. What is required is an interested group from the

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

2011-06-22 Thread Cal Leeming [Simplicity Media Ltd]
Nice! On Wed, Jun 22, 2011 at 11:39 PM, Thomas Weholt wrote: > On Wed, Jun 22, 2011 at 4:47 PM, Cal Leeming [Simplicity Media Ltd] > wrote: > > > > > > On Wed, Jun 22, 2011 at 3:25 PM, Andre Terra > wrote: >

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

2011-06-22 Thread Cal Leeming [Simplicity Media Ltd]
Nice, seems like there is a lot of positive feedback. Here's some further info about the webcast/webinar: *Expected Date:* July/August *Expected Time:* Somewhere between 9AM - 9PM GMT+0 (UK Time), I'll probably run a webpage vote so you guys can decide. *Via:* GoToWebinar - screen share with

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 4:47 PM, Cal Leeming [Simplicity Media Ltd] wrote: > > > On Wed, Jun 22, 2011 at 3:25 PM, Andre Terra wrote: >> >> Hello, Cal >> >> First of all, congrats on the newborn! The Django community will surely >>

Re: how to display form data with original values after validation failure?

2011-06-22 Thread snfctech
Hi, Michal. I tried that, but the errors don't get rendered for some reason (see my first post). Tony On Jun 22, 1:59 pm, Michał Sawicz wrote: > Dnia 2011-06-22, śro o godzinie 13:44 -0700, snfctech pisze: > > > Which passes the form with the same post data and some error

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

2011-06-22 Thread Mishen'ka
I really like the idea, hope i can see it soon. Interessting thanks On 22 jun, 15:15, "Cal Leeming [Simplicity Media Ltd]" wrote: > Hi all, > > Some of you may have noticed, in the last few months I've done quite a few > posts/snippets about handling large

Re: I need to create a Django WebService to be consumed by AspNet

2011-06-22 Thread David Markey
Xml-rpc or SOAP? On 22 June 2011 22:19, Emmanuel Rojas wrote: > Hi, > > I was test a lot of tutorials in internet but I can´t get it yet, I do > not understand how to create a web service in Django, would you help > me? > > Thanks in advance > Emmanuel > > -- > You

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

2011-06-22 Thread serek
Great idea. I also would like to see this webcast On Jun 22, 6:00 pm, "Cal Leeming [Simplicity Media Ltd]" wrote: > On Wed, Jun 22, 2011 at 4:55 PM, creecode wrote: > > Hello SleepyCal, > > > On Wednesday, June 22, 2011 6:15:48 AM UTC-7,

I need to create a Django WebService to be consumed by AspNet

2011-06-22 Thread Emmanuel Rojas
Hi, I was test a lot of tutorials in internet but I can´t get it yet, I do not understand how to create a web service in Django, would you help me? Thanks in advance Emmanuel -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: updating a user form?

2011-06-22 Thread raj
I think I'm starting to get the hang of it a little. I was able to extract the data from the profile and set it as the initial value. >From what I understand, you would like me to set each user field one at a time, but if I have 20-30 fields that need to be updated at once, I'm at a loss. The way

Re: how to display form data with original values after validation failure?

2011-06-22 Thread Michał Sawicz
Dnia 2011-06-22, śro o godzinie 13:44 -0700, snfctech pisze: > Which passes the form with the same post data and some error messages > back to the user. Maybe you could just reinstantiate a clean RegistrationFormSet without passing request.POST to it? Maybe copying errors from the original,

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

2011-06-22 Thread Malcolm Box
On 22 June 2011 14:15, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hi all, > > Therefore, I'd like to see if there would be any interest in webcast in > which I would explain how we handle such large amounts of data, the trial > and error processes we went

Re: how to display form data with original values after validation failure?

2011-06-22 Thread snfctech
Hi, Kevin. Thanks for your reply. I actually don't want to show the entered values - I basically want the original form with values prior to the user submitting the form - but with the validation errors that prompt them to enter new values in the proper fields. I have already overridden the

Share connection between Django and SqlAlchemy

2011-06-22 Thread Vladimir Mihailenco
I am trying to share connection between Django and SqlAlchemy. I tried following code: from django.db import connection from sqlalchemy import create_engine def get_connection(): if connection.connection is None: connection._cursor() # TODO: better way to open new connection?

Re: templatetags and refresh

2011-06-22 Thread Daniel Roseman
On Wednesday, 22 June 2011 14:32:10 UTC+1, Wim Feijen wrote: > > Hello, > > At www.mkb-rotterdam.nl we use a template tag to display NewsItems in > different formats on the homepage. > > However, when a new NewsItem is added, it does not appear at once. > > Might this have to do with the fact

Re: WMD-editor: Where's wmd/urls.py?

2011-06-22 Thread Micky Hulse
On Wed, Jun 22, 2011 at 1:20 AM, Kevin Renskers wrote: > I think it's an error in the documentation. Since there are no views, it's > probable that there are no urls as well. Everything works perfectly if I ignore the part about the urls.py file. :D Thanks Kevin! Have a great

Re: making instance of auth User results in: maximum recursion depth exceeded while calling a Python object

2011-06-22 Thread Karen Tracey
No, you're not stupid. The only reason I could guess what the problem was is I've seen it done many times. Many languages would complain about the "redefinition"; Python just quietly does what you tell it and re-binds the name to a new value. That can actually be a very useful feature, but it also

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

2011-06-22 Thread creecode
Hello SleepyCal, On Wednesday, June 22, 2011 9:00:15 AM UTC-7, SleepyCal wrote: Yup, I'm planning on recording in 1080p and posting on Youtube shortly > afterwards. > Fantastic! Thank you, Toodle-l... creecode -- You received this message because you are subscribed to the

Multiple Inheritence of Abstract Base Model Classes, or plain Mixins?

2011-06-22 Thread br
I asked a similar question a few days ago but got no response. Since then, I've poked around SO and come up with a few potential ways to do it, but wonder if there is a *correct* Django way to do it or if there are hidden problems lurking behind one of them. Basically I have a few different base

Re: WMD-editor: Where's wmd/urls.py?

2011-06-22 Thread Micky Hulse
On Wed, Jun 22, 2011 at 1:20 AM, Kevin Renskers wrote: > I think it's an error in the documentation. Since there are no views, it's > probable that there are no urls as well. Hehe, that's a great point! I did not think about looking inside the views.py file. :( Thanks Kevin!

Re: Want to give a talk at Djangocon, the time to submit is now

2011-06-22 Thread Sean O'Connor
Not by the organizers of Djangocon.US. So far, each of the regional conferences (djangocon.us, djangocon.eu, djangoski, etc) have been organized by independent organizations. That being said, we do all collaborate to some extent. Should anybody be interested in organizing a Djangocon in Asia, I

Re: Want to give a talk at Djangocon, the time to submit is now

2011-06-22 Thread Addy Yeow
Any plan to host Djangcon in Asia? On Thu, Jun 23, 2011 at 12:08 AM, Sean O'Connor wrote: > Hey Everybody, > > I know we're a bit late this year but the new Djangocon.US site is finally > up and we are accepting talk proposals today. > > Unfortunately, thanks to our

Want to give a talk at Djangocon, the time to submit is now

2011-06-22 Thread Sean O'Connor
Hey Everybody, I know we're a bit late this year but the new Djangocon.US site is finally up and we are accepting talk proposals today. Unfortunately, thanks to our lateness we will only be able to accept proposals for the next* *two weeks. This means if you want to have a chance to speak at

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

2011-06-22 Thread Brian Bouterse
+1 for making it viewable after the fact On Wed, Jun 22, 2011 at 11:55 AM, creecode wrote: > Hello SleepyCal, > > > On Wednesday, June 22, 2011 6:15:48 AM UTC-7, SleepyCal wrote: > > If you're interested, please reply on-list so others can see. > > > +1 > > Also if the

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

2011-06-22 Thread Cal Leeming [Simplicity Media Ltd]
On Wed, Jun 22, 2011 at 4:55 PM, creecode wrote: > Hello SleepyCal, > > > On Wednesday, June 22, 2011 6:15:48 AM UTC-7, SleepyCal wrote: > > If you're interested, please reply on-list so others can see. > > > +1 > > Also if the webcast could be stored for later viewing that

Re: how to set up user profile in django-registration ?

2011-06-22 Thread Shawn Milochik
On 06/22/2011 11:41 AM, Satyajit Sarangi wrote: Now I get a database error relation "registration_userprofile" does not exist LINE 1: ..."."id", "registration_userprofile"."user_id" FROM "registrat... That looks like a migration/syncdb issue. Either you added a field to an already-synced

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

2011-06-22 Thread creecode
Hello SleepyCal, On Wednesday, June 22, 2011 6:15:48 AM UTC-7, SleepyCal wrote: If you're interested, please reply on-list so others can see. +1 Also if the webcast could be stored for later viewing that would be grand. Toodle-loo.. creecode -- You received this

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

2011-06-22 Thread Anurag Chourasia
I am in :-) On Wed, Jun 22, 2011 at 11:39 AM, Ivan Aleman wrote: > > > On 22 June 2011 08:15, Cal Leeming [Simplicity Media Ltd] < > cal.leem...@simplicitymedialtd.co.uk> wrote: > >> >> If you're interested, please reply on-list so others can see. >> >> >> > Sweet! Count

Re: templatetags and refresh

2011-06-22 Thread Michał Sawicz
Dnia 2011-06-22, śro o godzinie 06:32 -0700, Wim Feijen pisze: > Our query is: > > newsitems = NewsItem.objects.filter(Q(expires_at__gt = datetime.now()) > | Q(expires_at__isnull = True), effective_at__lte = datetime.now(), > is_active=True).order_by('-news_timestamp') > > Or is datetime.now()

Re: how to set up user profile in django-registration ?

2011-06-22 Thread Satyajit Sarangi
Now I get a database error relation "registration_userprofile" does not exist LINE 1: ..."."id", "registration_userprofile"."user_id" FROM "registrat... On Wed, Jun 22, 2011 at 8:58 PM, Shawn Milochik wrote: > On 06/22/2011 11:25 AM, Satyajit Sarangi wrote: > >>

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

2011-06-22 Thread Ivan Aleman
On 22 June 2011 08:15, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > > If you're interested, please reply on-list so others can see. > > > Sweet! Count me in :) > > -- Iván -- You received this message because you are subscribed to the Google Groups

Re: django page loads forever

2011-06-22 Thread Shawn Milochik
On 06/22/2011 11:26 AM, jay K. wrote: Hello, everyone I have a django page which loads indefinitely some of the javascript that is supposed to come up does not appear on the screen (while the page is still loading), but i checked with firebugs and there are no error messages at all any advice

Re: how to set up user profile in django-registration ?

2011-06-22 Thread Shawn Milochik
On 06/22/2011 11:25 AM, Satyajit Sarangi wrote: Traceback: 60. url(r'^profile/$',UserProfile,name='UserProfile'), Exception Type: NameError at /accounts/profile/ Exception Value: name 'UserProfile' is not defined It appears that you have a view named UserProfile in

django page loads forever

2011-06-22 Thread jay K.
Hello, everyone I have a django page which loads indefinitely some of the javascript that is supposed to come up does not appear on the screen (while the page is still loading), but i checked with firebugs and there are no error messages at all any advice would be helpful thanks jay k --

Re: how to set up user profile in django-registration ?

2011-06-22 Thread Satyajit Sarangi
Traceback: File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py" in get_response 101. request.path_info) File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py" in resolve 252. sub_match =

Re: how to set up user profile in django-registration ?

2011-06-22 Thread Satyajit Sarangi
These are my steps . 1. Not using django-profile 2. Create my own view to show the profile by using user.get_profile() 3. Created my own view and also a model in django-registration to view the profile . 4 . Did changes to urls.py url(r'^profile/$',register.UserProfile,name='user.get_profile()'),

Re: how to set up user profile in django-registration ?

2011-06-22 Thread Piotr Zalewa
On 06/22/11 16:09, Satyajit Sarangi wrote: I am using django registration , which is not displaying any profile when I log in . Thus I am not able to login . What should I do to overcome this ? I assume you've been reading docs already. (django-registration and django user management ones,

how to set up user profile in django-registration ?

2011-06-22 Thread Satyajit Sarangi
I am using django registration , which is not displaying any profile when I log in . Thus I am not able to login . What should I do to overcome this ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

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

2011-06-22 Thread Andre Terra
On Wed, Jun 22, 2011 at 11:47 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > > > On Wed, Jun 22, 2011 at 3:25 PM, Andre Terra wrote: > >> Hello, Cal >> >> First of all, congrats on the newborn! The Django community will surely >>

Re: Unit-Testing Dilemma

2011-06-22 Thread Nan
> Use Mock and assert_called_with: > http://www.voidspace.org.uk/python/mock/mock.html#mock.Mock.assert_ca... > In this case you'd set theAPI.call as your mock and check that under > different conditions it is called correctly. Oh, perfect -- thank you, that will help a lot! > You don't need

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

2011-06-22 Thread Cal Leeming [Simplicity Media Ltd]
On Wed, Jun 22, 2011 at 3:25 PM, Andre Terra wrote: > Hello, Cal > > First of all, congrats on the newborn! The Django community will surely > benefit from having yet another success story, especially considering how > big this project sounds. Is there any chance you could

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

2011-06-22 Thread Cal Leeming [Simplicity Media Ltd]
Hmm, that's odd, the grouping (map/reduce/filter/lambda) is extremely quick for me (even on a heavy data set). My guess is that grouping would need to be done on a combination of field name+value, and would need to allow the user to specify what bulk to use (to prevent MemoryError exception - or

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

2011-06-22 Thread Andre Terra
Hello, Cal First of all, congrats on the newborn! The Django community will surely benefit from having yet another success story, especially considering how big this project sounds. Is there any chance you could open-source some of your custom made improvements so that they could eventually be

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', >

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

2011-06-22 Thread Cal Leeming [Simplicity Media Ltd]
Also, the 13.8 minutes per million, is basically a benchmark based on the amount of db writes, and the total amount of time it took to execute (which was 51s). Please also note, this code is doing a *heavy* amount of content analysis, but if you were to strip that out, the only overheads would be

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

2011-06-22 Thread Cal Leeming [Simplicity Media Ltd]
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', 1517), ('is_spam', 4)] map(lambda x: (x[0], len(x[1])), _obj_incs.iteritems())

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:36 PM, Cal Leeming [Simplicity Media Ltd] wrote: > Hey Thomas, > Yeah we actually spoke a little while ago about DSE. In the end, we actually > used a custom approach which analyses data in blocks of 50k rows, builds a > list of rows

Re: Automatic internal link middleware

2011-06-22 Thread Cal Leeming [Simplicity Media Ltd]
On Wed, Jun 22, 2011 at 2:33 PM, Herman Schistad wrote: > On Wed, Jun 22, 2011 at 15:24, Cal Leeming [Simplicity Media Ltd] > wrote: > > We have actually just implemented this on one of our other sites still in > > development. The

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

2011-06-22 Thread Shawn Milochik
Cal, That sounds awesome. I wish you could present it at DjangoCon US too. :o/ Shawn -- 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

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

2011-06-22 Thread Cal Leeming [Simplicity Media Ltd]
Hey Thomas, Yeah we actually spoke a little while ago about DSE. In the end, we actually used a custom approach which analyses data in blocks of 50k rows, builds a list of rows which need changing to the same value, then applied them in bulk using update() + F(). Here's our benchmark: (42.11s)

Re: Automatic internal link middleware

2011-06-22 Thread Herman Schistad
On Wed, Jun 22, 2011 at 15:24, Cal Leeming [Simplicity Media Ltd] wrote: > We have actually just implemented this on one of our other sites still in > development. The problem with keyword highlighting is you have to be careful > not to enter into infinite 

templatetags and refresh

2011-06-22 Thread Wim Feijen
Hello, At www.mkb-rotterdam.nl we use a template tag to display NewsItems in different formats on the homepage. However, when a new NewsItem is added, it does not appear at once. Might this have to do with the fact that we use a template tag to get the NewsItems out of the db? Our query is:

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

2011-06-22 Thread Thomas Weholt
Yes! I'm in. Out of curiosity: When inserting lots of data, how do you do it? Using the orm? Have you looked at http://pypi.python.org/pypi/dse/2.1.0 ? I wrote DSE to solve inserting/updating huge sets of data, but if there's a better way to do it that would be especially interesting to hear more

Re: Automatic internal link middleware

2011-06-22 Thread Cal Leeming [Simplicity Media Ltd]
Hi Herman, We have actually just implemented this on one of our other sites still in development. The problem with keyword highlighting is you have to be careful not to enter into infinite loops, by ensuring you only match keywords outside of existing HTML tags. Normally I'd just say "figure it

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

2011-06-22 Thread Michał Sawicz
Dnia 2011-06-22, śro o godzinie 14:15 +0100, Cal Leeming [Simplicity Media Ltd] pisze: > If you're interested, please reply on-list so others can see. Sure, I'd attend. -- Michał (Saviq) Sawicz signature.asc Description: This is a digitally signed message part

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

2011-06-22 Thread Cal Leeming [Simplicity Media Ltd]
Hi all, Some of you may have noticed, in the last few months I've done quite a few posts/snippets about handling large data sets in Django. At the end of this month (after what seems like a lifetime of trial and error), we're finally going to be releasing a new site which holds around 40mil+ rows

Re: How does the {% trans %} tag choose translations?

2011-06-22 Thread Fabian Büchler
Thanks Bruno, that was helpful. 2011/6/22 bruno desthuilliers : > Not a direct answer, but this might help you understanding what's > going on: > > https://docs.djangoproject.com/en/1.3/topics/i18n/deployment/#how-django-discovers-translations > > -- > You received

Re: Automatic internal link middleware

2011-06-22 Thread Tim Shaffer
Shouldn't be too hard to implement I don't think. Basically just loop through your list of keywords and replace them with a link. Something like this: def make_keyword_links(content): for keyword in Keyword.objects.all(): content = content.replace(keyword.text, keyword.link)

Re: making instance of auth User results in: maximum recursion depth exceeded while calling a Python object

2011-06-22 Thread T'mas
Thank you very much, you helped me out. I found how stupid I am :). I was calling login() django function from view function called login(). Next time I will post my code. Thanks for advice T. On Jun 22, 1:05 pm, Karen Tracey wrote: > On Tue, Jun 21, 2011 at 12:34 PM,

Automatic internal link middleware

2011-06-22 Thread Herman Schistad
Hi there fellow developers. I'm wondering if anyone has seen an app which does the following: * Finds keywords in the templates, which is defined by the user and then creates internal links to these. Use-case: 1. I create keyword: "Cupcakes" and give it the href/URL property: /info/cupcakes/ in

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

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

2011-06-22 Thread Ethan Jucovy
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 > > https://bitbucket.org/weholt/django-kolibri > > There's a blogpost with two

Re: syncdb error

2011-06-22 Thread Karen Tracey
On Tue, Jun 21, 2011 at 11:24 PM, T4 Phage wrote: > Hello! > > When I run syncdb it returns an error ending in > "_mysql_exceptions.OperationalError: (1050, "Table 'people_person' > already exists")." I know that the table 'people_person' already > exists because I used

Re: making instance of auth User results in: maximum recursion depth exceeded while calling a Python object

2011-06-22 Thread Karen Tracey
On Tue, Jun 21, 2011 at 12:34 PM, T'mas wrote: > sorry. Problem is not User object but login from django.contrib.auth. > > login(request,user) > > You've haven't included any of the traceback from the maximum recursion depth exceeded, nor any of your code, so all anyone

Re: How does the {% trans %} tag choose translations?

2011-06-22 Thread bruno desthuilliers
Not a direct answer, but this might help you understanding what's going on: https://docs.djangoproject.com/en/1.3/topics/i18n/deployment/#how-django-discovers-translations -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Connecting to signals sent by specific senders

2011-06-22 Thread solarg
hello all, i'm trying to follow the official doc: https://docs.djangoproject.com/en/1.3/topics/signals/ I wrote: @receiver(post_save, sender=MyModel) def my_callback(sender, **kwargs): if 'created' in kwargs: if kwargs['created']: print "sender", sender print

Anyone near Portsmouth NH? (Northshore MA/Manchester NH/Portland ME)

2011-06-22 Thread Stacie Andrews
I'm working on a few python/django projects on real-time, low-latency systems. Interested in finding others into artificial intelligence, natural language processing and news sentiment algorithms in the area. - Stacie -- You received this message because you are subscribed to the Google Groups

Re: Django caching not working with SSL(https)

2011-06-22 Thread Anoop Thomas Mathew
Hi all, I figured it out. The problem was with the google analytics cookies which made each cookie different and vary on cookie reloaded cache each time. This snippet helped. http://djangosnippets.org/snippets/1772/ regards, Anoop atm ___ Life is short,

Re: csrf protection and testing with tsung

2011-06-22 Thread Malcolm Box
On 22 June 2011 09:52, Ivan Uemlianin wrote: > > Thanks very much for your help!  You were exactly right.  The > following config works (simplified for exposition). Glad that helped, and thank you for coming back with the working settings for anyone else who runs into the

USE_L10N set to False in settings.py doesn't work (django 1.3)

2011-06-22 Thread jason
Hello all, i set USE_L10N to False in my project's settings.py ( LANGUAGE_CODE = 'zh-CN', USE_I18N = True, USE_L10N = False), but it doesn't work in the template tag {{ pub_date.date }}, e.g. it still trans the date format to my current locale(zh-cn). i want to display the original date

Re: updating a user form?

2011-06-22 Thread Herman Schistad
On Wed, Jun 22, 2011 at 10:14, raj wrote: > If I didn't have the url > set up in this manner, how would I manage to extract the userprofile? If you have the "AuthenticationMiddleware" activated you would use request.user This returns a User object, which you then can use to

How does the {% trans %} tag choose translations?

2011-06-22 Thread Fabian Büchler
Hey everyone, got a little problem with the trans tag: In one of my apps, I've got a translation marker in a template saying "All dates", which is translated in the apps PO file for German (de) to "Alle Termine". But on the frontend I see "Alle Daten", which comes from the German translation

Re: csrf protection and testing with tsung

2011-06-22 Thread Ivan Uemlianin
Dear Malcom Thanks very much for your help! You were exactly right. The following config works (simplified for exposition). Best wishes Ivan On Jun 21, 5:54 pm, Malcolm Box wrote: > On 21 June 2011 16:48, Ivan Uemlianin

Re: Form wizard

2011-06-22 Thread Kevin Renskers
The documentation on https://docs.djangoproject.com/en/1.3/ref/contrib/formtools/form-wizard/ is pretty clear. The part where you're going in the wrong direction is the url config. Compare with

Re: Django EmailMultiAlternatives with Embadded Image in HTML

2011-06-22 Thread Kevin Renskers
If I google on "django html email inline image" I see multiple solutions. None of them worked? Seems unlikely to me... -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Is multiple inheritance with abstract model classes ok?

2011-06-22 Thread Kevin Renskers
Perfectly fine! -- 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/-/6Vp_0w_sz_cJ. To post to this group, send email to django-users@googlegroups.com. To

Re: WMD-editor: Where's wmd/urls.py?

2011-06-22 Thread Kevin Renskers
I think it's an error in the documentation. Since there are no views, it's probable that there are no urls as well. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: set language from user lang in DB?

2011-06-22 Thread Kevin Renskers
from django.utils import translation translation.activate(language_code) See also http://stackoverflow.com/questions/2336785/set-language-within-a-django-view -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web

Re: how to display form data with original values after validation failure?

2011-06-22 Thread Kevin Renskers
If I understand this correctly, then you want something like this? 1) Show a form to edit something 2) User changes fields, submits the form 3) If the form was not valid, not only show the errors and the form with the entered values, but also the *old* values, pre-edit. I think your best bet is

Re: updating a user form?

2011-06-22 Thread raj
This is an interesting way of doing it. I don't have it set up so that every user has their own url that contains their db id. Django checks to see if the user is authenticated or not. If I didn't have the url set up in this manner, how would I manage to extract the userprofile? I was seeing

Re: updating a user form?

2011-06-22 Thread Kevin Renskers
I'd advise you to read https://docs.djangoproject.com/en/1.3/topics/auth/#storing-additional-information-about-users. So, create a separate model for the profile, which can be edited by the user once he is logged in. -- You received this message because you are subscribed to the Google

Re: csrf token driving me crazy

2011-06-22 Thread Kevin Renskers
The documentation about CSRF and AJAX was already linked: https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax The note about backwards incompatibility can be found here: https://docs.djangoproject.com/en/1.3/releases/1.3/#csrf-validation-now-applies-to-ajax-requests -- You received

Re: MemoryError

2011-06-22 Thread Gagan (GPS)
I tried to work around the plotting code and the MemoryError seams to have resolved itself. Apparently there was some problem with the data handling. On Jun 22, 2:50 pm, "Gagan (GPS)" wrote: > Hi, > > I am building a website that can access data from my server, plot it >

Re: Upcoming Django conference in Asia Pacific

2011-06-22 Thread Kenneth Gonsalves
On Wed, 2011-06-22 at 14:08 +0800, Russell Keith-Magee wrote: > > Do we have any upcoming Django conference in Asia Pacific region or > any > > Django conference at all here? > > There is usually a Django presence (i.e., a core developer or two, a > few talks, and many Django users) at PyCon.AU,

MemoryError

2011-06-22 Thread Gagan (GPS)
Hi, I am building a website that can access data from my server, plot it and present it in a pdf format. I am experiencing the following error and am unable to understand what to do. Kindly help. Traceback (most recent call last): File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run

Re: updating a user form?

2011-06-22 Thread Herman Schistad
On Wed, Jun 22, 2011 at 08:28, raj wrote: > I'm trying to create an update_profile form. This form will be able to > update extended user information that is not in the original form. > > So, I have a form that allows you to create an account. There a lot of > other fields

updating a user form?

2011-06-22 Thread raj
I'm trying to create an update_profile form. This form will be able to update extended user information that is not in the original form. So, I have a form that allows you to create an account. There a lot of other fields that aren't listed in this form. The rest of these fields will be found

Re: Upcoming Django conference in Asia Pacific

2011-06-22 Thread Russell Keith-Magee
On Wed, Jun 22, 2011 at 1:59 PM, Dealshelve Team wrote: > Hey guys, > > Do we have any upcoming Django conference in Asia Pacific region or any > Django conference at all here? There is usually a Django presence (i.e., a core developer or two, a few talks, and many Django