Hello,
What's the recommended place to put code that should be run once upon
application initialization? I'm currently doing something along the
lines of:
1. Create a new signal post_init
2. Connecting handlers to post_init in a file startup.py
3. Sending the signal at the top of a mode
This whole discussion is pretty much what virtualenv solves
http://pypi.python.org/pypi/virtualenv
Basically, for each package that you wanna reuse, install it into the
virtualenv for the project your working on. It works great.
On Sep 10, 2:00 pm, Brian Jones wrote:
> Well, it's not a solution
On Sep 10, 3:05 pm, Joshua Russo wrote:
> I wanted to remove the Sites app because it's not needed at the moment, but
> when I ran the unit tests for the project the Auth unit tests use Sites
> functionality. If I'm using Auth should I leave sites? I really just wanted
> to clean up the Admin ind
See belowOn Sep 25, 2006, at 7:03 PM, zenx wrote:I needed to make this and I hope it helps some people there. Features:- Generate thumbs from ImageFields when creating the models(file.jpg -> thumbnail saved as: file.thumbnail.jpg)- Showing thumbs in admin- Deleting thumbs when deleting the objectIn
Of course you have to "import os.path"On Sep 25, 2006, at 7:03 PM, zenx wrote:I needed to make this and I hope it helps some people there. Features:- Generate thumbs from ImageFields when creating the models(file.jpg -> thumbnail saved as: file.thumbnail.jpg)- Showing thumbs in admin- Deleting thum
urn ''
def do_get_content_section(parser, token):
return ContentSectionNode()
register.tag('get_content_section', do_get_content_section)
//
{% load content_utility %}
{% get_content_section %}
Anybody have any ideas as to what might
I found a way to work around this, but it's still bugging me that it
doesn't work this way.
On Jun 16, 2006, at 12:48 AM, Andrew Gwozdziewycz wrote:
> I'm trying to build a system, which uses generic views, inherited
> templates and template tags.
>
> Th
omment }}
28
29
30
Or did i do something wrong?
---
Andrew Gwozdziewycz
[EMAIL PROTECTED]
http://ihadagreatview.org
http://and.rovir.us
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
rying to get comments for a particular
Topic. Any suggestions?
---
Andrew Gwozdziewycz
[EMAIL PROTECTED]
http://ihadagreatview.org
http://and.rovir.us
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"D
whatever)" table anyway.
Just put it in the
survey table as it comes in.
But the point is that your only overhead is having an extra column,
rather than
multiple unnecessary inserts to the database.
---
Andrew Gwozdziewycz
[EMAIL PROTECTED]
http://ihadagreatview.org
http://and.rovir.us
-
m
which would let you conditionally output different views based on
permissions.
---
Andrew Gwozdziewycz
[EMAIL PROTECTED]
http://ihadagreatview.org
http://and.rovir.us
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
11 matches
Mail list logo