Re: is there any host servers that supports Django based sites?

2007-07-15 Thread David S.
> can I get a link to Webfaction? googling webfaction --> http://www.webfaction.com/ --~--~-~--~~~---~--~~ 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@googlegrou

newforms-admin: admin related field options

2007-07-14 Thread David S.
I am using the newforms-admin branch, which is really great. But I realized I still have admin specific fields options in my model, e.g. blank, choices. I am wondering where they really belong. Thanks, David S. --~--~-~--~~~---~--~~ You received this message

Re: is there any host servers that supports Django based sites?

2007-07-14 Thread David S.
> Webfaction django hosting rocks. I second that. Truly professional, responsive, and helpful. Peace, David S. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

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

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: memcached backed

2007-01-30 Thread David S.
On Jan 30, 12:16 pm, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > Django's cache only implements a minimal subset of functions -- those > supported by *all* cache backends. You can always interact with the memcached > directly For example we clear memcached like this: from django.core.cac

proper way to set up admin with SSL

2007-01-30 Thread David S.
'/var/local/source/django_src'] + ['/var/sites/ ourroot'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE our.settingsadmin PythonInterpreter admin PythonDebug On #... It seems to work! Peace, Da

Re: Database design

2006-11-14 Thread David S.
Data Modeling Essentials by Graeme Simsion, Graham Witt http://preview.tinyurl.com/yy6vlc --~--~-~--~~~---~--~~ 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@goo

POST Behavior

2006-11-10 Thread David S .
reate" brings you to a page with a link to download the PDF. Any thoughts on whether this is the "right" way to do this? Thanks for any advice. Peace, David S. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Django comments system and ajax

2006-10-10 Thread David S .
dding the necessary javascript. Peace, David S. --~--~-~--~~~---~--~~ 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 thi

Re: Custom admin page

2006-10-10 Thread David S .
patterns('', (r'^admin/manager/sale/add/$', 'sale.add'), (r'^admin/', include('django.contrib.admin.urls')), ) If you go this route, you may still be able to take advantage of generic views, e.g. django.views.generic.create_update.create_object. Peac

default manager and contrib.Admin

2006-10-09 Thread David S .
://code.djangoproject.com/ticket/2892. A work-around is to use the undocumented Admin.manager field to explicitly set the manager you want the Admin interface to use. For ordering, you need to apply the patch. Peace, David S. --~--~-~--~~~---~--~~ You received this message because

Re: Implementing entity relationships that use compound keys in a Django application

2006-10-04 Thread David S .
load: results_for_post, error: function(type, error) { alert("Error getting accounts: " + error); }, }); } return false; } It also makes it so they can not enter an illegal value in this view. Anyway, perhaps the SQLAlchemy branch might someday address t

Re: order admin list view

2006-10-04 Thread David S .
> some details So, I looked at the admin code and noticed that in the absence of any ordering it orders by PK DESC. I submitted a patch that would change the behavior to use the ordering returned by a custom default manager. http://code.djangoproject.com/ticket/2870 Peace, Davi

order admin list view

2006-10-03 Thread David S .
ld it? Is there a workaround besides implementing the admin interface for this class myself? Peace, David S. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

_manipulator_validate_FIELD

2006-06-13 Thread David S.
Is there a replacement for the old _manipulator_validate_FIELD magic in the post 0_91 trunk? If you can not make an instance method, then you lose, for example, "hasattr(self, "original_object")". Thanks, David S. --~--~-~--~~~---~--~~ You r

Re: Fate of 0.91 projects

2006-04-14 Thread David S .
Jeroen Ruigrok van der Werven gmail.com> writes: > On 4/14/06, Kenneth Gonsalves thenilgiris.com> wrote: > > next release *must* be magic removal - no point doing any interim ... > Better to bite the bullet and get this over with. ... I was thinking simultaneous release. Really just for the s

additional class info on edit_inline

2006-04-13 Thread David S .
Anyone know of a neat way to add class info to the admin interface html for fieldset that edit_inline generates? I actually want to see this inline stuff, but use a class to disable editing it. --~--~-~--~~~---~--~~ You received this message because you are sub

Re: Django vs Rails

2006-04-13 Thread David S .
Glenn Tenney think.org> writes: > > 2. In Rails you need to declare your SQL code *and* tell Rails about > your schema, but in Django it's all very nicely put into an object > oriented description in your model. A big win, to me, for Django. Rails has something called migrations (see http://

Re: Fate of 0.91 projects

2006-04-13 Thread David S .
The 0.92/0.95 idea or some variation is good. Today's trunk is quite competant and should have it's own label before the significant changes the M-R development will introduce. With more thanks for all the hard work, David S. --~--~-~--~~~---~--~~ Yo

Fate of 0.91 projects

2006-04-13 Thread David S .
/1442), expect a 0.91.1, or grab the last pre-magic-removal version from svn when that exists? Thanks for the advice. Peace, David S. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: prefill admin forms

2006-02-15 Thread David S .
> default? e.g. > > field = meta.CharField("Caption", default="some default text", ...) Sadly, no. The use case is a link from another context (page) that contains some of the values in question, i.e. from an author detail, click "add book" so that the book add admin page is returned with

prefill admin forms

2006-02-15 Thread David S .
Is there a mechanism to pre-populate fields in an admin add page? I can imagine a javascript hack or trying to use the admin template from my own view somehow, but I am hoping for something really simple that I missed in the docs. Peace, David S.

Django+Postgre+Apache+Windows

2006-02-11 Thread David S .
I have followed the docs to the letter regarding my mod_python setup but I am having a frustrating experience with Apache falling over. I can not seem to find a foothold for solving this and I thought I would ask if anyone has advice or has seen (and fixed!) anything like this. The behavior is

validators 9.1

2006-01-17 Thread David S .
I have some custom validation I want only on adding a record, not changing it. Is there a way to qualify my _manipulator_validate_FOO() method or to find out from within it if it is an add or change? I know I can create a custom manipulator to use from my own views, but I would like the admin vi

Re: editable=False and manipulator.save(data) not working together

2006-01-10 Thread David S .
( fields = (None, {'fields': \ ('address', 'prefix', 'description', 'maintainer', 'customer', 'changed_by',) }) ) You can set create_by in the _post_save method add it to the data dict as you are doing now. Best, David S.

Re: SQLite threading

2006-01-10 Thread David S .
ve to circle back and see if I can help. In the meantime, it is PostgreSQL for me. Peace, David S.

Re: SQLite threading

2006-01-10 Thread David S .
to have more than 1 user--and in fact if it is going to run with Apache--then SQLite is right out? Thanks, David S.

Re: migrating from winxp to linux problems

2006-01-10 Thread David S .
with my one fancy page--simplejson (helping get all ajaxy) was installed as an egg of course but no longer. Cheers, David S.

SQLite threading

2006-01-10 Thread David S .
Anyone familiar with this error running Apache and SQLite? SQLite objects created in a thread can only be used in that same thread

Re: manipulators and action log

2006-01-02 Thread David S .
For instance, I am importing some data that updates records and want those reflected in the log even though the admin interface is not involved. Thanks, David S.

id in admin fields

2005-12-07 Thread David S .
breadcrumbs. Thanks, David S.

Re: When will there be a Oracle Backend?

2005-11-16 Thread David S .
Jacob Kaplan-Moss jacobian.org> writes: > would you be up for testing a (possibly buggy) backend if I could get > one out? I would like to volunteer as well. Are there unit tests or is that part of volunteering? Also, I am curious what the differences are and if versions matter.

MEDIA_ROOT and MEDIA_URL

2005-10-28 Thread David S .
I do not understand precisely how these two settings are used. >From Django doc, we have: MEDIA_ROOT - Absolute path to the directory that holds media for this installation. Example: "/home/media/media.lawrence.com/" See also MEDIA_URL. MEDIA_URL - URL that handles the media served from MEDIA_ROO

Re: serving PDF

2005-09-30 Thread David S .
ls for its clarity and the impact on usability. You can not get things done "more quickly" if you do not know how to do things or where to find out. These tutorials and references are very good at describing how things work. Thanks so much. David S.

serving PDF

2005-09-30 Thread David S .
? Thanks for any help. Peace, David S.

Re: Recipie/tutorial for Django and no apache?

2005-08-19 Thread David S.
I have been persuing the same sort of path, i.e. SQLite, wxPython, cx_freeze for the same reasons. But I am pretty excited about Django and how quickly I can get functionality that has been so tedious to build myself. And, I am happy to go for the web app even for clients with 1 in-house user fo

Re: Adding Record Problem

2005-08-19 Thread David S .
Robin Munn gmail.com> writes: > Django will only auto-increment fields listed as AutoField. If you use > any other type (CharField, IntegerField), it's assumed that you want > to specify the primary key yourself each time. The only drawback seems that you can never specify the id when you use

Re: meta.Admin js option

2005-08-18 Thread David S .
Awesome. Lucid, concise, timely. Thanks much.

meta.Admin js option

2005-08-18 Thread David S .
Since the admin templates are auto-generated, how does any JavaScript that you link in with the js option actually get used?

{% ifnotequal %} string compare

2005-08-17 Thread David S .
I am editing the admin index.html file so that it will ignore Core and Auth and just list the user defined models. But using : {% ifnotequal app.name 'Core' %} appears to have no effect. Am I misunderstanding this tag?

links in admin not working

2005-08-17 Thread David S .
Some images are not showing up in admin. For example: "/media/img/admin/icon_searchbox.png" is not found. The images linked to in the stylesheet work fine. Is there configuration that fixes this?

stylesheets and "root" directory

2005-08-16 Thread David S .
Where do stylesheets for the public interface live? What does the standalone server think its root directory is on the machine it is running on? I can only get my stylesheet working using the code from the admin base.html:

Re: unique_together across tables?

2005-08-16 Thread David S .
adrian exoweb.net> writes: > > > Is there a way to create multiple tables which share an id field? My > meaning is that ids would be unique over both tables. One way to do this with django is with a MasterTable that is responsible for the key. For the tables across which you want the un

where stylesheets live

2005-08-16 Thread David S .
Where stylesheets for the public interface live? What does the standalone server think its root directory is on the machine it is running on? I can only get my stylesheet working using the code from the admin base.html: