George Sakkis wrote:
>>I understand that Django maintains two parallel hierarchies of field
>>classes, one related to models that correspond to table columns and one
>>that maps these fields to forms so that they can be edited in the admin
>>interface. This works ok most of the time, but what if
Thx Graham ... that's what I'll do.
-Sandy
--~--~-~--~~~---~--~~
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, se
On Fri, 2006-05-12 at 10:06 +1000, Malcolm Tredinnick wrote:
> On Thu, 2006-05-11 at 21:27 +0100, Graham King wrote:
> > When trying to cache a page using the cache_page decorator, it doesn't
> > seem to work when passing a time with the python 2.4 syntax.
> >
> > This works:
> >
> > @c
On Thu, 2006-05-11 at 21:27 +0100, Graham King wrote:
> When trying to cache a page using the cache_page decorator, it doesn't
> seem to work when passing a time with the python 2.4 syntax.
>
> This works:
>
> @cache_page
> def index(request):
>do stuff
>
> As does this:
I'm using django with mod_python. When someone using internet explorer
is trying to download some file and in the promt box he chose "Open"
then the file is downloaded, but IE says that the file doesn't exists,
but if chose to "Save" the file then the file is saved and it's ok.
Then I started the
Great, glad to help out!!
--~--~-~--~~~---~--~~
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 [EMAIL
perhaps you need to sync your database
just a guess. I've made this mistake before
On 5/11/06, arthur debert <[EMAIL PROTECTED]> wrote:
>
> Hi folks.
>
> I've just ran into a small glitch when moving an app to a new server.
>
> My application is "missing" from the admin main view.
> Everythi
When trying to cache a page using the cache_page decorator, it doesn't
seem to work when passing a time with the python 2.4 syntax.
This works:
@cache_page
def index(request):
do stuff
As does this:
def index(request):
do stuff
index = cache_page(index, 60
On Thursday 11 May 2006 13:37, Ned Batchelder wrote:
> Is there some way to put the model and the logic in two separate
> places but somehow end up with an object class with real methods? Am
> I making any sense?
That sounds pretty much like a mixin, and these should be possible in
the magic-r
tomass wrote:
> In the Flatpages list in the admin interface by default I see "FlatPage
> object" instead of, for instance, the title or URL field.
>
It happened to my app too :-) It seems the most recent django calls
__str__ now, whereas it used to call __repr__.
--~--~-~--~
On 5/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> changes (added help_text to some fields) and when I ran the admin app I
> get an exception trying to add a new row to *any* of my tables (the
> core/auth tables work fine still). I am running 0.91 on Windows with
> SQLite3.
I seem to reca
On 5/11/06, tomass <[EMAIL PROTECTED]> wrote:
> In the Flatpages list in the admin interface by default I see "FlatPage
> object" instead of, for instance, the title or URL field.
>
> Ditto with Sites.
>
> Is this supposed to be this way? I realize I could create a wrapper
> around the object and
In the Flatpages list in the admin interface by default I see "FlatPage
object" instead of, for instance, the title or URL field.
Ditto with Sites.
Is this supposed to be this way? I realize I could create a wrapper
around the object and use a def __repr__(self) to take care of this,
but just wo
I was working away happily all day yesterday perfecting my model and
using the admin site for my lookup tables and other configuration (am
planning on using generic/custom views for the main application
tables). It was all working well, I was using manage.py install and
manage.py sqlclear to clean
I tend to:
- Update tables that have changed (usually adding a column).
- Write & run a python script to move data around as appropriate. It's
usually very easy with the django db api.
- Release your new code and bounce the server.
The advantages compared to the full dump / massage /
Hey!
What do most users do for upgrading production databases?
I have an upgrade I'd like to make to my game, but it will require
model changes.
I could:
1. export the whole database, drop the tables, load the new schema,
import the database
2. update just the tables that changed
either way, I
Internationalization docs say that you're supposed to run
make-messages.py from django's dir, or from the project or app's top
directories.
I expected it to find and parse my templates, too (perhaps finding them
via the TEMPLATE_DIRS variable?).
It doesn't seem to do so, though. I cannot make mak
Hi folks.
I've just ran into a small glitch when moving an app to a new server.
My application is "missing" from the admin main view.
Everything is installed correctly. I can mange.py shell and work on my
models and my data interactively (I've moved the db as well).
the application's models do
On May 11, 2006, at 7:37 AM, Ned Batchelder wrote:
> Django provides a great way to separate models and views, and even
> pre-populates the project tree with directories named models and
> views.
> But what about separating models and controllers, that is, separating
> the specific database repr
Can't seem to get my head around how to do the following:
Need to output a translatable string like this:
This is a link to stuff
But I don't want to have the HTML tags in my string resources. and I
don't want to split the string up into more than 2 elements ("This is a
%(link) to stuff" and "li
On 5/11/06, Ned Batchelder <[EMAIL PROTECTED]> wrote:
>
> Is there some way to put the model and the logic in two separate places
> but somehow end up with an object class with real methods? Am I making
> any sense?
I think what you may want to do there (and this may be a shot in the
dark) is to
On 5/11/06, Ned Batchelder <[EMAIL PROTECTED]> wrote:
> Django provides a great way to separate models and views, and even
> pre-populates the project tree with directories named models and views.
> But what about separating models and controllers, that is, separating
> the specific database repre
On 5/6/06, Jason F. McBrayer <[EMAIL PROTECTED]> wrote:
>
> Let me know when and how I can help on the new-auth branch.
I've commited the code at this point, but I still need to revise the
docs I've written. I hope to commit those tonight. For an example of
how to write a backend you can check ou
On 5/11/06, Alan Trick <[EMAIL PROTECTED]> wrote:
>
> I was wondering if anyone has thought about providing OpenID support in
> django. I'm writting an app and I really want to use django, but OpenID
> is somewhat important for technical reasons.
There is a new branch that provides the infrastruc
Sure, I understand that complete automation isn't practical, but a kind of generic "allow comments" utility within the admin might prove useful.For now though, your suggestion of a hand-rolled solution sounds like the way I need to go. Thanks for the advice.
-PhilOn 11/05/06, Waylan Limberg <[EMAI
Response looks like this
00:00.437 - server connected]
HTTP/1.1 200 OK
Date: Thu, 11 May 2006 09:07:37 GMT
Server: Apache/1.3.33 (Unix) mod_throttle/3.1.2 DAV/1.0.3
mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.2 mod_ssl/2.8.22
OpenSSL/0.9.7e
Vary: Cookie
Content-Length: 5406
Connection: close
Cont
On 5/11/06, Phil Powell <[EMAIL PROTECTED]> wrote:
> Thanks for the clarification - always useful while the documentation is in a
> state of flux.
>
> I've now got the front-end comments working as expected, and I'm mightily
> impressed with the ease of integration.
>
> I guess my early query was
Hi Alan.
have you tried this one ?
http://code.djangoproject.com/wiki/CookBookShortcutsOpenIDAuthentication
(it's about a month old, but I haven't used it my self)
cheers,
arthur
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On Thu, 2006-05-11 at 21:17 +1000, Malcolm Tredinnick wrote:
> On Thu, 2006-05-11 at 19:08 +0800, Alan Trick wrote:
> > Hi,
> >
> > I was wondering if anyone has thought about providing OpenID support in
> > django. I'm writting an app and I really want to use django, but OpenID
> > is somewhat i
Hi,
I'm working on a ticket management system (a la Trac)
for in-house applications for my company.
I have simple models:
Application, Component, Milestone, Ticket.
One can open a ticket on an application, for a specific
Component (belonging to the application selected), and attach
it to a miles
Django provides a great way to separate models and views, and even
pre-populates the project tree with directories named models and views.
But what about separating models and controllers, that is, separating
the specific database representation of an object from all of the
"business logic" n
Alan Trick wrote:
> A decentralized identity system. It allows you use the same login on
> multiple web pages.
Sounds cool ... thanks for the information!
Michael
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"D
A decentralized identity system. It allows you use the same login on
multiple web pages.
For example, if I own a website (me.example) then I can set up an OpenID
server. Then I can go to site.example and login using me.example as my
id (site.example) will then have me go login on my own OpenID if
On Thu, 2006-05-11 at 19:08 +0800, Alan Trick wrote:
> Hi,
>
> I was wondering if anyone has thought about providing OpenID support in
> django. I'm writting an app and I really want to use django, but OpenID
> is somewhat important for technical reasons.
There have been periodic threads about e
Alan Trick wrote:
> Hi,
>
> I was wondering if anyone has thought about providing OpenID support in
> django. I'm writting an app and I really want to use django, but OpenID
> is somewhat important for technical reasons.
What is OpenID?
Michael
--~--~-~--~~~---~--~-
Hi,
I was wondering if anyone has thought about providing OpenID support in
django. I'm writting an app and I really want to use django, but OpenID
is somewhat important for technical reasons.
Alan Trick
--~--~-~--~~~---~--~~
You received this message because yo
Thanks for the clarification - always useful while the documentation is in a state of flux.I've now got the front-end comments working as expected, and I'm mightily impressed with the ease of integration.I guess my early query was erring towards a (false) expectation that the admin would provide me
Thanks for clearing that up Luke!
--~--~-~--~~~---~--~~
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 t
Flavio,
Have you recently updated your django using svn ? I had the same
problem because there was a 'urls' directory with some .pyc files in
django/contrib/admin (there should only be a urls.py, no directory).
Deleting the urls directory fixed it.
I hope this helps,
Graham.
[EMAIL
On Thu, 2006-05-11 at 02:13 -0700, PythonistL wrote:
> Is there a way how to prevent a page from being cached?
> I use
> response= HttpResponseRedirect("/ChangeProductList/")
> response['Pragma'] = "no cache"
> response['Cache-Control'] = "no-cache,must-revalidate"
> response['Pragma'] = "no cache
Is there a way how to prevent a page from being cached?
I use
response= HttpResponseRedirect("/ChangeProductList/")
response['Pragma'] = "no cache"
response['Cache-Control'] = "no-cache,must-revalidate"
response['Pragma'] = "no cache"
response['Expires'] = "Wed, 11 Jan 2006 05:00:00 GMT"
return re
What's the order of magnitude for the number of simultaneous visitors
to be safe?
I've seen on http://wiki.dreamhost.com/index.php/Django that one is
allowed to use ~50 CPU minutes per day, could it be related?
Cheers,
Marco
--~--~-~--~~~---~--~~
You received thi
I also use Dreamhost, but recently not running well for me. I noticed
that when more users log in, the site is down( timeouts) and I must
ask Dreamhost support to correct the problem.
Yesterday, it happened again, and I complained that the problem repeats
all over and over again so they told me
Hi Malcolm,
Got it. That's all I need to know.
Thanks!
Mikah
--
--~--~-~--~~~---~--~~
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 uns
44 matches
Mail list logo