I've got a project running Django 1.4, Postgres 3, Python 2.7. Our tests
get about halfway through, then we get a sudden flood of errors showing
that the django_content_type table may be empty:
..
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
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"
I've been seeing this same exact issue, even after completely deleting
and re-exporting Django and my project's source (minus all .pyc
files). It appears to be something else that's being buried by that
non-descriptive error message.
On Oct 1, 2:53 pm, hotani <[EMAIL PROTECTED]> wrote:
> It's bac
te, whereas Django is expecting a datetime.datetime. Does that
> make sense? Perhaps you are passing in something like
> "datetime.date.today()" where you should be passing in something like
> "datetime.datetime.now()". Or else maybe your field really should be a d
ideas, I'm all ears, this is a bit of a showstopper for
me.
Thanks!
Greg
On Aug 28, 10:31 am, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Aug 28, 3:01 pm, Greg Taylor <[EMAIL PROTECTED]> wrote:
>
> > I'm getting the following error on some of my models
There are quite a few that take different approaches. Your best bet
may be to use the search feature with the keywords 'schema migration'
within the group.
On Aug 28, 10:05 am, Alex <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a migrations tool made by me for an internal project.
> I couldn't
I'm getting the following error on some of my models with
DateTimeFields. Any ideas?
Traceback (most recent call last):
File "/home/clemsoncrew/site-packages/django/core/handlers/base.py",
line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/home/
So I've got a Multi-Table parent model, CalendarEvent, and two child
models: Regatta and Meeting.
I've got a calendar view that shows all of the upcoming events like
this:
events = CalendarEvent.objects.all()
But I want to determine what kind of event each of these are (Regatta
or Meeting) from
I've got a model that represents a boat of rowers which has eight
seats (order is important). The easiest way to handle this was a model
with eight foreign keys:
class Boat(models.Model):
seat_1 = models.ForeignKey(User)
[...]
seat_8 = models.ForeignKey(User)
Which is fine and great, but n
Thanks!
Any idea if this issue appears outside of the admin interface with
newforms in a regular view? This isn't a show-stopper if that's a
case, just a speed bump.
Thanks again,
Greg
On Jun 14, 2:43 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Sat, Jun 14,
Hello all,
I'm running Django trunk, and have noticed that editing and saving an
object in the admin interface (an object that is a multi-table child
model) results in a duplicate object with the new attributes
appearing. It should just set your new values on the existing object
rather than creat
That clears it up perfectly. This is great to have working, thanks
again!
Greg
On Jun 9, 10:19 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On Mon, Jun 9, 2008 at 10:09 PM, Greg Taylor <[EMAIL PROTECTED]> wrote:
>
> > Wonderful, I'll be able
MAIL PROTECTED]>
wrote:
> On Mon, Jun 9, 2008 at 8:12 PM, Russell Keith-Magee
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > On Mon, Jun 9, 2008 at 8:06 PM, Greg Taylor <[EMAIL PROTECTED]> wrote:
>
> >> Much appreciated, Russ! I was not sure whether I was doing
Excellent news, I appreciate it very much!
On Jun 9, 8:12 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On Mon, Jun 9, 2008 at 8:06 PM, Greg Taylor <[EMAIL PROTECTED]> wrote:
>
> > Much appreciated, Russ! I was not sure whether I was doing something
more details.
Thanks again,
Greg
On Jun 8, 9:39 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On Mon, Jun 9, 2008 at 12:09 AM, Greg Taylor <[EMAIL PROTECTED]> wrote:
>
> > I've submitted a bug about this since I haven't been able to turn up
>
I've submitted a bug about this since I haven't been able to turn up
any kind of response. In the mean-time, I've had to rig something up
with generic relations to serve the same purpose. It's a really nasty
kludge, I think, which is a shame. I can't believe this hasn't cropped
up with anyone else
I've been looking through the source to try to see if there is any
indicator as to whether this is the intended behavior. If nobody
speaks up today, I'll file a bug, as it would appear to be.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
It seems like multi-table sub-classed models (not abstract) don't
honor the "pk" being specified in fixtures. For example, I have an
Event class that is sub-classed by a Race model. The Event class is in
an app called "calendar" and the Race model is in an app called
"regattas". I dumpdata regatta
Bingo, I could've sworn I remembered doing it somehow or another.
Thanks a lot,
Greg
On May 28, 7:42 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On Thu, May 29, 2008 at 7:26 AM, Greg Taylor <[EMAIL PROTECTED]> wrote:
>
> > I was wondering if th
I was wondering if there was any facility within Django that makes
formatting numbers with commas or periods in templates possible from
template-land. I know you can use locale.format() on the Python side,
but was hoping there was some tag/filter feature I missed that would
allow me to do this wit
To elaborate, I can't do a self.instance, as it errors saying "self is
not defined". For example:
color_field =
forms.ModelMultipleChoiceField(queryset=self.instance.colors)
I need to find the difference of two lists on a model to form the
queryset in my application.
--~--~-~--~~
Is there a way to get the value of the 'instance' keyword argument
from within a Form sub-classed by ModelForm? For example:
class CS_SKU(models.Model):
colors = models.ManyToManyField(Color, blank=True, null=True)
color_field = forms.ModelMultipleChoiceField(queryset=colors)
class Form_
I was wondering if there's any reason why get_FOO_display() calls
aren't being evaluated when updating/adding new objects via the admin
interface. What I mean by this is:
The workout "1" was changed successfully.
Instead of:
The workout "Running" was changed successfully.
The field in question
This would be great, I'd love to see this although I'm not really
experienced enough to help much.
On Apr 8, 10:21 am, "Peter Baumgartner" <[EMAIL PROTECTED]> wrote:
> Anybody interested in starting an app engine/big table db backend
> project? Should be interesting and might help pave the way fo
Greetings,
I was wondering if there's a way to include initial data for Django classes.
I noticed that there is a way to do so via a 'sql' subdirectory under your
own models, but didn't see any indication if there was a way to do this for
base Django classes.
--~--~-~--~~~
Greetings,
I was wondering if there's a way to include initial data for Django
classes. I noticed that there is a way to do so via a 'sql'
subdirectory under your own models, but didn't see any indication if
there was a way to do this for base Django classes.
--~--~-~--~~
30 matches
Mail list logo