Re: Capability Problem With Django ORM

2008-01-24 Thread David Marquis
Hi xunSir, Personally, I can't understand your question. You will have to get some help with english speaking because what you wrote there is merely understandable. Thank you, -- David On 24-Jan-08, at 12:04 AM, xunSir wrote: class Person(models.Model): PIN = models.Char

'admin_list' is not a valid tag library

2008-01-29 Thread David Sauve
Hi All, Working my way through the Django tutorials and I've run into a bit of snag on tutorial 2. After enabling the admin module, I get the following error when I try to view any of the items in the interface (i.e, if I click on "Polls") "admin_list' is not a valid tag library: Could not load

Re: 'admin_list' is not a valid tag library

2008-01-29 Thread David Sauve
rs, if it's possible. Maybe something that indicates which module Django tried to read the missing symbols from instead of just an error indicating it couldn't find them. We'll see if anyone else agrees with me. David On Jan 29, 2008 3:49 PM, George Herndon <[EMAIL PROTECTED]&g

Re: sudo under django or better solutions?

2008-02-01 Thread David Reynolds
web apps to be able to run system commands. Another approach might be to save any data into the database that you need and then run a cronjob as a sudo privileged user to run the actual system jobs. This will obviously only work well if it's something that can be ba

Re: template: how to make use of forloop.counter0

2008-02-04 Thread David Reynolds
On 3 Feb 2008, at 3:32 pm, Michael Hipp wrote: > > Malcolm Tredinnick wrote: >>> Or is there some other way to get at my 'align' list? >> >> Look at the {% cycle %} template tag. It's designed for precisely >> this >> purpose. > > Thank you. But can someone show me how to make 'cycle' work? >

Re: Read-only connection to database. How to?

2008-02-04 Thread David Reynolds
r you can do ./manage.py runserver --settings=yoursite.readonlysettings # for the display side of the site and ./manage.py runserver # for the admin side of the site When you deploy the site you can set up which settings file is used too. -- David Reynolds [EMA

Re: Code upgrade

2008-02-05 Thread David Marquis
If you didn't make any change to the Django source base, you can simply download the latest release and install the new version. If needed, you could also download the latest development version through the Subversion repository. On 5-Feb-08, at 12:51 PM, Chris wrote: Hello, does anyone

Re: Extending Django's admin application

2008-02-06 Thread David Reynolds
around that will do it, most notable are listed here: http://code.djangoproject.com/wiki/ThumbNails -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: template & forloop help

2008-02-08 Thread David Reynolds
plate? > > {% for div in divs %} > {{ form.name|forloop.counter }} > {% endfor %} > > If i just did it manualy like below it works fine > > {% for div in divs %} > > {% endfor %} > > Any help would be greatly appreciated. Does doing this do what you want?

How to handle timezones correctly?

2008-02-08 Thread David Larlet
eally surprised that some kind of "rounded" function for timezones exist. Or maybe I just didn't find it? Any tips will be really appreciated. Thanks, David [1] http://pytz.sourceforge.net/ --~--~-~--~~~---~--~~ You received this message because you ar

Re: Issues with IE7 and {% for %} {% endfor %} tag

2008-02-21 Thread David Marquis
sion, then "prize" might simply be empty in IE. -- David On 21-Feb-08, at 8:26 AM, merric wrote: I have a template that uses {% for i in prize %} {{ i.description }} {% endfor %} This iterates fine in Firefox, but in IE7 it keeps coming up blank. I can't see any html iss

Re: mysqldb fails to import after following directions

2008-02-25 Thread David Reynolds
On 23 Feb 2008, at 3:51 am, newbiedoobiedoo wrote: > Am in the process of setting up the mysqldb and it succeeds to install > and build, > however, the import mysqldb test command still fails. How about: import MySQLdb (the case is important) -- David Reynolds [EMAIL

Re: Django Filebrowser with FastCGI

2008-02-25 Thread David Reynolds
/ BackwardsIncompatibleChanges#_nolongerinbuiltins -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@

Re: Assigning Dates to DateField instances

2008-02-25 Thread David Marquis
Hi Tim, > lEvent = Event(request.POST) Are you sure it's not that line causing trouble ? -- David On 21-Feb-08, at 5:16 PM, Tim Sawyer wrote: I'm not sure I understand what I'm doing here. I'm trying to create an Event object from the data in a form (a simple

Re: How to display a date in my template as Mar. 1 2008...not 2008-03-01?

2008-03-02 Thread David Marquis
about the syntax of template filters. -- David On 2-Mar-08, at 1:14 PM, Greg wrote: Alex, I tried that however I get the following error: TemplateSyntaxError: Invalid block tag: 'a.date' Here is my template {% for a in entries %} Date: {% a.date "jS o\f F" %} {% endfor %}

Fwd: How to display a date in my template as Mar. 1 2008...not 2008-03-01?

2008-03-02 Thread David Marquis
Or rather : {% for a in entries %} Date: {{ a.date|date:"jS o\f F" }} {% endfor %} -- David Begin forwarded message: From: David Marquis <[EMAIL PROTECTED]> Date: March 2, 2008 8:15:00 PM EST (CA) To: django-users@googlegroups.com Subject: Re: How to display a date i

Re: Advanced admin interface customization question

2008-03-06 Thread David Reynolds
ich isn't what I want (as there are > several hundred values). > > Is there some easy built-in way to do either or both of these things > that I'm just not aware of? As you say, in trunk currently there is no real way of doing this. I suggest you take a lot at the newform

Re: Help needed (very granular admin permissions)

2008-03-07 Thread David Reynolds
haven't been able > to find any example like this on the net so far. There used to be a branch of django that did per-object permissions [0], which sounds like what you want, however, I don't think it's actively worked on nowadays. You'll probably have to roll your o

Re: Add a new line in TextField

2008-03-10 Thread David Reynolds
On 9 Mar 2008, at 1:06 pm, Daniel de la Cuesta wrote: > Is there any way to add som html tags in the "TextField? If you want a rich text editor to insert the html for you, you could try TinyMCE http://code.djangoproject.com/wiki/AddWYSIWYGEditor -- David Reynolds [EMAIL P

Re: Admin recipes anyone?

2008-03-10 Thread David Reynolds
ld be very grateful! Brandon, Whilst there are hacky, workaround kind of ways of doing this with the admin system as it currently is, I suspect if wait until newforms- admin hits trunk, it'll be a hell of a lot easier to do any admin customisation you need to do. -- David Reynolds [EMA

Re: How do you make a CMS in Django (trying to get the big picture)?

2008-03-26 Thread David Reynolds
gt; actually build a CMS. It really depends on what you want the CMS to do. http://www.pylucid.org/ is a CMS written in django, perhaps you could get some ideas on where to start from that? -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You recei

django.newforms and AJAX

2008-03-27 Thread David Cramer
As promised, Im going to release some tools that make it easier to integrate client and server-side javascript validation and utilities for newforms. To do this though, I first need to come up with a list of what is needed. Here is my current list: - Validation per-field via client-side and serve

Re: django.newforms and AJAX

2008-03-27 Thread David Cramer
I was planning on using mootools, but it could just as easily be done with jQuery or no libraries (as all we need are a few basic things.. DOM selection and AJAX, the rest is cake) On Mar 27, 7:58 am, Michael <[EMAIL PROTECTED]> wrote: > David, > > This would be really cool becau

Re: django.newforms and AJAX

2008-03-27 Thread David Cramer
I'm not too familiar with .NET, but with middleware and decorators it would be possible, there would just need to be some awareness. One thing we had done on Curse, was wrap the jQuery base AJAX call, and our login_required methods. If a JS method was sent in (all JS methods were to /js/ or had js

Re: javascript in django

2008-03-28 Thread David Marquis
document.getElementById("field_id") OR if you use Prototype library : $("field_id") -- David On 28-Mar-08, at 10:49 AM, didia lim wrote: > hi baxter, how can JS get the texfield by ID.. is there any > documentation or example? sorry i'm still new in dj

Re: Django Admin WAP

2008-03-30 Thread David Marquis
xcept from the sheer pleasure of destroying a (old) cell phone. -- David On 30-Mar-08, at 9:15 PM, leonel wrote: > > Jeff Anderson wrote: >> leonel wrote: >>> Hello: >>> >>> Is there a WAP admin for django ?? Been searching and didn't found >>&g

Re: Model Inheritance

2008-03-30 Thread David Marquis
I think that Django does not support model inheritance (yet). The dev team seems to have thought about it : http://code.djangoproject.com/wiki/ModelInheritance You might want to ask Google for "django model inheritance" for all the information you need. -- David On 30-Mar-08,

Re: datetime 8 hours off

2008-04-04 Thread David Reynolds
le will be the date/time when apache is started/restarted (which could be at the same time everyday). Thanks, David -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Sphinx Full-Text Search

2008-04-05 Thread David Cramer
I know some of you out there use my full-text layer relying on Sphinx in Django. I released a new version yesterday, which on my initial tests is fully backwards compatible. So the point, what I'm looking for, is has anyone put the new version to use yet? If not, can you try it on your working co

Re: Looking for Conferences/Events on Django, Python, MySQL, etc in Europe 2008?

2008-04-08 Thread David Larlet
RuPy in Poznan, PL next weekend > EuroPython in Vilnius, LT july Pycon fr in Paris: http://fr.pycon.org/ I have 2 talks (in French): * Why django? (for beginners) * Daily Django: quality and performances David --~--~-~--~~~---~--~~ You received this message because you

Re: Google App Engine & Django

2008-04-08 Thread David Larlet
ike me). You can use your own version of Django, see http://code.google.com/appengine/articles/django.html David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: Cleaning up Word's mess in text areas using tiny_mce

2008-04-09 Thread David Reynolds
n, but this then means you have to reformat it. -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@

Re: Cleaning up Word's mess in text areas using tiny_mce

2008-04-10 Thread David Reynolds
t > with everything except some tags, like , , etc., stripped out. > > This works fine, whether on bad formatting coming from word, or > unwanted formatting done in TinyMCE (BGColor, etc.). > > 1: http://www.gnome.org/~jdub/bzr/planet/2.0/planet/sa

Re: Two sites, one django project

2008-04-15 Thread David Reynolds
s.path.join(PROJECT_DIR, 'templates/site1'), ) EMAIL_SUBJECT_PREFIX = '[site1] ' Then when you run the development server for each site or deploy the site you would pass the specific settings file rather than the common one. I hope that makes some sort of sense. -- David

[OT] Sorry for the "spam" on /community/

2008-04-24 Thread David Larlet
e planet. I do apologize, if you're interested in code, have a look at code.biologeek.com , that's the only thing I can offer for now :) Cheers, David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Weblog archive links are bad

2008-04-24 Thread David Reynolds
; > I tried to open a trac ticket on this, but it thinks I'm a spammer. Don't bother opening a ticket.. it's because there were no entries in March. -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because

Re: Grrr, can't import custom template tag

2008-04-28 Thread David Reynolds
If you're running on Apache, have you restarted it? Have you stopped and started your development server? -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: where can i download newformsadmin

2008-05-06 Thread David Reynolds
trunk checkout. -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 fr

Re: mod_python vs. mod_wsgi

2008-05-06 Thread David Zhou
It works for me. Here's the body of that post: * Support for mod_wsgi: Setting up a default Django app with mod_wsgi is now an option in our one-click installer. So if you prefer mod_wsgi over mod_python you will no longer have to install it manually. I just ran a simple benchmark using "a

Re: Changing timestamps in apache with mod-python

2008-05-13 Thread David Reynolds
On 13 May 2008, at 9:52 am, Sebastian wrote: > I have checked the Python's datetime in a shell and it returns the > correct time. I have also checked the datetime in a manage.py shell > and it also returns the correct value. Perhaps the timezone isn't set correctly on your

django-ratings

2008-05-13 Thread David Cramer
I'm building a new pluggable ratings app (django-voting doesn't come close to covering what my specs are). It's built around a similar architecture to what we used on Curse. What I'm looking for right now is feedback on my proposed API and usage: http://code.google.com/p/django-ratings/ The solu

Re: Custom Auto-Incrementing Columns

2008-05-13 Thread David Cramer
In MySQL and PostgreSQL you can go into the database and modify the auto increment sequence value to start at something else. There's no way to set that via Django at the moment. On May 13, 4:49 pm, jwwest <[EMAIL PROTECTED]> wrote: > Hi all, > > Is there a way to create a column that has a uniqu

Re: django-ratings

2008-05-13 Thread David Cramer
; On Tue, May 13, 2008 at 11:23 PM, David Cramer <[EMAIL PROTECTED]> wrote: > > >  I'm building a new pluggable ratings app (django-voting doesn't come > >  close to covering what my specs are). It's built around a similar > >  architecture to what we used on C

Re: Python issues on mac. Python not working.

2008-05-14 Thread David Zhou
Just grab macports or fink and install python from that. On May 14, 2008, at 12:32 PM, Jason Ourscene wrote: > > Ok now that the shock has passed a bit, anyone know how to do this > without reinstalling the OS. > > Thanks!!! > > On May 14, 11:47 am, Jason Ourscene <[EMAIL PROTECTED]> wrote: >>

Re: where does this caching come?

2008-05-14 Thread David Zhou
rom a "request handler" function (myproject.myapp.views.index) Are you restarting the server between module changes? --- David Zhou [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: Python 3000 support, any plans?

2008-05-15 Thread David Zhou
reaches a non-alpha state. If you want to use Django for something, I'd start now -- or with 1.0. Waiting for Python 3000 is a bit silly. --- David Zhou [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

newforms-admin and intermediary tables for m2m relationships

2008-05-19 Thread David Robinson
We are using our own intermediary table for a many-to-many relationship so that we can store additional information about the relationship itself, and we are just embarking on a thorough overhaul of this app's code. In the existing project, we heavily modified change-list and change-form templ

django_settings_module not being set by manage.py

2008-05-23 Thread David Robinson
I have run into a problem that I don't understand - when I try to run "shell manage.py shell" I just started getting an error about the DJANGO_SETTINGS_MODULE environment variable not being defined. I found the information I needed to work around the problem (on this list - thank you, Evert Ro

Re: django_settings_module not being set by manage.py

2008-05-23 Thread David Robinson
Karen Tracey wrote: > manage.py doesn't set the environment variable, it just imports settings > assuming it is in the current directory. Since you don't get an error > message that that failed, presumably it worked so the question is why is > some subsequent code trying to use the environment va

Re: django_settings_module not being set by manage.py

2008-05-23 Thread David Robinson
Karen Tracey wrote: > So what's changed, I'm guessing, to introduce this problem is you added this > import to to your project's __init__.py file. Karen, Thanks - while I was trying to get my head wrapped around newforms-admin, I put some stuff in __init__.py and then forgot to take it out. I

Re: How to get child model' name from parent obj in Multi-table inheritance

2008-05-30 Thread David Zhou
x27;): #is man elif hassattr(person_obj, 'woman'): #is woman else: #is freakish mutated thing --- David Zhou [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&

Relative views in urls.py

2008-05-30 Thread David Cramer
I've come across the need lately, for my applications to be completely standalone, and this has presented itself a few problems: - I need urls.py to be dynamically editable (at least at runtime). I think I can deal with this one, just haven't gotten to it. - More importantly, I need urls.py to be

Re: How to get child model' name from parent obj in Multi-table inheritance

2008-05-31 Thread David Zhou
On May 30, 2008, at 11:20 AM, jonknee wrote: > On May 30, 10:38 am, David Zhou <[EMAIL PROTECTED]> wrote: >> You can use also use hasattr(). >> >> Something like >> >> if hasattr(person_obj, 'man'): >> #is man >> elif hassattr(

Re: Painfully slow... why?

2008-06-09 Thread David Zhou
0.37 DB: 0.11 Queries: 3 > Stats: Total: 0.21 Python: 0.17 DB: 0.05 Queries: 32 > Stats: Total: 0.27 Python: 0.22 DB: 0.05 Queries: 32 What's up with that second line? Are you doing anything fancy? --- David Zhou [EMAIL PROTECTED] --~--~-~--~~~---~--~---

Re: Django graphic designers

2008-06-10 Thread David Reynolds
of my options is to hire a designer, but I would prefer to hire > one > with Django knowledges. Another resource... http://www.oswd.org/ -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Generic foreign keys and double underscore relation spanning

2008-06-10 Thread David Zhou
erribly elegant. Is there a better way to do this? --- David Zhou [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

Re: Dictionaries, templates and best practices

2008-06-17 Thread David Zhou
> assigned to 'post' in render_to_response) > > > > {% for x in post%} > > {{ post.0.title }}^M > > > > > >{{ post.0.post }}^M > > > > It will only show the first part of the dictionary and 'x' as a > number >

Re: ImageField

2008-06-25 Thread David Reynolds
or "license" for more information. (InteractiveConsole) >>> import Image -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Re: requiring fields in the admin page

2008-07-01 Thread David Keegan
Awesome! thanks On Jul 1, 2008, at 2:15 AM, Julien wrote: > > By default all items are required. To make a field optional you have > to use blank=True. > Some interesting reading here: > http://www.b-list.org/weblog/2006/jun/28/django-tips-difference-between-blank-and-null/ > > On Jul 1, 7:10 pm

Using SQLite in production

2008-07-02 Thread David Marko
ne explain? Thanks, David --~--~-~--~~~---~--~~ 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

URL pre-processing middleware

2008-07-02 Thread David Christiansen
Hi everyone, I'm in the process of using Django to develop a CMS for our Web site, and one thing that I'd like to do is to find a way to maintain compatibility with the old URLs on the site. These old URLs are, however, somewhat crufty. In particular, I'd like to be able to do the following to UR

Editing content in Django Admin change-list

2008-07-02 Thread David Melton
I would like to be able to change the status of an item (Yes/No Field) in a list of items from the change-list view without having to open the item and change it within the change form. Is there an easy way (built in) to the Django admin framework to allow this? --~--~-~--~~-

Re: Include django views in other web sites

2008-07-03 Thread David Christiansen
Just a thought, but can you put this information in an iframe? On Jul 3, 1:28 pm, Alessandro <[EMAIL PROTECTED]> wrote: > I need to include some django output in other web pages. The problem > is that Sometimes I cannot use server side includes on the other side, > and I don't know how to do. > >

Re: determining model subclass

2008-07-08 Thread David K
Dave's method is what I also use. I was hoping someone would come up with an easier way, but I think it is a limitation of the way the database tables are created in multitable inheritance. David On Jul 8, 6:13 am, Chester <[EMAIL PROTECTED]> wrote: > André, > I'm assum

ANN: django-oauth, a generic OAuth provider implementation

2008-07-12 Thread David Larlet
which correspond to tests) implements the example of the OAuth specification[5]. The consumer part is still a work in progress but we plan to release it too. Do not hesitate to send feedback and/or review of the code which is already in production at mixin. Best regards, David Larlet PS

post_url in admin add_stage

2007-02-16 Thread David S.
request, app_label, model_name, post_url='/%s' % (post_url,)) #from the template: Peace, David S. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: post_url in admin add_stage

2007-02-16 Thread David S.
The delete_stage view does not take a post_url argument. Code follows, but, really, it seems there must be a better way. Thanks. #from url.py: urlpatterns = patterns('', (r'^admin/(?Pcourse)/(? Pcoursetagassignment)/(?P\d*)/delete/(? P.*)$' , 'admin.views.delete_stage_with_post_url'), ) #f

Pycon Djangonauts

2007-02-23 Thread David Cramer
Anyone else around who's interested in meeting up before Monday? We are staying in the event hotel and I'm very interested in talking with other Django or even Python developers who manage high load, or even smaller websites, to see what they have come up with for solutions as well as standards fo

Re: Upcoming Django release, and the future

2007-02-27 Thread David Larlet
2007/2/27, Manoj Govindan <[EMAIL PROTECTED]>: > > Will 0.96 have support for fixtures (a la #2333)? > Also, am I the only one waiting for them? ;) > Read the entire thread, we are all waiting for a single word of Adrian ;-). Ch

Serving Media through mod_proxy.

2007-02-27 Thread David Abrahams
I'm running django with Apache/mod_python and serving media through lighttpd. I have only one IP address, so lighttpd is running on port 8081, but some of my clients are behind firewalls that block ports other than 80. I'm planning to ditch Apache and run everything with lighttpd under FastCGI,

Re: Serving Media through mod_proxy.

2007-03-01 Thread David Abrahams
"Jorge Gajon" <[EMAIL PROTECTED]> writes: > Take a look at this page under the section titled "Serving media files" > > http://www.djangoproject.com/documentation/modpython/ > > That way you can also serve your media files from your same Apache instance. Yes, I know. However, that suffers many

Runserver Hanging

2007-03-05 Thread David Cramer
I've had issues as of lately with runserver hanging upon using it for the dev server. I've been unable to diagnose this myself so here's my plea :) The issue seems to be on the system as a whole, and I've tried going through the list of middleware and context processors and none of that seemed to

Re: Runserver Hanging

2007-03-05 Thread David Cramer
To expand on this, sometimes the pages load as they would on our live environment, but it randomly (and happens most of the time) hangs to where it takes up to a couple minutes to load a page. On Mar 5, 9:14 am, "David Cramer" <[EMAIL PROTECTED]> wrote: > I've had

Re: Runserver Hanging

2007-03-05 Thread David Cramer
The traceback is only within the console and from broken pipe.. theres no errors on the page :) On Mar 5, 10:28 am, Tim Chase <[EMAIL PROTECTED]> wrote: > > To expand on this, sometimes the pages load as they would on our live > > environment, but it randomly (and happens most of the time) hangs

Re: select_related() and null=True

2007-03-05 Thread David Cramer
The problem with this is, when the foreignkey can be null the only way to reference it properly is with a LEFT JOIN. Now, I'm not sure why it isnt implemented in ORM, but I strongly encourage you to find a differently solution, as LEFT JOINs can be VERY costly on system resources. On the same not

Web 2.0 Expo

2007-03-14 Thread David Cramer
Any other Django users going to be in the area? I see there's a Django talk at the conference by Adrian and there's a lot of other great stuff going to be there as well. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Per-app permissions ?

2007-03-14 Thread David Cramer
Because this has everything to do with the web 2.0 expo On Mar 14, 9:33 am, "Chris Brand" <[EMAIL PROTECTED]> wrote: > What's the best way to restrict access on a per-app basis ? > I want to have two apps, with some users allowed access to one, others > allowed access to the other, and some allow

Re: creating a website log

2007-03-19 Thread David Larlet
know if it's feasible easily with signals. If yes, where did I have to put this code? Documentation on signals is a bit short... even if mercurityde whitepaper is a great help (http://www.mercurytide.com/whitepapers/django-signals/). Thanks, David --~--~-~--~~~---

Dynamically generated template variables in admin?

2007-03-20 Thread David Zhou
variable_title }}. Then it will use the variable name with underscores replaced with spaces as the title. Should I wait for the new admin code before trying to edit the admin interface? Does this sound like a good way of doing things?

Re: Suggestions for Django Presentation

2007-03-21 Thread David Larlet
such a great > framework? Testing is a must have for long term support. Templatetags are great too. Good luck, David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: fcgi - issues

2007-03-26 Thread David Zhou
On Mar 25, 2007, at 8:19 PM, Malcolm Tredinnick wrote: > > On Sun, 2007-03-25 at 15:54 -0700, David M. Besonen wrote: >> are there any issues/caveats/problems around using django + fcgi? >> >> i'm guessing there might things to be wary of, given that >> mod_pyt

Re: Does the server have to restarted when you make a change to the code?

2007-03-27 Thread David Zhou
code (this was a big deal for my hosting provider).<< > > http://snook.ca/archives/php/cakephp_initial/ > > Is that post correct? You have to restart the server whenever you make > a change to the django code? I haven't needed to do so for template chan

Re: User profile and sliding date range data model?

2007-03-30 Thread David Reynolds
noys me about datetime is that it doesn't handle leap years properly. However, if you use python-dateutil[1] it has a relativedelta so you can do things like: >>> datetime.date.today()+relativedelta(years=+3) datetime.date(2010, 3, 30) .. which will take into account leap year

Re: User profile and sliding date range data model?

2007-03-30 Thread David Reynolds
On 30 Mar 2007, at 9:21 am, David Reynolds wrote: > > One of the things that annoys me about datetime is that it doesn't > handle leap years properly. However, if you use python-dateutil[1] it > has a relativedelta so you can do things like: > >>>> datetime.dat

Differentiate addition or change during post_save signal

2007-04-04 Thread David Larlet
nstance.id) LogEntry.objects.log_action(..., CHANGE) except sender.DoesNotExist: LogEntry.objects.log_action(..., ADDITION) It works but it had to be call by the pre_save signal and I need to be sure it's saved before logging it. Any thoughts? Thanks, David --~--~-~--~~~-

Re: Differentiate addition or change during post_save signal

2007-04-04 Thread David Larlet
plicated because I need to declare four signals for each models (ouch!) but it works :-). If someone had a more elegant solution... Regards, David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Re: Admin History - Date not formatted

2007-04-05 Thread David Reynolds
46FalseFalse > > I am using Windows with timezone (GMT +10:00 Canberra, Melbourne, > Sydney) and have set the settings.py variable to "Australia/Melbourne" > > Does anyone know why Django is doing this? Set USE_I18N to true in your settings.py Than

Re: Admin History - Date not formatted

2007-04-05 Thread David Reynolds
On 5 Apr 2007, at 1:35 pm, Malcolm Tredinnick wrote: >> Set USE_I18N to true in your settings.py > > We fixed ticket #3918 today (in [4931]), so this problem is fixed > in the > very latest code, too. Even better. Thanks Malcolm :) -- David Reynold

Smartest way to display help messages per view

2007-04-06 Thread David Larlet
there is a smarter way of doing this? Thanks, David ps: the help is not user-related so user.message_set is not an option. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: Smartest way to display help messages per view

2007-04-06 Thread David Larlet
t; template that way? > > On Apr 6, 10:23 am, "David Larlet" <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I need to display an help message for each view of my app. Sometimes > > the message can be shared between more than one view, sometimes not. >

Re: Smartest way to display help messages per view

2007-04-06 Thread David Larlet
Ok, thanks for your answer. Eventually, I choose oliver's solution because it handles I18n thanks to gettext and model didn't (easily). 2007/4/6, Henrik Lied <[EMAIL PROTECTED]>: > > I'm not quite sure what I'd to, either. Giving the help info its own > model might be good in some way, but it mig

Re: Need dedicated hosting for Django

2007-04-17 Thread David Zhou
may consider SliceHost > (Xen-based) and Linode (UML-based). The first one is used, and > raved about, > by a person I trust (hi, dialtone!). I like RimuHosting, and would happily recommend it to anyone. --- David Zhou [EMAIL PROTECTED] --~--~-~--~~~

Re: Django Schema Migration

2007-04-19 Thread David Marko
Hello, Can you share the initial code with us? This approach seems to be good. Do you have experience on some project? David Mike H napsal: > Hi all, > > I've been working on a tool to give me an automated way of altering the > schemas on servers I deploy my django applications

Re: Django Schema Migration

2007-04-20 Thread David Marko
How can 'Python migrations' be used? Can someone explain or place some example? Where should I put the function? --- excerpt from docs --- Using Python migrations Sometimes it might be easier to do your migration using Python and the Django models. To define a python migration, simply define a fu

Re: Django Schema Migration

2007-04-20 Thread David Marko
Thanks for an advice. I found problem with migrations when running tests - python manage.py test . It seems that migration is run before django creates table based on model. Tests should probably not run migratons at all. --~--~-~--~~~---~--~~ You received this me

Re: Django Schema Migration

2007-04-20 Thread David Marko
GREAT WORK! Migrations are being discussed for years and now we have some real-life solution. And I must say - it works and helps. Now we should get rid of SQL, we need some nice DSL syntax. David --~--~-~--~~~---~--~~ You received this message because you are

Re: audit trail support

2007-04-23 Thread David Larlet
delete, sender=Todo) dispatcher.connect(log_post_delete, signal=signals.post_delete, sender=Todo) Anyway, I'm really intersted in your work, let us know your progression ;-). Regards, David --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Problem sorting columns in Admin

2007-04-28 Thread David Hancock
Thanks. The patch with 1576 worked fine. I understand about not wanting to patch current admin--makes perfect sense. Thanks also to Marcelo for identifying the problem and fix. On Apr 28, 7:46 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2007-04-28 at 17:49 -0400, Hanco

Re: Django Diagram

2007-05-04 Thread David Larlet
or suggestions for making it better? Have you seen the Jeff Croft's one? http://www2.jeffcroft.com/photos/432038560/ Regards, David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Is it possible to redirect with POST data?

2007-05-04 Thread David Larlet
> under my control, so I can't just change it to use GET data. > > Thanks, > Bob > In a RESTful goal, I'd like to do the same and I'm really interested in any solution. Regards, David --~--~-~--~~~---~--~~ You received this message be

<    3   4   5   6   7   8   9   10   11   12   >