Using shell to add images

2009-09-22 Thread Timboy
Having issues saving model from within the shell. Using File from from django.core.files import File http://pastebin.com/f3030ca1e Tried this several different ways... TIA --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: django twisted model

2009-05-21 Thread Timboy
Anyone familiar with using twisted and hooking it to a model? On May 16, 8:55 pm, Timboy <corn13r...@gmail.com> wrote: > I am looking to make a webmail client proof of concept in django. I > ran across twisted mail and this > post:http://clemesha.org/blog/2009/apr/23/Django-o

Re: Separate User namespace

2009-05-20 Thread Timboy
; namespaces per se ;) > > On May 20, 1:09 am, Timboy <corn13r...@gmail.com> wrote: > > > Initially we will have in the ballpark of 10,000 Private users. Anyone > > have an idea on an additional user namespace? > > > On May 19, 8:42 am, Aneesh <aneeshvkulka...@

Re: Separate User namespace

2009-05-19 Thread Timboy
or all Users, and making some profiles > public/private.  A couple usernames will be taken, but that shouldn't > be a big deal. > > If you actually want a second namespace, I'm not sure of the best way > to proceed. > > On May 18, 9:28 pm, Timboy <corn13r...@gmail.com>

Separate User namespace

2009-05-18 Thread Timboy
I have a normal User model for our private users of our project we also have a UserProfile for those users. We need to have a public portion of our site as well with a separate user namespace. Please advise the best way to achieve our goal. TIA

django twisted model

2009-05-16 Thread Timboy
I am looking to make a webmail client proof of concept in django. I ran across twisted mail and this post: http://clemesha.org/blog/2009/apr/23/Django-on-Twisted-using-latest-twisted-web-wsgi/ showing how to use django on twisted. Can anyone point me in the right direction for actually getting

Re: Custom primary key

2009-04-29 Thread Timboy
Thank you for your time and response Malcom, I appreciate it very much. On Apr 29, 3:42 pm, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Wed, 2009-04-29 at 15:37 -0700, Timboy wrote: > > I am trying to make a pk for an object that starts with the year > &

Custom primary key

2009-04-29 Thread Timboy
I am trying to make a pk for an object that starts with the year followed by seven additional digits. YYXXX I want the digits to automatically increase like normal. I'm guessing I need to pass force_insert=True to my save if not self.pk. I'd appreciate some advice. TIA

Re: automatic updates for a set of model objects via email

2009-04-27 Thread Timboy
way to cross reference the new ones and the best way to handle the notifications that the specific VehicleSearch was updated with N new vehicles and there were changes to N vehicles. TIA On Apr 23, 10:42 pm, Timboy <corn13r...@gmail.com> wrote: > Let me be more specific to my needs: >

Re: how to handle database down time gracefully?

2009-04-24 Thread Timboy
I'm interested as well. You'd want to have a 500 with a nice unexpected maintanence message. On Apr 24, 4:51 am, realfun wrote: > Hi, > > I build a website(fayaa.com) on Bluehost using Django, but this month > database down 3 times, during that period, user can only see an >

Re: automatic updates for a set of model objects via email

2009-04-23 Thread Timboy
? Thanks. On Apr 23, 10:20 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Fri, Apr 24, 2009 at 1:15 AM, Timboy <corn13r...@gmail.com> wrote: > > > I want my users to be able to be updated for changes to specific > > models objects. > > > Let's say a

automatic updates for a set of model objects via email

2009-04-23 Thread Timboy
I want my users to be able to be updated for changes to specific models objects. Let's say a user does a search of vehicle listings and the search returns 3 cars. I want them to be able to be alerted when any of those three car listings get updated. What's the best way to accomplish this? TIA

Re: Multi Page Form With Database Persistence

2009-04-23 Thread Timboy
Well I really want the data to post to the database at the same time as well. Thanks n e way but I'll just re-write the form wizard to do what I want. On Apr 23, 9:51 pm, Timboy <corn13r...@gmail.com> wrote: > I basically want to be able to skip to a specific step in the form > wi

Re: Multi Page Form With Database Persistence

2009-04-23 Thread Timboy
I basically want to be able to skip to a specific step in the form wizard process. On Apr 20, 5:56 pm, Timboy <corn13r...@gmail.com> wrote: > I need to create a multiple page form that upon submit the information > is saved to the database so the user can finish it later. > >

Re: django forms validation with choice and m2m fields

2009-04-23 Thread Timboy
Thank you very much Alex! On Apr 23, 9:28 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Fri, Apr 24, 2009 at 12:25 AM, Timboy <corn13r...@gmail.com> wrote: > > > Does this data get checked to make sure that it is what was on the > > form? > > > If I h

django forms validation with choice and m2m fields

2009-04-23 Thread Timboy
Does this data get checked to make sure that it is what was on the form? If I have a list of choices 1,2,3 and someone modifies the form to add a # 4 and chooses that will django forms catch it or do I need to make sure on every one of my fields that the entered value is what was in the list?

Multi Page Form With Database Persistence

2009-04-20 Thread Timboy
I need to create a multiple page form that upon submit the information is saved to the database so the user can finish it later. I want to be able to check the data filled out on the form and depending on the values entered present different pages to the user. I know this is possible, I just

Re: how to use email instead of username for user authentication?

2009-04-02 Thread Timboy
What's the best way to add users with an auto generating username? ie: Taub.John, Smith.Tim, Smith.Tim2 On Apr 1, 3:37 am, johan.u...@student.hpi.uni-potsdam.de wrote: > Best way is to write your own authentication backend I think. > > Check the >

Re: How to create ability to send email from the admin with django?

2009-04-02 Thread Timboy
In two lines: from django.core.mail import send_mail send_mail('Subject here', 'Here is the message.', 'f...@example.com', ['t...@example.com'], fail_silently=False) Mail is sent using the SMTP host and port specified in the EMAIL_HOST and EMAIL_PORT settings. The EMAIL_HOST_USER and

Re: persistent get url question

2009-03-26 Thread Timboy
I figured it out. I passed the requested calendars to my template and used a forloop to pass them as a get request to the URL. On Mar 26, 4:23 pm, Timboy <corn13r...@gmail.com> wrote: > I've created a calendar view and users can select multiple calendars > with checkboxe

persistent get url question

2009-03-26 Thread Timboy
I've created a calendar view and users can select multiple calendars with checkboxes. It passes this: ? calendars=CALNAME=CALNAME2=CALNAME2 to the url and returns the proper events but when I change months it goes back to the default calendar... how can I make the selected calendars persistent?

Re: wondering how to do something similar to save_model for inline.

2009-01-07 Thread Timboy
call formset.save_m2m() to ensure the many-to-many relationships are saved properly." Works now just had it in the wrong spot. thx! On Jan 6, 9:23 pm, "Karen Tracey" <kmtra...@gmail.com> wrote: > On Tue, Jan 6, 2009 at 10:10 PM, Timboy <corn13r...@gmail.com> wrote: > >

Re: wondering how to do something similar to save_model for inline.

2009-01-06 Thread Timboy
Still no solution to this. It has been confirmed by another user. Is it a bug? On Dec 29 2008, 2:33 pm, Timboy <corn13r...@gmail.com> wrote: > DB is sqlite3. Deleted DB file syncd and still same traceback. > here is proper traceback paste:http://dpaste.com/103517/ > > On Dec 28

Re: wondering how to do something similar to save_model for inline.

2008-12-29 Thread Timboy
DB is sqlite3. Deleted DB file syncd and still same traceback. here is proper traceback paste: http://dpaste.com/103517/ On Dec 28, 9:10 pm, Praveen <praveen.python.pl...@gmail.com> wrote: > This is your database error.. > > On Dec 28, 8:32 am, Timboy <corn13r...@gmail.com&g

Re: wondering how to do something similar to save_model for inline.

2008-12-27 Thread Timboy
Great link. I was really excited to try it. Here is my new inline: class rentalInline(admin.TabularInline): model= Rent extra = 3 raw_id_fields = ('movie',) exclude = ['rented_by'] def save_formset(self, request, form, formset, change): instances =

wondering how to do something similar to save_model for inline.

2008-12-27 Thread Timboy
I have an admin object where I want to pass in the request.user on save. It works fine in my normal admin class but not for the inline version. (works fine here): class RentAdmin(admin.ModelAdmin): exclude = ['rented_by'] list_display = ('renter', 'movie', 'late', 'owed', 'paid',

Re: How do wire Userprofile to UserAdmin ?

2008-12-09 Thread Timboy
The problem with this solution is that you are unable to sort and/or filter by anything you "wire" to the User admin page. #9463 is one I have posted a bit ago. On Dec 9, 9:43 am, "Ronny Haryanto" <[EMAIL PROTECTED]> wrote: > On Tue, Dec 9, 2008 at 8:58 PM, mahesh <[EMAIL PROTECTED]> wrote: > >

Django storage method question

2008-12-09 Thread Timboy
I'm having an issue passing a buffered StringIO to the FileField object. Here is my code: ##models.py from django.db import models from business.models import Business class PdfFile(models.Model): business = models.ForeignKey(Business) pdf = models.FileField(upload_to='get_pdf_path')