Hi everyone,
I'm working on a custom form widget to input length values in feet,
inches and a fraction of an inch. So far, everything is working as
expected, except for validation.
It takes a value input as:
1' 10 1/2" and converts it into inches: 22.5, for storage in a
database.
My widget
Hello,
>From my experience with sprites, you wouldn't be using an image tag to
render the sprite. Rather, you would be giving an id or class
attribute on a div or some other type of HTML container tag that
positions the background image (sprite) and possibly sets a width and
height on the
fails :(
Hope this helps someone,
Brandon
On Oct 5, 11:37 pm, Brandon Taylor <btaylordes...@gmail.com> wrote:
> Hi everyone,
>
> I set up a bare-bones project with one view decorated with
> @login_required.
> I created an initial_data.json fixture with a user.
> I called se
...@gmail.com>
>
>
>
> > Check if you are in the python perspective
>
> > On 1 oct, 19:34, Brandon Taylor <btaylordes...@gmail.com> wrote:
> > > Hi everyone,
>
> > > I'm used to organizing my Django projects in one folder for the
> > &g
Hi everyone,
I set up a bare-bones project with one view decorated with
@login_required.
I created an initial_data.json fixture with a user.
I called self.client.login(username='foobar', passowrd='foobar') and
it returned True.
I assigned a response variable from self.client.get('/protected/')
Sounds like you have an infinite loop.
On Oct 1, 12:12 pm, Tsolmon Narantsogt wrote:
> Hi there
>
> i got this error
>
> *Exception RuntimeError: 'maximum recursion depth exceeded while calling a
> Python object' in
> help me
>
> Thank you
> Tsolmon
--
You received this
Hi everyone,
I'm used to organizing my Django projects in one folder for the
project and then sub folders for app modules...
/my_project
-__init__.py
-settings.py
/some_app
and so on. However, when I create a new Django project using the PyDev
wizard, I get:
/my_project
Aptana Studio 2 & 3 Beta + PyDev on Linux makes a great dev
environment for Django. You can create runtimes for debugging, add
modules to the Python path for your project, like the site-packages
folder from a virtualenv.
You'll get code assist for Python, HTML, CSS and JavaScript. A number
of
Sorry, the second test is the one that fails.
On Sep 26, 2:01 pm, Brandon Taylor <btaylordes...@gmail.com> wrote:
> Hi Everyone,
>
> I'm having an issue testing a page protected with @login_required. I'm
> loading a user via a fixture. I can call
> self.client.login(**cred
Hi Everyone,
I'm having an issue testing a page protected with @login_required. I'm
loading a user via a fixture. I can call
self.client.login(**credentials) successfully and get True back. I can
retrieve a User object using the _auth_user_id key held in session
from the call to
This problem turned out to be related to specificity. Another url
pattern was overriding the pattern that I was testing.
On Sep 24, 9:43 pm, Brandon Taylor <btaylordes...@gmail.com> wrote:
> So it appears to be something with django-cms' urls that are causing
> issues with testi
, Brandon Taylor <btaylordes...@gmail.com> wrote:
> So here's something else that's weird...
>
> I can start a shell, load up the test Client and get the page in
> question:
>
> Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
> [GCC 4.4.3] on linux2
> Type "help&q
formation.
(InteractiveConsole)
>>> from django.test.client import Client
>>> c = Client()
>>> response = c.get('/categories/')
>>> response.status_code
200
Anyone have any ideas what could be wrong with the unit test?
On Sep 23, 10:51 pm, Brandon Taylor <btaylor
Hi everyone,
I'm having a problem with reversing a URL in a unit test:
class ProductTestCase(TestCase):
def setUp(self):
self.client = Client
def test_project_permalink(self):
project = Project.approved.all()[0]
url = project.get_absolute_url()
I'm using an
I use Aptana with PyDev and get code completion for Python, HTML, CSS,
JavaScript (and jQuery) and more. It's cross-platform, free and the
Beta 3 version has even more Django support thanks to the latest
version of PyDev.
There are plugins for Git, Mercurial, SVN and more.
Brandon
On Sep 14,
Hi everyone,
I need to add a checkbox field to an ModelForm, which is easy enough
by overriding __init__ on the ModelForm, but I'm also using a custom
fieldset on the ModelAdmin.
So, I need to be able to add the field to the fieldset from the form's
__init__
Possible? I'm not sure how I can get
The solution is to add the foreign key field as a list_filter, then
Django will accept the querystring parameter.
Hope that helps someone!
On Sep 13, 7:29 pm, Brandon Taylor <btaylordes...@gmail.com> wrote:
> Hi everyone,
>
> I have a very strange problem I'm trying to get a ha
Hi everyone,
I have a very strange problem I'm trying to get a handle on. I need to
filter a model admin with a value from the querystring, so I am doing
an override of queryset in my ModelAdmin like so:
def queryset(self, request):
id = request.GET.get('id', None)
if id:
return
Hello everyone,
I have two models: PublicAccount and Order.
I need to provide a link to filter Orders by PublicAccount. So, I
added a field to the list display of my PublicAccount:
def orders(self):
return 'View' % \
(reverse('admin:orders_order_changelist'), self.pk)
I ended up using jezdez's fork of Piston, and it works as expected:
https://bitbucket.org/jezdez/django-piston/
On Mar 31, 9:57 am, Brandon Taylor <btaylordes...@gmail.com> wrote:
> Hi everyone,
>
> I know there's a Google Group for django-piston, but there's not very
>
You can extend the change_form.html and change_list.html templates for
those views, or the base_site.html template.
Look in your: django/contrib/admin/templates/admin/ folder to see all
of the templates. Also, check out the documentation at:
At The Texas Tribune (texastribune.org), we use a combination of
TinyMCE and django-reversion. It doesn't track changes between
versions, but it maintains a history table of each previous version of
our main content types.
Cheers,
Brandon
On Mar 30, 4:18 pm, John Griessen
I'm getting those from this forum as well.
On Mar 31, 10:13 am, Wiiboy wrote:
> Hi guys,
> I've gotten two emails from "Mail Delivery Subsystem
> " with the subject "Your message was NOT
> received by django-us...@googlegroups.com!".
> The body is
Hi there,
When calling def clean_name(self):, you can see if your instance has
an id or not:
def clean_name(self):
if not self.id:
#this would be a new record
else:
#this would be an existing record
HTH,
Brandon
On Mar 31, 9:24 am, Emanuel
Hi there,
Instead of using the course object in your initial data, which will
pass in the __unicode__ representation of the object, pass in the id:
form = CouseBook(initial = {'course': course.id})
That should get you the numeric id, but you'll also need to override
your save method to get the
Hi everyone,
I know there's a Google Group for django-piston, but there's not very
much conversation on that group, so I'm re-posting here as well.
I'm getting an error when running the "blogserver" example site
included with Piston:
AttributeError at /api/posts/
'Blogpost' object has no
Walt, you're a lifesaver!
Many thanks for the great example. I only made a couple of minor
tweeks:
class AgencyForm(forms.ModelForm):
class Meta:
model = Agency
def __init__(self, *args, **kwargs):
super(AgencyForm, self).__init__(*args, **kwargs)
if
Evening Everyone,
I have a model "Agency" with "state" as a foreign key and "counties"
as a many-to-many.
County has a foreign key to "state"
I would like to limit the County choices in Django admin to the state
of the Agency being edited, but, I can't seem to find the right place
to get an
Thanks raj, I'll give that a shot.
On Mar 12, 11:11 am, raj <rajeeshrn...@gmail.com> wrote:
> If you want to impose the restriction only upon delete through admin
> interface, try to override modelAdmin's has_delete_permission()
> method. Or else, model.delete().
>
> On Mar
Hi Everyone,
I need to add a custom permission to only allow deletes on an object
if it has a certain property and the user is in a specific group, and
I need it to work in Django admin.
Possible? I was thinking I might just override the template and remove
the delete link, but permissions seems
> very large images (> 100 Meg).
>
> Yours
>
> Thanos.
>
> On Feb 16, 10:07 am, Brandon Taylor <btaylordes...@gmail.com> wrote:
>
>
>
> > Hi Everyone,
>
> > I'm confused about creating a custom upload handler and how it ties
> > into my mode
self, file_size).
>
> (As an aside, if you're using Python 2.5 or greater you might consider using
> the 'with' statement in your handler...
> <http://www.python.org/doc/2.5.2/ref/with.html>)
>
> Best wishes,
> Michael A. Smith
> Web & Digital / Academic Technolog
Hi Everyone,
I'm confused about creating a custom upload handler and how it ties
into my model. From the docs, this is an example of a custom upload
handler, which I'm assuming goes in my view, or is accessed from my
view:
def handle_uploaded_file(f):
destination = open('some/file/name.txt',
Hi everyone,
Our basic content model pseudo-code is:
class Content(models.Model)
class Image(Content)
class Story(Content)
lead_art = ForeignKey(Content)
Content has an ID of course, and Image, Story, etc have a
content_ptr_id
What we're experiencing from time to time in Django admin is
WebFaction. They are simply awesome.
On Feb 9, 9:52 am, adamjamesdrew wrote:
> Thanks
--
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
http://wadofstuff.blogspot.com/2009/08/requiring-at-least-one-inline-formset.html
On Nov 23, 6:06 pm, Brandon Taylor <btaylordes...@gmail.com> wrote:
> Hi everyone,
>
> I need to validate that at lease one item has been added to an inline
> model in Django admin. I'm not quite
Hi everyone,
I need to validate that at lease one item has been added to an inline
model in Django admin. I'm not quite sure where to put this
validation...can someone help me out?
TIA,
Brandon
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
,
everything's working again, finally. Ugh.
Cheers,
Brandon
On Nov 19, 9:40 am, Brandon Taylor <btaylordes...@gmail.com> wrote:
> Hi Andy,
>
> Thanks for the reply. The Ubuntu instance only has one Python
> installed - 2.6.4. I thought it might be a problem related to that as
>
can't explain why it won't work in a VM, but it will if I'm dual-
booting, or just running Ubuntu native.
b
On Nov 19, 9:14 am, Andy McKay <a...@clearwind.ca> wrote:
> On 09-11-19 6:40 AM, Brandon Taylor wrote:
>
> > ImproperlyConfigured: ImportError filebrowser: No module nam
Hi everyone,
I'm developing on Ubuntu 9.1 in a VM Ware Fusion instance on OS X,
10.5.8. I have apache2-mpm-worker and mod_wsgi installed through
aptitude.
I have Django 1.1.1 installed in /usr/local/lib/python2.6/dist-
packages.
My django project is in:
/home/btaylor/django_projects/cit
My
the resume, which I'm going to grab and stick
into the DB anyway, but for some reason, they insist on letting people
upload.
Kindest regards,
Brandon
On Nov 13, 6:08 am, David De La Harpe Golden
<david.delaharpe.gol...@ichec.ie> wrote:
> Brandon Taylor wrote:
> > Greetings all,
&
Greetings all,
My project involves uploading Word documents (resumes), and I would
like to be able to scan them for viruses. I've found ClamAV, but
installation is proving a little testy. So, I thought I'd ping the
community for advice. Should I even be concerned with this? My
deployment server
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
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
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
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:
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
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
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
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
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 <btaylordes...@gmail.com> wrote:
> Hi George,
>
> I wonde
.
On May 4, 10:30 am, George Song <geo...@damacy.net> 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 <btaylordes...@gmail.com> wrote:
> &
filter_vertical also appears to be suffering the same problem.
On May 4, 10:23 am, Brandon Taylor <btaylordes...@gmail.com> wrote:
> Hi everyone,
>
> When I specify filter_horizontal for any ManyToMany field on a model
> using Django trunk, and that field is required, admin w
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
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 <btaylordes...@gmail.com> wrote:
> Hi Alex,
>
> Thanks for the reply. Here's the link:http://dpaste.com/34979/
>
Sorry Alex, my bad. I see the error. Doh!
On Apr 17, 3:54 pm, Brandon Taylor <btaylordes...@gmail.com> wrote:
> Hi Alex,
>
> Thanks for the reply. Here's the link:http://dpaste.com/34979/
>
> b
>
> On Apr 17, 3:50 pm, Alex Gaynor <alex.gay...@gmail.com> wrote:
&
Hi Alex,
Thanks for the reply. Here's the link: http://dpaste.com/34979/
b
On Apr 17, 3:50 pm, Alex Gaynor <alex.gay...@gmail.com> wrote:
> On Fri, Apr 17, 2009 at 4:48 PM, Brandon Taylor
> <btaylordes...@gmail.com>wrote:
>
>
>
> > Hi everyone,
>
> >
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
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 <bgn...@gmail.com> wrote:
> On Apr 13, 11:47 am, Brandon Taylor <btaylordes...@gmail.com> wrote:
>
>
>
>
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 <bgn...@gmail.com> wrote:
> On Apr 13, 11:47 am
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 <btaylordes...@gmail.com> 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 sav
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 <btaylordes...@gmail.com> wrote:
> Hi Ian,
>
> I'm not that familiar with Oracle, so I have no idea if the pr
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)
com> wrote:
> On Mar 23, 1:52 pm, Brandon Taylor <btaylordes...@gmail.com> 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)
> >
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 <btaylordes...@gmail.com> wrote:
> Hmm. I might downgrade my cs_Oracle and see if t
On Mar 20, 1:52 pm, Brandon Taylor <btaylordes...@gmail.com> wrote:
>
> > 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.
> > O
Ugh, sorry, that's: fields.py, not forms.py
On Mar 20, 2:54 pm, Brandon Taylor <btaylordes...@gmail.com> 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
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 <btaylordes...@gmail.com> wrote:
> Hmm. Well, I guess the only thing left to ask is what version of
&
12:08 pm, Brandon Taylor <btaylordes...@gmail.com> wrote:
>
> > Nope, still not working. If you're not defining tags = TagField() in
> > the model, how are you defining it? As a CharField? I'd like to see
> > how your model is set up.
>
> > Of course, if I create
: tags =
TagField() does not invoke any of the Tagging functionality for me.
b
On Mar 20, 11:49 am, Brandon Taylor <btaylordes...@gmail.com> 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.
>
&
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 <ian.g.ke...@gmail.com> wrote:
> On Mar 20, 8:26 am, Brandon Taylor <btaylordes...@gmail.com> wrot
char 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 <ian.g.ke...@gmail.com> wrote:
> On Mar 19, 9:21 am, Brandon Taylor <btaylord
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
, Malcolm Tredinnick <malc...@pointy-stick.com>
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 it
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
LE')
class Meta:
verbose_name = 'CSU Code'
verbose_name_plural = 'CSU Codes'
ordering = ['department']
managed = False
db_table = 'LU_CSU_CODE'
def __unicode__(self):
return self.title
Thoughts?
Brandon
On Mar 9, 2:40 pm, Alex Gaynor &
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,
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
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'
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 <alex.gay...@gmail.com> wrote:
> On Tue, Mar 3, 2009 at 12:41 PM, Brand
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
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
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 <kmtra...@gmail.com> wrote:
> On Fri, Feb 20, 2009 at 10:52 AM, Brandon Taylor
> <btaylordes...@gmail.com>wrote
Boersma <m...@sprout.org> wrote:
> On Tue, Feb 24, 2009 at 12:44 PM, Brandon Taylor
>
> <btaylordes...@gmail.com> wrote:
> > When connecting to Oracle with Django through a shell, everything
> > works as expected. However, when I use Aptana/PyDev to debug...
&g
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 <kmtra...@gmail.com> wrote:
> On Mon, Feb 23, 2009 at 10:15 AM, Brandon Taylor
> <btaylordes...@gmail.com>wrote:
>
>
>
>
>
> > Hi everyone,
>
> > Still figh
Solved: ModelChoiceField(empty_label=None)
On Feb 23, 9:14 pm, Brandon Taylor <btaylordes...@gmail.com> 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 -?
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,
idu...@sommitrealweird.co.uk>
wrote:
> On 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 Djan
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
with a solution.
Many thanks to everyone for their help!
b
On Feb 20, 4:37 pm, Ian Kelly <ian.g.ke...@gmail.com> wrote:
> On Feb 20, 3:26 pm, Brandon Taylor <btaylordes...@gmail.com> wrote:
>
> > Yes, I'm just using the built-in server for local development. I've
> >
could just use the built-in server though.
On Feb 20, 4:20 pm, Ian Kelly <ian.g.ke...@gmail.com> wrote:
> On Feb 20, 3:01 pm, Brandon Taylor <btaylordes...@gmail.com> wrote:
>
> > Actually I was referring to my action in views.py to get the Category
> > objects:
>
>
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 <btaylordes...@gmail.com>
})
On Feb 20, 3:34 pm, Ian Kelly <ian.g.ke...@gmail.com> wrote:
> On Feb 20, 2:25 pm, Brandon Taylor <btaylordes...@gmail.com> wrote:
>
> > however attempting to retrieve the Category objects from a view
> > results in:
> > DatabaseError: ORA-00942: table or view does n
1 - 100 of 288 matches
Mail list logo