Re: current transaction is aborted, commands ignored until end of transaction block

2013-05-30 Thread ryan west
Hi Andreas, The reason that you are seeing this likely is because of a bug in the way django handled Postgres autocommit. This has been documented here: https://docs.djangoproject.com/en/dev/releases/1.5/#behavior-of-autocommit-database-option-on-postgresql-changed Regards, Ryan On Friday,

Re: Django - Tastypie update

2013-05-30 Thread ryan west
Are you using a PUT request to make this change? If you are making a PUT request, as far as I know, Tastypie will attempt to replace the resource with what you are sending. If you only want to update 1 field on the resource, look at making a PATCH request. On Thursday, May 30, 2013 6:10:33 AM

Re: Best practices to create multiple users profiles using Auth

2011-09-27 Thread ryan west
I actually just wrote a blog post about why I think extending contrib.auth.models.User is a better solution to using a OneToOneField (or a ForeignKey), you can find it here: http://ryanwest.info/blog/2011/django-tip-5-extending-contrib-auth-models-user/ Please let me know what you think.

Re: absolute url in template and url name

2010-11-24 Thread ryan west
if you have a view let's say views.activate that corresponds to the URL at let's say /account/activate/2, you can use the template tag {% url views.activate params_for_url_capturing %} Cheers On Nov 24, 8:01 am, robos85 wrote: > Hi, > I'm writing an email sending module based

Re: No stylesheet in administration panel

2010-05-18 Thread ryan west
Just a django noob, but are you sure that the path for media is set correctly in your settings.py file? For instance, my media settings look like: MEDIA_ROOT = '/home/ryanisnan/ryanwest.info/public/media' MEDIA_URL = '/media/' ADMIN_MEDIA_PREFIX = '/media/' It could be that your MEDIA_ROOT are

Re: Installing 3rd party django applications on a shared environment

2010-05-18 Thread ryan west
Hey Tom, Any idea why ./activate would be failing "Permission Denied"? Ryan -- 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

Re: Installing 3rd party django applications on a shared environment

2010-05-18 Thread ryan west
Thanks Tom, I'll have a look at that. Ryan > > Google for virtualenv. > > Cheers > > 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

Installing 3rd party django applications on a shared environment

2010-05-18 Thread ryan west
Disclaimer: This may be more of a python/shared hosting issue, but alas I'm posting here. Hey all, I'm currently just trying to install some 3rd party django apps so I can use them in my project. I already have django up and running, I'm hosting on Dreamhost using passenger. I don't have my

Re: Django Project & App Structure

2010-05-14 Thread ryan west
Hey Scott, thanks for the reply! I just figured that out the hard way actually, but I appreciate your response. My new directory structure now looks like: /home/website/djangoprojects/mydjangoproject/ --- / manage.py

Django Project & App Structure

2010-05-13 Thread ryan west
So, I apologize for another topic focused on Django project and app structure, but every resource I've found is either outdated or incomplete. What I am trying to accomplish is the creation & incorporation of pluggable django applications that are NOT dependent in ANY way on the project that uses

Re: ValueError on deleting a model object with an ImageField through Admin Interface

2010-05-13 Thread ryan west
I found the solution to my own problem. When the page was reloading, I am guessing that the actual entity had not been deleted yet, and the method __unicode__(self) was being called, requesting access of self.image (which did not exist, because that HAD been deleted). A simple modification to

ValueError on deleting a model object with an ImageField through Admin Interface

2010-05-13 Thread ryan west
I'm having a silly issue with the admin interface and an ImageField in one of my models. A simple model I have contains an ImageField, and many objects of this model are related to some other model (Project, not shown). I can add/view images just fine, but when I try to delete an image, I get a