Catching the autogenerated admin post

2011-09-29 Thread bazaarsoft
Hello - I'm new to Django and love what I see so far. I have the need to "catch" the admin post for one of my models: essentially, the model contains a file and from the file I want to extract data for some of the other model fields that are required for that particular model. So, can I "break" int

Re: Django image upload

2011-10-06 Thread bazaarsoft
> Also, I'm confused whether upload_to should be set in settings.py or > models.py It's actually a mix - if you have MEDIA_ROOT defined in settings.py, then it will use that as the first part of the path. Then, what you pass in the upload_to field will be appended to that. So, in my case, I have "

Re: Django image upload

2011-10-06 Thread bazaarsoft
Noticed a couple of typos in my reply: > I have "MEDIA_ROOT = '/Users/storefiles/' in my settings.py folder, file, not folder > and the upload_to param in my model set to 'pluginFiles/%Y/%m/%H/%M/'. is actually 'pluginFiles/%Y/%m/%d/%H/%M/' jay On Oc

Re: No module named django after upgrade to os x Lion

2011-10-27 Thread bazaarsoft
Mac OS has always carried multiple Python installs. You can start python using python2.5, python2.6, and on Lion python2.7. Those installs are under /System/Library/Frameworks/Python.framework/ but links to the executables are in /usr/bin/. When you install Python packages, they get installed in /

User Profile Creation

2011-12-15 Thread bazaarsoft
In all the examples I've seen of creating the user profile at the time a User is created, I always see the use of the signal and the profile table's fields (except for user) have to be nullable. I don't see a way to break in to the creation process using the signal scheme such that you can pass in

Successful login to go back to the page login was initiated from

2011-12-16 Thread bazaarsoft
I have what appears to be an odd case - I have a login link on a bunch of pages (logout if you're already logged in). What I want is to use the built-in contrib.auth stuff to handle the login, but I want it to take me back to the originating page once the user gets logged in correctly. Unfortunatel

Re: Successful login to go back to the page login was initiated from

2011-12-16 Thread bazaarsoft
Never mind, found the answer: http://efreedom.com/Question/1-806835/Django-Redirect-Previous-Page-Login My Google-fu must be off today. On Dec 16, 6:00 pm, bazaarsoft wrote: > I have what appears to be an odd case - I have a login link on a bunch > of pages (logout if you're alread