Hello everyone,
I've implemented a custom backend to use an email address instead of a
username. Unfortunately, this prevents me from using the built-in User
change form within admin.
I'm looking for a way to override the username form field with my own
field, or at least change the validation o
I am one of the authors of Tornado (http://www.tornadoweb.org/), the
web server/framework we built at FriendFeed that we open sourced last
week (see http://bret.appspot.com/entry/tornado-web-server).
The underlying non-blocking HTTP server is fairly high performance, so
I have been working this w
Hi everyone,
I would like to do some obscenity filtering on posts, and I see there
is a setting: PROFANITIES_LIST
But, how to I invoke the hasNoProfanities validator? I searched the
django source code for this, but the only thing I could find was the
setting in conf > global_settings.py
I'd app
Hi everyone,
After following the custom build instructions for MySQL from
Hivelogic, http://hivelogic.com/articles/compiling-mysql-on-snow-leopard/
MySQL is running just fine.
However, I can't get MySQL-Python 1.2.3c1 to compile. I have re-
installed Xcode for 10.6, but I get an error trace a mi
Hi Everyone,
I'm running Jython 2.5.0 and Django 1.0.3 on OS X Snow Leopard.
Having an issue connecting to Postgres. I can create and run a project
fine, but attempting to connect to a database using the django-jython
database backend - doj.backends.zxjdbc.postgresql, throws the error:
zxJDBC.D
Question:
I have an imagefield that i want to create a thumbnail for on approval
of the image. The problem is (setup is 2 django instances, load
balancer and DB) if the image is stored on one machine it's not the
cleanest solution to have to get the image from the other server and
process it. Is
The reason I'm trying it is due to a requirement, the data rather than
being sent using a normal post request in a multienc form has to be sent
over in a json string
in the post request containing the base64 encoded image.
On Mon, 2009-08-24 at 18:38 +0200, Maksymus007 wrote:
> On Tue, Aug 4, 200
Did you find a way to do this? I'm having the same problem.
Lewis
On Aug 4, 9:58 pm, scuzz wrote:
> Hi,
>
> I'm trying to receive a file encoded in a json string and store it in
> an ImageField. I was hoping to use the standard Django deserialisation
> like:
>
> serializers.deserialize("json",
Hi everyone,
I'm getting this exception with the latest Django-Jython and
Jython2.5:
wks-btaylor:test_project btaylor$ jython manage.py runserver
Validating models...
Unhandled exception in thread started by
Traceback (most recent call last):
File "/Users/btaylor/jython2.5.0/Lib/site-packages
Hi everyone,
Does anyone know of a way to mimic the functionality Rails has to set
up a URL pattern to receive emails and handle attachments, such as
photos?
TIA,
Brandon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
Hi everyone,
I created a new project through jython/django-admin.py and now I'm
receiving this error when attempting to start the development server
using jython...
iMac:musaic bt$ jython manage.py runserver
Traceback (most recent call last):
File "manage.py", line 4, in
import settings #
Hello everyone,
I'm getting a Jython environment set up, and have it installed and
working properly. Now it's time to install django-jython and django
itself.
The problem is, I can't install django-jython because I don't have
distutils installed for Jython. I also can't seem to find distutils
AN
Hi everyone,
I'm looking into Grappelli's awesome admin interface, but my login is
missing any sort of branding, and it looks like I'd have to override
their template and add some CSS to fix it. Am I just missing
something? or are other people seeing the same thing?
Kind regards,
Brandon
--~--~-
Hi Everyone,
I'm using Django trunk, Python 2.6.
I have a model form with a FileField. The relevant portions of the
HTML are:
{{ job_seeker_form.resume }}
{{ job_seeker_form.resume.label_tag }}
{{ job_seeker_form.resume.help_text }}
{{ job_seeker_form.resume.errors }}
In my v
I was modifying the form submission with some Ajax code that busted
the filter_horizontal apparently. Preventing the default action of the
form with jQuery is not a good idea :)
On May 4, 10:41 am, Brandon Taylor wrote:
> Hi George,
>
> I wonder what the deal is then. I've noticed
until it
breaks.
On May 4, 10:30 am, George Song wrote:
> On 5/4/2009 8:24 AM, Brandon Taylor wrote:
>
> > filter_vertical also appears to be suffering the same problem.
>
> > On May 4, 10:23 am, Brandon Taylor wrote:
> >> Hi everyone,
>
> >> When I
filter_vertical also appears to be suffering the same problem.
On May 4, 10:23 am, Brandon Taylor wrote:
> Hi everyone,
>
> When I specify filter_horizontal for any ManyToMany field on a model
> using Django trunk, and that field is required, admin will not allow
> me to save th
Hi everyone,
When I specify filter_horizontal for any ManyToMany field on a model
using Django trunk, and that field is required, admin will not allow
me to save the choice(s). it will tell me the field is required, no
matter how many choices I select.
If I remove the filter_horizontal, and I ma
Ugh. My pastie was bad - had multiple versions of the same file open,
and didn't get the most recent one: http://dpaste.com/34983/
On Apr 17, 3:54 pm, Brandon Taylor wrote:
> Hi Alex,
>
> Thanks for the reply. Here's the link:http://dpaste.com/34979/
>
> b
>
>
Sorry Alex, my bad. I see the error. Doh!
On Apr 17, 3:54 pm, Brandon Taylor wrote:
> Hi Alex,
>
> Thanks for the reply. Here's the link:http://dpaste.com/34979/
>
> b
>
> On Apr 17, 3:50 pm, Alex Gaynor wrote:
>
> > On Fri, Apr 17, 2009 at 4:48 PM, Br
Hi Alex,
Thanks for the reply. Here's the link: http://dpaste.com/34979/
b
On Apr 17, 3:50 pm, Alex Gaynor wrote:
> On Fri, Apr 17, 2009 at 4:48 PM, Brandon Taylor
> wrote:
>
>
>
> > Hi everyone,
>
> > I have an abstract model called Page. Two class
Hi everyone,
I have an abstract model called Page. Two classes inherit this, and
there is a ManyToMany field on Page. syncdb is creating the
intermediary tables correctly, and admin shows me the correct values
to the related model.
But, when I go to save the record, none of the m2m data is getti
Well, I'm not sure what the matter was, maybe some bad cache or
something, but the problem seems to have corrected itself. Weird!
On Apr 13, 12:06 pm, Brian Neal wrote:
> On Apr 13, 11:47 am, Brandon Taylor wrote:
>
>
>
> > Hi everyone,
>
> > I need a sanity
f I put a print statement in there to print the 'value' variable
handed to the 'to_python' function, it doesn't return None or the
value, in fact it prints an empty line, which is making me think it's
an empty string...?
b
On Apr 13, 12:06 pm, Brian Neal wrote:
Hi everyone,
I need a sanity check here. I'm using a jQueryUI DatePicker, with the
dateFormat option set to 'yy-mm-dd', which is returning a date in -
MM-DD format, if I check my request.POST values.
I have a DateField - "effective_from", on my model, and am using a
corresponding ModelForm.
Hi everyone,
I'm using an inline formset on a model. I have some jQuery that adds
an additional form to the page, and augments the TOTAL_FORMS parameter
by 1.
The problem is that the dynamically added form is not present in the
collection of forms when I save the formset. All of the name and ID
I have confirmed that it also works as expected with cx_Oracle-5.0.1
Woohoo
On Mar 24, 2:14 pm, Brandon Taylor wrote:
> After much digging, I was able to find the problem. In fields.py in
> django-tagging, the tags are pulled from cache when they are saved,
> rather than going ba
his also does not break compatibility
with other DB types for me. Last step will be to replace my
cx_Oracle-4.4.1 driver with the latest 5.0.1, and see if it still
works.
Hope this helps someone out!
Cheers,
Brandon
On Mar 23, 5:40 pm, Brandon Taylor wrote:
> Hi Ian,
>
> I'm not th
Hi everyone,
I'm following this tutorial for recursion in templates:
http://www.undefinedfire.com/lab/recursion-django-templates/
Here is my model:
#models.py
class Category(models.Model):
parent = models.ForeignKey('self', blank=True, null=True)
name = models.CharField(max_length=50)
ly wrote:
> On Mar 23, 1:52 pm, Brandon Taylor wrote:
>
> > Hi Everyone,
>
> > Is anyone having issues with Django Tagging (svn) not updating tags on
> > an existing model? I'm running cx_Oracle-4.4.1 - thanks to (Ian Kelly)
> > and Django Trunk.
>
> H
Hi Everyone,
Is anyone having issues with Django Tagging (svn) not updating tags on
an existing model? I'm running cx_Oracle-4.4.1 - thanks to (Ian Kelly)
and Django Trunk.
I can add tags when a model instance is created, but update/delete is
not working.
TIA,
Brandon
--~--~-~--~~--
Downgrading to cx_Oracle-4.4.1 solved the problem. Now I can use the
tagging.fields TagField() as expected and everything shows up
correctly in the admin.
b
On Mar 20, 4:15 pm, Brandon Taylor wrote:
> Hmm. I might downgrade my cs_Oracle and see if that makes a
> difference. I double-chec
5.0.1. Lord knows I had enough issues getting it to
install. Wouldn't surprise me at all if there's something messed up in
it.
Thanks for taking the time to help, I sincerely appreciate it. I'll
post my findings later.
Cheers,
b
On Mar 20, 3:33 pm, Ian Kelly wrote:
> On Mar 20,
Ugh, sorry, that's: fields.py, not forms.py
On Mar 20, 2:54 pm, Brandon Taylor wrote:
> When you say "fixed the import" how so? I'm not seeing where I can
> import TagField from any other location in tagging other than
> forms.py.
>
> On Mar 20, 2:52 pm, Bra
When you say "fixed the import" how so? I'm not seeing where I can
import TagField from any other location in tagging other than
forms.py.
On Mar 20, 2:52 pm, Brandon Taylor wrote:
> Hmm. Well, I guess the only thing left to ask is what version of
> Django and Tagging yo
Hmm. Well, I guess the only thing left to ask is what version of
Django and Tagging you're running?
I'm using Oracle 10g, cx_Oracle-5.0.1, Django and Tagging from svn.
Other than that, I'm at a loss :)
b
On Mar 20, 2:12 pm, Ian Kelly wrote:
> On Mar 20, 12:08 pm, Bra
iding tags: tags =
TagField() does not invoke any of the Tagging functionality for me.
b
On Mar 20, 11:49 am, Brandon Taylor wrote:
> Hmm. Curious. The exact same code works with MySQL and SQLite3 for me.
>
> Oh well, let me switch it up and see if it's happy.
>
> Kind regards,
&g
Hmm. Curious. The exact same code works with MySQL and SQLite3 for me.
Oh well, let me switch it up and see if it's happy.
Kind regards,
b
On Mar 20, 11:37 am, Ian Kelly wrote:
> On Mar 20, 8:26 am, Brandon Taylor wrote:
>
> > Hi Ian,
>
> > Thanks for the respons
t get a "tags"
varchar added to the ActivityCode table, however it will add the
Tagging application tables to the schem, which it's picking up from
installed_apps form settings.py.
Thoughts?
Brandon
On Mar 19, 4:01 pm, Ian Kelly wrote:
> On Mar 19, 9:21 am, Brandon Taylor wrote:
&
Hi Everyone,
I'm using the svn checkout of Django-Tagging and Django-Trunk. Tagging
is working perfectly for me with any other database except, of course,
Oracle, which is what I need it to work in.
I can't get the TagField() to show up in the admin at all without
adding a custom form for my Mod
6, 6:53 pm, Malcolm Tredinnick
wrote:
> On Mon, 2009-03-16 at 08:48 -0700, Brandon Taylor wrote:
> > Hi everyone,
>
> > I'm running Python 2.6.1, Django Trunk.
>
> > I have a model (Entry) with a ManyToMany (Categories). I need to be
> > able to iterate over these
Hi everyone,
I'm running Python 2.6.1, Django Trunk.
I have a model (Entry) with a ManyToMany (Categories). I need to be
able to iterate over these categories whenever my parent model is
saved.
I've tried overriding save_model in the admin, and adding a post_save
signal to Entry in order to be
db_column='TITLE')
class Meta:
verbose_name = 'CSU Code'
verbose_name_plural = 'CSU Codes'
ordering = ['department']
managed = False
db_table = 'LU_CSU_CODE'
def __unicode__(self):
return sel
Hi everyone,
Is there something special I need to know in order to select records
from a view in Oracle? My user has select permissions on the schema in
question.
When I output the SQL from the connection, everything looks in order.
I'm using Django trunk, Python 2.6.1 and cx_Oracle-5.0.1
TIA,
7, 10:26 pm, Jacob Kaplan-Moss
wrote:
> On Sat, Mar 7, 2009 at 11:14 PM, Brandon Taylor
> wrote:
> > When I attempt to pass a keyword arg to it:
>
> > models.signals.post_save.connect(scrub_directory, sender=TheModel,
> > {'my_kwarg' : 'some_value'
Hi everyone,
Syntax trouble. My post_save signal is defined as:
def scrub_directory(sender, instance, **kwargs):
pass
When I attempt to pass a keyword arg to it:
models.signals.post_save.connect(scrub_directory, sender=TheModel,
{'my_kwarg' : 'some_value'})
I get a syntax error: keyword
Wonderful! Thank you so much for the help.
Brandon
On Mar 6, 3:24 pm, Rajesh D wrote:
> > I'm working on some code to scrub an images directory of anything not
> > currently stored in the database, and would like to de-couple some
> > things. I'm using signals, passing in an instance of a model
Hi everyone,
I'm working on some code to scrub an images directory of anything not
currently stored in the database, and would like to de-couple some
things. I'm using signals, passing in an instance of a model that I
would like to be able to grab some data from, namely, the 'upload_to'
parameter
Hi Alex,
Actually, the 'user_profile' app is the last one in my list. I can't
explain why it works on a previously developed site using Django trunk
and not this one.
Brandon
On Mar 3, 11:54 am, Alex Gaynor wrote:
> On Tue, Mar 3, 2009 at 12:41 PM, Brandon Taylor
> wr
Hi everyone,
Not sure what's up here, the same code works on another site.
Basically what I'm doing is adding an inline model form to the User
change form...
from django.db import models
from django.contrib import admin
from django.contrib.auth.models import User
from django.contrib.auth.admin i
Hi everyone,
I've had pretty good success with TinyMCE/django-admin-uploads so far,
but FCKEditor is boasting Python integration. Sure would be nice to
get built-in file handling support for Images, Flash, etc without
having to integrate any other 3rd party apps.
Has anyone been able to integrat
Hi Karen,
5.0.1 just came out a few days ago. Upgrading solved the issue and now
I can get connected to Oracle. Woohoo.
b
On Feb 20, 11:44 am, Karen Tracey wrote:
> On Fri, Feb 20, 2009 at 10:52 AM, Brandon Taylor
> wrote:
>
>
>
>
>
> > Hi everyone,
>
> >
Matt Boersma wrote:
> On Tue, Feb 24, 2009 at 12:44 PM, Brandon Taylor
>
> wrote:
> > When connecting to Oracle with Django through a shell, everything
> > works as expected. However, when I use Aptana/PyDev to debug...
>
> It sounds likely that debugging environmen
Hi everyone,
Still battling with Oracle, but found something interesting...
When connecting to Oracle with Django through a shell, everything
works as expected. However, when I use Aptana/PyDev to debug and I set
a breakpoint on my view action, I get an error:
InterfaceError: Unable to acquire
Hi Karen,
Yes, that is exactly what I'm seeing.
On Feb 23, 6:02 pm, Karen Tracey wrote:
> On Mon, Feb 23, 2009 at 10:15 AM, Brandon Taylor
> wrote:
>
>
>
>
>
> > Hi everyone,
>
> > Still fighting with Oracle :(
>
> > Quick recap...my setup is:
Solved: ModelChoiceField(empty_label=None)
On Feb 23, 9:14 pm, Brandon Taylor wrote:
> Hi everyone,
>
> What's the trick to getting a ModelChoiceField to use the first object
> in a QuerySet as the initial value to get rid of -?
>
> If I do:
> qs = Mode
Hi everyone,
What's the trick to getting a ModelChoiceField to use the first object
in a QuerySet as the initial value to get rid of -?
If I do:
qs = Model.objects.all()
my_field = forms.ModelChoiceField(queryset=qs, initial=qs[0])
I still get -- as the first choice.
TIA,
Bran
20 Feb 14:43, Brandon Taylor wrote:
>
>
>
> > No proxy server configured in FireFox 3. I'm stumped as well. Guess I
> > need to have the Oracle people in my office get in touch with their
> > support people. There is one other Django person here at the
> &
Hi everyone,
Still fighting with Oracle :(
Quick recap...my setup is:
OS X 10.5.6 (Intel), cx_Oracle-5.0.1 (Intel), instantclient_10_2,
Django Trunk, Python 2.6.1
If I run Django in shell, I am able to connect to Oracle, retrieve
objects via the ORM, etc. However, when I executing a view acti
come up with a solution.
Many thanks to everyone for their help!
b
On Feb 20, 4:37 pm, Ian Kelly wrote:
> On Feb 20, 3:26 pm, Brandon Taylor wrote:
>
> > Yes, I'm just using the built-in server for local development. I've
> > restarted it dozens of times, cleared m
ld be nice if I could just use the built-in server though.
On Feb 20, 4:20 pm, Ian Kelly wrote:
> On Feb 20, 3:01 pm, Brandon Taylor wrote:
>
> > Actually I was referring to my action in views.py to get the Category
> > objects:
>
> > from activity_codes.models import *
value in the connection: USER=root
When I start up my dev server, I usually override port 80 on my Mac,
so I can just run at : localhost/
Shouldn't the USER parameter be the DATABASE_USER from settings.py? or
am I smoking crack?
b
On Feb 20, 4:01 pm, Brandon Taylor wrote:
> Actually I
:
categories})
On Feb 20, 3:34 pm, Ian Kelly wrote:
> On Feb 20, 2:25 pm, Brandon Taylor wrote:
>
> > however attempting to retrieve the Category objects from a view
> > results in:
> > DatabaseError: ORA-00942: table or view does not exist
>
> > Thoughts?
&
activity_code.categories;
> And repeat for the relevant tables, views, or sequences.
>
> This is particularly problematic for Oracle, which nearly always uses
> multiple schemas and specific permission grants in Real World (tm)
> schemas. We tried a couple quick, Oracle-specific fixes
ROM
"CATEGORIES") "_SUB" WHERE ROWNUM <= 21) WHERE "_RN" > 0'}, {'time':
'0.004', 'sql': u'SELECT "CATEGORIES"."ID", "CATEGORIES"."NAME",
"CATEGORIES"."CREATED_AT",
Ok, now I am absolutely confounded...
I ran: manage.py inspectdb > models.py
Then I tried to get objects from the models THAT IT CREATED FOR ME -
same friggin' error!
What in the world is up with this thing? I'm at a loss.
b
On Feb 20, 3:08 pm, Brandon Taylor wrote:
> Hi
;test.html', {'categories' ;
categories})
I get: DatabaseError: ORA-00942: table or view does not exist
? ? ?
On Feb 20, 2:53 pm, Brandon Taylor wrote:
> Hi Matt,
>
> Thanks for the reply. Well, I can get connected via sqlplus and I can:
> desc activities... not sure what'
se credentials. If the tables live in a
> different schema, you may need to create private synonyms to them in
> the Django user's schema--we nearly always end up with that structure
> in our Django/Oracle apps.
>
> Hope this helps,
>
> Matt
>
> On Fri, Feb 20, 200
_NAME
setting.
If I set my DATABASE_NAME to my SID, and try to retrieve objects, I
get:
DatabaseError: ORA-00942: table or view does not exist
? ? ?
b
On Feb 20, 1:21 pm, Brandon Taylor wrote:
> Hi Matt,
>
> Ok, I modified manage.py to add two environ variables:
>
> import os
>
ng "manage.py shell" and
> looking at what's in os.environ--if you don't see ORACLE_HOME set to
> the correct location there, try fixing that first.
>
> Matt
>
> On Fri, Feb 20, 2009 at 9:41 AM, Brandon Taylor
> wrote:
>
> > Hi everyone,
>
> &
Hi everyone,
I'm using Oracle instantclient_10_2 (Intel), cx_Oracle-5.0.1, OS X
10.5.6 (Intel), Python 2.6.1 and Django trunk.
My built-in server will start up correct, but, when I attempt to get
objects for a model, I receive the following error:
InterfaceError: Unable to acquire Oracle enviro
Hi Malcom,
Thanks for the response. I thought the same about the request headers
being read only, and hadn't heard of something modifying the request
header, only the response.
b
On Feb 18, 5:02 pm, Malcolm Tredinnick
wrote:
> On Wed, 2009-02-18 at 07:16 -0800, Brandon Taylor wrote
Hi everyone,
I'm having a hell of a time getting connected to Oracle...
We're running Intel MacBooks, OS X 10.5.6, Python 2.6.1, Django Trunk,
Oracle InstantClient 10_2.
We have tried using cx_Oracle-5.0 and 4.4.1. cx_Oracle seems to
compile and install successfully, but, when we attempt to run
Hi everyone,
I know how to modify a response header value, but not a request header
value. I need to integrate with an external system that is injecting a
value in the request header that I need to check for.
Is it possible to mock this behavior in Django? I'm not very familiar
with how these va
FWIW, I have been able to successfully integrate Django Admin Uploads
http://code.google.com/p/django-admin-uploads/ with jQuery. I'm not
certain as to how difficult this would be to port to YUI. There are a
couple of JS issues that I've had to fix with this, but otherwise, it
works very well.
Re
Hi everyone,
I need to return a queryset using the "in" statement. My IDs are in an
array of int values.
vehicle_ids = [1, 2, 3]
If I do: vehicles = VehiclePhoto.objects.filter(vehicle__id__in=
[vehicle_ids])
I get a type error: sequence item 0, expected string, int found. I've
tried just abou
Hello,
You can use the sorted() function in Python to order any iterable. It
asks for a key to order by, which can be a lambda, or you could use
the operator module to get attributes of the object(s) in your
QuerySet object to provide the key.
My $0.02,
Brandon
On Jan 29, 12:38 pm, lollerikken
nd it
looks like it's a pain to get lxml running there.
I'll try some timings and report back on what I find (if anything).
Thanks everybody!
Taylor
On Jan 26, 6:01 pm, Russell Keith-Magee
wrote:
> On Tue, Jan 27, 2009 at 12:35 AM, Taylor wrote:
>
> > Okay, that makes
Okay, that makes sense. Thanks for the link to Python timing!
Can anyone familiar with the internals of django's serialization and
templating offer any suggestions?
Thanks!
On Jan 26, 2:57 am, Antoni Aloy wrote:
> 2009/1/26 Taylor :
>
>
>
> > I'm thinking of ch
I'm thinking of changing my views so that they work with XSLT and an
XML representation of my data. I see 3 options:
1. Use django's xml serializer.
2. Use python's xml tools to make my own XML.
3. Use django's template systems to drop my data into xml. Like so:
{{ monster.hp }}
...
My questi
...and do vehicles.reverse() to toggle ascending or descending.
Thanks for getting me on the right track, I appreciate it!
Brandon
On Jan 22, 2:19 am, Malcolm Tredinnick
wrote:
> On Wed, 2009-01-21 at 21:40 -0800, Brandon Taylor wrote:
> > Hi everyone,
>
> > I need to do some
Hi everyone,
I need to do some table sorting and paging. To reduce trips to the DB,
I'm storing my initial queryset in a session using the file system
backend for local development.
I was thinking I might be able to use the dictsort filter and just
pass in the column as a variable to do the colu
Does anyone have any idea why the "Auth" section wouldn't show up in
the admin display? Here's my APPS:
INSTALLED_APPS = (
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sess
This is more of an experiment than anything, but I've got a model as
such to store python modules:
class StoredModule(models.Model):
name = models.CharField()
text = models.TextField()
I want to be able to pull one of these and get access to the 'text'
field as if it were a module. I can't
into pickling errors.
On Jan 13, 11:43 am, Brandon Taylor wrote:
> Hi everyone,
>
> I have a login form on every page and want to leverage the
> AuthenticationForm from contrib.auth. So, I thought I would have a
> middleware tier to process the request and check for a GET or POST and
>
Just tossing this out, but it might be worth checking to see what
manage.py or django-admin.py reports as the version of Django
installed:
http://docs.djangoproject.com/en/dev/ref/django-admin/#determining-the-version
At least then you'll be certain whether it's 0.96, 0.97svn or 1.0.
On Jan 1
Hi everyone,
I have a login form on every page and want to leverage the
AuthenticationForm from contrib.auth. So, I thought I would have a
middleware tier to process the request and check for a GET or POST and
create the appropriate form, either bound or un-bound. Here is my
middleware:
from dja
solved:
os.chdir(path)
Hope that helps someone!
On Dec 20, 10:13 pm, Brandon Taylor wrote:
> Hi everyone,
>
> I'm unpacking files in a .zip and need to save each file into a
> particular directory, but I can't seem to find a way to set the
> directory to save into
Hi everyone,
I'm unpacking files in a .zip and need to save each file into a
particular directory, but I can't seem to find a way to set the
directory to save into. Here is part of my code where I'm opening
the .zip and iterating over the files:
thumb_zip_file = zipfile.ZipFile(obj.thumbnail_ima
Hi,
You can do validation on images by using a custom form for your admin
Model. This example validates that a thumbnail image is a specific
dimension, file type and file size,
from django.core.files.images import get_image_dimensions
class MyModelAdminForm(forms.ModelForm):
model = MyModel
I've been looking at the methods from those libs. Glad to know I'm on
the right track.
Thanks,
b
On Dec 19, 7:27 pm, Masklinn wrote:
> On 19 déc. 08, at 23:50, Brandon Taylor
> wrote:
>
> > Hi everyone,
>
> > My client needs some batch processing capabi
Hi everyone,
My client needs some batch processing capabilities that I haven't
coded in Python/Django yet, and I need advice on the best way to read
images contained in a .zip file. I'm pretty comfortable extending
Django admin, just not working with files this way.
I will need to:
1. Read and
Oh awesome! I didn't know that, and yes it helps a lot!
I suppose I could compliment this with the request.is_ajax() and I'm
all set.
Thanks again!
Taylor
On Dec 19, 5:47 am, Srdjan Popovic
wrote:
> Taylor,
>
> If you are worried about POST data submitted through Ajax re
oint me in the right
direction? Or do I need to figure this out myself.
Thanks folks!
Taylor
On Dec 18, 9:08 pm, anb wrote:
> > Each of my views use the @login_required decorator, is there anything
> > else I need to do to ensure that the user is logged in and active
> &
for the
django-developers group), it would be really nice to have a document
that outlines all of the precautions you should take for security.
Thanks so much!
Taylor
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Keith-Magee"
wrote:
> On Thu, Dec 18, 2008 at 7:55 AM, Greg Taylor wrote:
>
> > Yeah, I was afraid this would be the case. The interval polling script
> > was something I really wanted to avoid.
>
> > I can't believe this isn't possible, though. I assu
Dec 18, 2008 at 6:15 AM, Greg Taylor wrote:
>
> > This is somewhat of a core Python question with a Django twist. I'm
> > running mod_wsgi and am trying to figure out how to FTP a file from my
> > Django app to a remote host without locking the thread up. I've tried
This is somewhat of a core Python question with a Django twist. I'm
running mod_wsgi and am trying to figure out how to FTP a file from my
Django app to a remote host without locking the thread up. I've tried
something like:
from subprocess import Popen
print Popen(["python", command_str, "53363"
Hi Karen,
I did finally get this figured out, but decided not to implement the
functionality after all :)
Thanks,
Brandon
On Dec 5, 7:47 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Fri, Dec 5, 2008 at 3:18 AM, Brandon Taylor <[EMAIL PROTECTED]>wrote:
>
>
Hi everyone,
I want to allow users to change their username in a non-admin form. I
have a login form already working, and I can successfully show user
information. I have granted the change user permission to the user
that is logged in.
When I pull in the UserChangeForm from contrib.auth.forms a
201 - 300 of 507 matches
Mail list logo