Re: Tracking Row changes

2011-02-24 Thread elijah rutschman
On Thu, Feb 24, 2011 at 2:54 PM, Andre Terra  wrote:
> Hello everyone,
> I'd like to log user changes to MyModel in an app I'm writing. What are some
> third-party solutions that you recommend for this?

django-activity-stream might meet your needs.
https://github.com/justquick/django-activity-stream

Regards,
Elijah

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to use tkinter widget in django

2010-10-26 Thread elijah rutschman
>         min="0"
>       max="1000"
>       step="2"
>       value="6" id="id_user_entry"/>

Try adding a name="user_entry" attribute to the input.

-- 
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 this group at 
http://groups.google.com/group/django-users?hl=en.



Re: python manage.py runserver - can't see error stack traces when an Ajax handler throws an exception

2010-09-07 Thread elijah rutschman
On Tue, Sep 7, 2010 at 5:10 PM, Phlip  wrote:
>
> Djangoists:
>
> Under runserver, when I click on an Ajaxy thing on my web site, and
> its handler throws an exception...
>
> ...the console says nothing (in DEBUG = True mode)
>
> ...and Django renders a beautiful HTML exception report
>
> ...and sends this over the wire into my browser
>
> ...who then throws it away because it's not Ajax
>
> ...and I must dig it out with a developer toolkit tool
>
> ...and paste it into a file yo.html
>
> ...and render this in a browser
>
> ...to see the actual error.
>
> I'm probably missing some configuration option, subsidiary to DEBUG
> mode. (v1.2, BTW)
>
> How do I get Ajax errors to print a simple exception trace to STDOUT,
> instead of going through all that baloney?

Use middleware that has a 'process_exception' method defined.
http://docs.djangoproject.com/en/dev/topics/http/middleware/#process_exception

This snippet is simple and does the trick:
http://djangosnippets.org/snippets/420/

-Elijah

-- 
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 this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Unistall an App

2010-08-27 Thread elijah rutschman
On Fri, Aug 27, 2010 at 3:31 PM, nobosh  wrote:
> I ran python setup.py install to install an emailauth app as Im
> working to create an auth that is email/password based.
>
> http://github.com/redvasily/django-emailauth
>
> I'm still working to get it installed and working, and would like to
> uninstall the module because when I create a project and go to create
> an app emailauth I get the following error:
>
> "Error: 'emailauth' conflicts with the name of an existing Python
> module and cannot be used as an app name. Please try another name."
>
> I'd like to uninstall emailauth so I can copy the directory into my
> project folder and hopefully find a way to use it as an app.
>
> Does that sound right? How do you uninstall an app?

What I usually do to remove a Python module is something like:
>>> import emailauth
>>> print emailauth.__file__

That will give me the path to that package or module, and I just
delete the corresponding file or folder.

-- 
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 this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Log errors to file

2010-07-07 Thread elijah rutschman
You could implement a middleware class with a process_exception
method.  See: 
http://docs.djangoproject.com/en/dev/topics/http/middleware/#process_exception

-Elijah

On Wed, Jul 7, 2010 at 4:35 PM, Jonathan Hayward
 wrote:
> I'm working on a view made to output JSON for Ajax use. My log has:
> [07/Jul/2010 17:47:13] "POST /ajax/login HTTP/1.1" 500 50678
> That looks like Django gave a helpful and detailed stacktrace page, albeit
> to jQuery expecting JSON.
> How can I ask Django to log uncaught exceptions to a file or equivalent? The
> test server has no MTA so I can't really ask it to email me exceptions.
>
> TIA,
> --
> → Jonathan Hayward, christos.jonathan.hayw...@gmail.com
> → An Orthodox Christian author: theology, literature, et cetera.
> → My award-winning collection is available for free reading online:
> ☩ I invite you to visit my main site at http://JonathansCorner.com/
>
> --
> 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 this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Dajaxice with Jquery issue

2010-04-14 Thread elijah rutschman
One solution would be to attach your click event handler later, using an
anonymous function instead of an inline onClick attribute.

$('').appendTo('.routelist').click(function(){
Dajaxice.maps.reservation('reservation_callBack'); });

On Wed, Apr 14, 2010 at 10:02 AM, Alexis Selves wrote:

> Hi everyone,
> I am trying to use dajax with jquery. I am dynamicaly making forms
> with Jquery and  each contains button with dajax reference.
> $(".routelist").append(" onClick='Dajaxice.maps.reservation('reservation_callBack')'">
> with this i get syntax error.
> I am trying this:
> $(".routelist").append(" onClick='Dajaxice.maps.reservation(reservation_callBack)'">
> no ' ' in Dajaxice.maps.reservation(reservation_callBack). This works,
> but I can't add any variables to send to server.
>
> Please help me.
>
> Thanks everyone for reading.
>
> --
> 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 this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 this group at 
http://groups.google.com/group/django-users?hl=en.