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
> 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 "
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
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 /
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
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
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
7 matches
Mail list logo