Hi!
>> I'm using Django with Firebird and Oracle as backends. When integrating
>> with a legacy Firebird database using the inspectdb command, I guess I
>> hit a bug in inspectdb.py (although I'm not entirely sure), which does
>> affect extracting foreign key relationships.
>>
>> Starting in line
Hello,
is there a way to have a combined sort order in a list in the admin area?
For example ascending order by one field and descending order by another
field?
Thanks,
Thomas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
'adminmedia' is not a valid tag library: Could not load template
library from django.templatetags.adminmedia, No module named
adminmedia
Hi!
I'm getting the above error message when I try to access the admin
module of Django.
I also seem to be having a problem where django is only looking in
si
Sounds about right to me. Hopefully I'll have more time after this
month to pick this up again.
On Aug 16, 6:24 pm, Ramiro Morales wrote:
> Hi George,
>
> On Thu, May 21, 2009 at 7:56 PM, George Song wrote:
>
> > Hi Glenn,
>
> > When you get the chance can you review my proposal[1] for fixing
>
Alright, perhaps my description of the problem was not very clear.
Hadn't gone back to it, but using "initial" when creating form solved the
problem.
On Wed, Sep 2, 2009 at 1:56 PM, Rochak Neupane wrote:
> Taking the Book and Author example from
> http://docs.djangoproject.com/en/dev/topics/for
Iqbal Abdullah kirjoitti:
> Hi guys,
>
> I have a quick question:
>
> I have set auto_now=True for one of my DateTimeFields.
>
> Lets say I have a model object like so:
>
>>> a = MyModel.objects.get(id="10")
>>> print a.id
>>> "10"
>>> a.id = "10"
>>> a.save()
>
Yes.
Django doesn't have "di
If I remember correctly (and I might not be, and my 10.5 box is at
work), the Python
that comes with 10.5 does not have 64-bit support baked in, which
basically means that
extensions compiled against it won't either.
You'll either need to build a custom Python w/ 64-bit support, or
force the buil
I've read Django's documentation on its syndication framework, and
it's mostly pretty thorough. I set up an Atom feed that seems to work
just fine. However, I'd like to include the last several entries in
my feed: how can I do this in Django? (I'm creating an Atom 1.0 feed,
in case it matters.)
I am trying to deploy the django app that from the django development
server to the Apache on Leopard. When I try to launch the app from my
browser, I got a "Internal Server Error". I checked the error_log and
here's the error:
[Mon Sep 28 00:43:29 2009] [error] [client 127.0.0.1]
ImproperlyConfi
On Sep 28, 11:27 pm, Iqbal Abdullah wrote:
> Hi guys,
>
> I have a quick question:
>
> I have set auto_now=True for one of my DateTimeFields.
>
> Lets say I have a model object like so:
>
> >> a = MyModel.objects.get(id="10")
> >> print a.id
> >> "10"
> >> a.id = "10"
> >> a.save()
>
> will this
Hi,
Anyone know how to change the default subject of password reset
mail?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
T
Actually there it is,
users = models.ManyToManyField(User, symmetrical=True)
but I want to filter only the reports that contain only this user, or
exclude the ones that do not have the user.
Thanks again
On 28 sep, 20:16, luismmontielg wrote:
> sorry forgot to mention its a many to many rela
sorry forgot to mention its a many to many relation so a report can
have multiple users
On Sep 28, 4:29 pm, Joshua Russo wrote:
> On Mon, Sep 28, 2009 at 7:55 PM, luismmontielg wrote:
>
>
>
>
>
>
>
> > Hello,
> > I have my models like this...
>
> > class Report(models.Model):
> > title = mode
hi djangonaughts,
i have the following problem:
i have a Photo model, among other things it contains:
[=== models.py ===]
import os
def get_image_path(instance, filename):
return os.path.join('photos', filename)
class Photo(models.Model):
...
image = models.ImageField('im
Hello all,
I really enjoy the default Django behaviour of handling URL trailing
slashes. If one have:
(r'^contact', views.contact),
It doesn't matter if someone visits mywebsite.com/contact OR
mywebsite.com/contact/. It'll work anyway!
The problem is when including app urls, for instance:
(r'
Hi djangoers,
I've a simple category Model:
class Category(models.Model):
name = models.CharField(max_length=63)
children = models.ManyToManyField('self', symmetrical=False,
related_name='parent')
I need to create a webpage to display all the categories with proper
indentation, somethin
On Mon Sep 28 15:04 , ydjango sent:
>
>http://www.frontpageslideshow.net/
>
>
>Anyone knows equivalent plugin of above which I can use in python/
>django site.
>
>The plugin above is in jquery and php.
Most of the magic is in the javascript (they use jQuery) and CSS, integrating
that with Dja
http://www.frontpageslideshow.net/
Anyone knows equivalent plugin of above which I can use in python/
django site.
The plugin above is in jquery and php.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django user
I extended django.utils.feedgenerator.Atom1Feed for my own needs and
am trying to write some tests for it. It works fine from rusnserver
and mod_wsgi.
Basically, when feeds are accessed from the testrunner I'm running
into these problems:
1) The item_title() and item_description() methods are ne
On Mon, Sep 28, 2009 at 7:55 PM, luismmontielg wrote:
>
> Hello,
> I have my models like this...
>
> class Report(models.Model):
>title = models.CharField(max_length=50, blank=True)
>users = models.ManyToManyField(User, symmetrical=True)
>categories = models.ManyToManyField("Category",
On Mon, Sep 28, 2009 at 2:38 AM, Waqas wrote:
>
> I have written an offline application. In this application, i have
> written following code:
>
> rs = InqueuePing.objects.filter(processed = 0).order_by('-timestamp')
>
> if rs:
>#bla bla bla here
>
>
> The process is hanging on evaluating the
Hello,
I have my models like this...
class Report(models.Model):
title = models.CharField(max_length=50, blank=True)
users = models.ManyToManyField(User, symmetrical=True)
categories = models.ManyToManyField("Category",
through='ReportDetail', \
symmetrical=True)
I
On Mon, Sep 28, 2009 at 4:00 PM, janedenone wrote:
>
> Hi,
>
> this
>
> pages = Page.objects.exclude(content__iregex=r'^[\n\r \t]*<')
>
> should deliver the same rows as this
>
> SELECT ... FROM pages WHERE (content NOT REGEXP '^[\n\r \t]*<')
>
> but it does not: The Django query delivers 468 rows
Joshua Russo wrote:
> It sounds like you just want defaults for your relationships. Is that
> right? How are you determining which account to use?
>
No. I want admin actions at the top of my list similar to "Delete
selected ..." so that I can select a bunch of records and set the
foreign key for
On Mon, Sep 28, 2009 at 6:36 PM, David Larlet wrote:
>
> Le 22 sept. 2009 à 03:10, snfctech a écrit :
> > I understand that there is a Django branch being actively worked on
> > for connections to multiple DB vendors, or that Django + Elixir may be
> > a good option. But I'm wondering if building
Hi,
this
pages = Page.objects.exclude(content__iregex=r'^[\n\r \t]*<')
should deliver the same rows as this
SELECT ... FROM pages WHERE (content NOT REGEXP '^[\n\r \t]*<')
but it does not: The Django query delivers 468 rows, whereas the SQL
query delivers 223. It could be that the Django quer
Le 22 sept. 2009 à 03:10, snfctech a écrit :
> I understand that there is a Django branch being actively worked on
> for connections to multiple DB vendors, or that Django + Elixir may be
> a good option. But I'm wondering if building a single data warehouse
> may still be a better way to go?
S
I have written a set of Django apps that works on my development
machine but fails when I deploy it to Apache. The issue appears to be
with the Python path that the Apache process is using, but none of the
things I have tried have worked. I'm looking for suggestions as to
what I am doing wrong.
I've never used Elixir so I can't really comment on the pros and cons.
With my personal experience I would go with an ETL and copy the desired data
directly into your ordering system. Just keep in mind that these new tables
should stay read-only as far as the ordering system goes. The data would be
It actually is working now. The files that were being served were just
outdated, and everything started working perfectly after I replaced
them with updated ones.
Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
Can somebody suggest things that you might do with the new(1.1)
get_urls method in ModelAdmin? I suspect that I must be missing
something.
Paul Hide
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
On Mon, Sep 28, 2009 at 12:31 PM, Aaron wrote:
>
> Sorry for the double post, but I forgot to mention something else.
> Ever since I changed MEDIA_URL to '/site_media/' I no longer get the
> "jQuery is not defined" error. However, I get a different set of
> errors:
>
> Warning: Error in parsing v
Beautiful! Thanks for this very concise response. It helped greatly.
Gloria
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To u
On Mon, Sep 28, 2009 at 12:23 PM, Aaron wrote:
>
> On Sep 28, 12:23 pm, Karen Tracey wrote:
> > You need to ensure that the requests for your JavaScript files match the
> > pattern you have specified here for files to be served by the static
> > server. Earlier you said your MEDIA_URL is blank,
Hi,
I'm fairly new to Django. Util now I only made some standard apps/
sites.
But now I have to solve a problem with a many-to-many relationship
that contains an extra attribute in an intermediate model (as it is
described here:
http://docs.djangoproject.com/en/dev/topics/db/models/#extra-fields
Sorry for the double post, but I forgot to mention something else.
Ever since I changed MEDIA_URL to '/site_media/' I no longer get the
"jQuery is not defined" error. However, I get a different set of
errors:
Warning: Error in parsing value for 'filter'. Declaration dropped.
Source File: http://
On Sep 28, 12:23 pm, Karen Tracey wrote:
> You need to ensure that the requests for your JavaScript files match the
> pattern you have specified here for files to be served by the static
> server. Earlier you said your MEDIA_URL is blank, which may be the
> problem. If you are using MEDIA_URL t
"If you need to link one order item to other data in the warehouse it
should
only either be done in the warehouse or between the systems outside of
the
warehouse."
Now we're back to the crux of the topic! Joins in the warehouse, or
cross-vendor joins between disparate systems?
If multi-db _were
Thanks Alex. I am glad you liked the course videos, I am also planning to
add more videos as I find them.
--
Thanks & Regards
Parag Shah
http://blog.adaptivesoftware.biz
On Mon, Sep 28, 2009 at 4:24 PM, Alex wrote:
>
> Good job! Didn't have much time to check the content but the first 4
> or 5
On Mon, Sep 28, 2009 at 11:25 AM, triman wrote:
>
> I'm sure there is an easy way to do this, but I can't seem to make it
> work. I need to add a couple foreign key references to the User model
> (defined in the admin application). I've imported the admin User,
> but it still fails to resolve
On Sep 28, 2009, at 12:53 AM, gontran wrote:
> I would like to know if it's possible to automatically perform a db
> operation at the end of a session.
The traditional way of doing things like that is to run a job using
cron, which detects expired sessions and does whatever releasing is
requ
I'm sure there is an easy way to do this, but I can't seem to make it
work. I need to add a couple foreign key references to the User model
(defined in the admin application). I've imported the admin User,
but it still fails to resolve it. Does it need to refered to it by
it's full class name?
On Mon, Sep 28, 2009 at 10:30 AM, Aaron wrote:
>
> On Sep 28, 9:38 am, Karen Tracey wrote:
> > No, I mean the config for the static server:
> >
> > http://docs.djangoproject.com/en/dev/howto/static-files/
> >
> > The Django development server does not serve static files out of
> MEDIA_ROOT
> > b
guillermooo wrote:
>
> I suppose you mean in terms of performance? Could you please elaborate
> on the disadvantages?
>
They're not database-level foreign keys. So no db-level
integrity checks. You also can't presently use them in an easy manner in
more complex queries (aggregation). They mi
On Sep 28, 9:38 am, Karen Tracey wrote:
> No, I mean the config for the static server:
>
> http://docs.djangoproject.com/en/dev/howto/static-files/
>
> The Django development server does not serve static files out of MEDIA_ROOT
> by default, you have to configure the static server to do this.
We
Hi guys,
I have a quick question:
I have set auto_now=True for one of my DateTimeFields.
Lets say I have a model object like so:
>> a = MyModel.objects.get(id="10")
>> print a.id
>> "10"
>> a.id = "10"
>> a.save()
will this cause my DateTimeField to change it's timestamp?
--~--~-~--~-
Hi,
I'm writing an own auth backend at the moment, but I need access to the
request object.
I found a possible solution with adding settings.request = request into a
middleware, but that's seems not beautilful to me.
My backend is something like this at the moment, to check the hash I need
the cl
If you use the net tab of firebug[1] you can tell when url/file paths
are messed up. That is the only way I ever get tinymce running.
[1]http://getfirebug.com/
On Sep 27, 7:29 am, Erik Kronberg wrote:
> On Sun, Sep 27, 2009 at 1:54 PM, James Bennett wrote:
>
>
>
>
>
> > On Sun, Sep 27, 2009 at
It sounds like you just want defaults for your relationships. Is that right?
How are you determining which account to use?
On Mon, Sep 28, 2009 at 12:30 PM, J wrote:
>
> Joshua Russo wrote:
> > When do you want your "dynamic actions" take place?
> >
>
> I apoligize if I was unclear. I am referri
MooTools does look interesting. What would you miss most about it, if you
had to develop without it?
On Mon, Sep 28, 2009 at 11:07 AM, justind wrote:
>
> Joshua,
>
> Take a look at MooTools. It's a great library with a great API. It's
> been said that JQuery makes the DOM fun, but MooTools makes
Joshua Russo wrote:
> When do you want your "dynamic actions" take place?
>
I apoligize if I was unclear. I am referring to the admin actions that
one can select from a select box at the top of lists in admin pages.
It's described at
http://docs.djangoproject.com/en/dev/ref/contrib/admin/action
On Mon, Sep 28, 2009 at 8:16 AM, Aaron wrote:
>
> On Sep 25, 8:19 pm, Karen Tracey wrote:
> > You don't say how you are serving these files. Are you running the
> > development server? If so what does your static server config look like?
>
> Yes, this is on the development server. The one you
On Mon, Sep 28, 2009 at 6:58 PM, Thomas Steinmaurer
wrote:
>
> Hello,
>
> I'm using Django with Firebird and Oracle as backends. When integrating
> with a legacy Firebird database using the inspectdb command, I guess I
> hit a bug in inspectdb.py (although I'm not entirely sure), which does
> af
On Sep 25, 8:19 pm, Karen Tracey wrote:
> You don't say how you are serving these files. Are you running the
> development server? If so what does your static server config look like?
Yes, this is on the development server. The one you get by running
"python manage.py runserver".
If by stati
Another option is to use a build tool. I use waf
(http://code.google.com/p/waf/), a Python-based framework for
configuring, compiling and installing applications. I have it set up so
that it compiles the Python files, copies Python and other types of
files to an installed location, then remove t
Joshua,
Take a look at MooTools. It's a great library with a great API. It's
been said that JQuery makes the DOM fun, but MooTools makes Javascript
fun.
On Sep 28, 4:37 am, Joshua Russo wrote:
> On Mon, Sep 28, 2009 at 4:00 AM, Jani Tiainen wrote:
>
> > Joshua Russo kirjoitti:
> > > Great link
Hello,
I'm using Django with Firebird and Oracle as backends. When integrating
with a legacy Firebird database using the inspectdb command, I guess I
hit a bug in inspectdb.py (although I'm not entirely sure), which does
affect extracting foreign key relationships.
Starting in line 67:
if i
Good job! Didn't have much time to check the content but the first 4
or 5 videos seemed very interesting.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to djan
Hello Nick,
It looks like the issue comes from the definition of:
> DEFAULT_FILE_STORAGE = 'backends.s3.S3Storage'
You must set the complete path here, for instance
'django_storages.backends.s3.S3Storage' or wherever you installed it.
Hope it helps, do not hesitate to email me personally.
Re
Yes, I wanted to know also if Django can be used with Apache's Worker
MPM?
I use it ( together with older Django version) but with problems.I
often receive
error
like this
if self.connection.get_server_info() >= '4.1':
InterfaceError: (0, '')
So I thought it could be a problem of Apache's
Thank you for your answer.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
django
On Mon, Sep 28, 2009 at 4:34 AM, Torsten Bronger
wrote:
> Can it be safely used with Apache's Worker MPM?
The answer is, basically, "it depends on what *you*, the programmer, do".
The current stable releases of Django -- 1.0.3 and 1.1 -- don't by
themselves do anything which is known to cause t
Hallöchen!
Chris Withers writes:
> Pythoni wrote:
>
>> Is Django thread safe?If so, from which version? Thanks for
>> reply
>
> The answer is most likely "no, but it doesn't matter".
>
> Why are you asking?
Can it be safely used with Apache's Worker MPM?
Tschö,
Torsten.
--
Torsten Bronger,
gontran kirjoitti:
> Hello,
>
> I would like to know if it's possible to automatically perform a db
> operation at the end of a session.
>
> For example: a client book an item in a store but don't ckeck out his
> cart and close his browser. The item booked (which was unavailable
> during the ses
Pythoni wrote:
> Is Django thread safe?If so, from which version?
> Thanks for reply
The answer is most likely "no, but it doesn't matter".
Why are you asking?
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--~--~-
Is Django thread safe?If so, from which version?
Thanks for reply
L.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubsc
Hi,
try this bits you might find some window installation very easy and complete
with Django and GeoDjango for windows..
http://geodjango.org/docs/install.html
Adam Kipkemei
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
On Mon, Sep 28, 2009 at 4:30 AM, J wrote:
>
> Hello,
>
> I need to add custom dynamic admin actions (based on records in a
> related table), but I'm not entirely sure how to do this, as it's not
> explained in the docs.
>
> Basically, I have two models: "Transaction", which has a foreign key to
>
Paul,
> then generic keys may be the way to go. If however, you are simply
> having one of your own apps depend on another I strongly suggest not
> using generic foreign keys, they have drawbacks that could hinder you
> down the road.
I suppose you mean in terms of performance? Could you please
On Mon, Sep 28, 2009 at 4:00 AM, Jani Tiainen wrote:
>
> Joshua Russo kirjoitti:
> > Great links guys, thanks. I'm still in the mindset of frameworks just
> > making JavaScript less painful too and I'm looking for ways to move
> > beyond that. I just started looking at Dojo before posting this an
unfortunately, the redirect_field_name sets the "name" part of the get
variable, like
instead of
http://127.0.0.1:8000/accounts/login/?next=/my/view
you get
http://127.0.0.1:8000/accounts/login/?redirect_to=/my/view
On Sep 27, 5:34 pm, "Сергей Зигачев"
wrote:
> Sorry, maybe you should use som
> If you move your admin registrations to an admin.py file
> I believe your problem will go away.
Right you are! Well, that was somewhat foolish of me.
Thanks for your patience.
Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
Hello,
I would like to know if it's possible to automatically perform a db
operation at the end of a session.
For example: a client book an item in a store but don't ckeck out his
cart and close his browser. The item booked (which was unavailable
during the session) is now available for other cl
73 matches
Mail list logo