Re: Updating DB Tables after adding Fields to a Model

2006-06-09 Thread Adrian Holovaty
ing database. Thank you. See this: http://www.djangoproject.com/documentation/faq/#if-i-make-changes-to-a-model-how-do-i-update-the-database Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because yo

Re: How to override automatic plural names of models in admin interface

2006-06-10 Thread Adrian Holovaty
s'. > > How do I override this behaviour? Hi mohan, You're looking for the "verbose_name_plural" option to "class Meta". See this part of the docs: http://www.djangoproject.com/documentation/model_api/#verbo

Re: Markup support only in trunk version?

2006-06-12 Thread Adrian Holovaty
ound since Django 0.91. Adrian -- Adrian Holovaty holovaty.com | djangoproject.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@goog

Re: Create generic views in Django 0.91

2006-06-14 Thread Adrian Holovaty
Hi Sam, I don't really understand you particular setup/goal, but I would strongly suggest moving to the latest version of Django, period. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you a

Re: Feasibility of postgis fields?

2006-06-15 Thread Adrian Holovaty
if the database defines columns that aren't in the model, as long as you don't try to insert/change into that undefined field with the Django database API -- so I'm exploiting that. So, yeah, it's totally possible and easy to do. I'd be happy to post sample model code if you&

Re: Create generic views in Django 0.91

2006-06-16 Thread Adrian Holovaty
field name as extra parameters, to construct the query dynamically. Here is a simplified example: def dynamic_get_dict(u, model_module, lookup): return model_module.get_list(lookup=u) Python is cool! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~---

Re: Create generic views in Django 0.91

2006-06-16 Thread Adrian Holovaty
s is just Python -- there's nothing Django-specific about these examples. Isn't Python the best? :) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: POST to view loses POST data

2006-06-17 Thread Adrian Holovaty
be a shortcut to a normalized (all caps?) version of request.META['REQUEST_METHOD'], which is cumbersome to type and might not (?) always be upper case. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message

Re: Problem with get_or_create

2006-06-17 Thread Adrian Holovaty
ecuting. Here's how to do that: http://www.djangoproject.com/documentation/faq/#how-can-i-see-the-raw-sql-queries-django-is-running Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: Changing Sites Framework

2006-06-18 Thread Adrian Holovaty
uld break anything if I canged the site framework to return the > display name instead of the domain name. So far I have not run into > any problems. No, it shouldn't break anything. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~-

Re: Django memory leak -- or caching?

2006-06-19 Thread Adrian Holovaty
/documentation/faq/#why-is-django-leaking-memory Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: POST to view loses POST data

2006-06-19 Thread Adrian Holovaty
On 6/17/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > I agree 100% with James on this one. Having request.POST be an empty > dictionary evaluating to True -- that's just too odd. I think we ought > to bite the bullet and add request.method, which would be a shortcut > to

Re: MS SQL Django suport is stable?

2006-06-20 Thread Adrian Holovaty
On 6/20/06, mamcxyz <[EMAIL PROTECTED]> wrote: > Is MSSQL support good for a production site? No. I haven't heard from anybody who's actually using it, and I can't test because I don't run WIndows. Adrian -- Adrian Holovaty hol

Re: where to run extra SQL when "manage.py reset appname" is run

2006-06-20 Thread Adrian Holovaty
h manage.py? > i saw that django.core.management.get_sql_all() collects all the SQL to be > run, but there doesn't seem to be a place for other SQL (like trigger > declerations). Hey Ronny, Here's what you need to know: http://www.djangoproject.com/documentation/model_api/#providing-i

Re: How would Django handle a large number of records

2006-06-21 Thread Adrian Holovaty
ontent types with tens of thousands -- if not hundreds of thousands -- of records. Pagination, filters and searches on the changelist are quite useful in those cases! :) Generally when dealing with lots of records, the pressure point is the database. Make sure your database is optimized for th

Re: How would Django handle a large number of records

2006-06-21 Thread Adrian Holovaty
the number of articles, lets say 20,000), so I'd like to limit > foreign key form elements to something user-friendly. Not sure yet how > to do it, but I'm sure I'll find a way. For that, you could use either the "limit_choices_to" or "raw_id_admi

Re: admin ordering question

2006-06-21 Thread Adrian Holovaty
> > class Admin: > list_display = ('name', 'get_user_name') > ordering = ('get_user_name', 'name') Hi Mikael, You can't order by the result of a Python function, because the ordering clause happens at th

Re: overriding-default-model-methods what am i doing wrong ?

2006-06-22 Thread Adrian Holovaty
Tag, self).save() > > "foo" [never] shows up on the intergrated webserver log :/ Could it be because your save() method is indented within the get_absolute_url() method? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~--

Re: How do I use a custom FilterSpec?

2006-06-22 Thread Adrian Holovaty
.register() in favor of the underlying implementation: FilterSpec.filter_specs.insert(0, (my_func, my_filterspec)) ...where my_func and my_filterspec are your func and filterspec. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this me

Re: a easy way of orderlist?

2006-06-22 Thread Adrian Holovaty
ex to me, is there any easy solution? thanks. Hi momobear, The generic-views framework doesn't support ordering by arbitrary fields like that. You'll have to write that functionality on your own. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~-

Re: Advanced Locale from URL middleware

2006-06-22 Thread Adrian Holovaty
On 6/22/06, jon1012 <[EMAIL PROTECTED]> wrote: > the last code has a bug, here is the new one, and sorry :) Hi Jon, Can you post that to http://code.djangoproject.com/wiki/ContributedMiddleware ? Adrian -- Adrian Holovaty holovaty.com | djangopr

Re: How do I use a custom FilterSpec?

2006-06-23 Thread Adrian Holovaty
e FilterSpec.register_before(my_func, my_filterspec, > other_filterspec) or perhaps FilterSpec.register_first(my_func, > my_filterspec)? There aren't any docs for custom FilterSpecs, so you shouldn't rely on that interface never changing. ("If it isn't documented, it does

Re: Same name on project and app causes error

2006-06-24 Thread Adrian Holovaty
me name as the project. See line 685 of django/core/management.py (in the latest trunk). Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&qu

Re: else tag for ifchanged

2006-06-28 Thread Adrian Holovaty
r date in date_list %} {{ date.grouper|date:"Y.m.d" }} {% for entry in date.list %} {{ entry.headline }} ...whatever {% endfor %} {% endfor %} Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~--

Re: Django Boot Camp

2006-06-28 Thread Adrian Holovaty
t;real-world" boot camp, or an online one? I would love to do any/all of the above... Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Re: Selecting MySQL engine (InnoDB/MyISAM) when creating models

2006-06-28 Thread Adrian Holovaty
FAQ -- thanks for asking the question. http://www.djangoproject.com/documentation/faq/#how-do-i-add-database-specific-options-to-my-create-table-statements-such-as-specifying-myisam-as-the-table-type Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~--

Re: MS SqlServer in Django

2006-06-28 Thread Adrian Holovaty
pers mailing-list archives to see some discussion on the matter. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: prepopulate_from

2006-06-28 Thread Adrian Holovaty
rField(maxlength=100, > prepopulate_from=('team',)) > If Django's current function doesn't handle this, I would consider that a bug. What does it currently do -- include the raw ID value of the team rather than the display name? Adrian -- Adrian Holovaty holovaty.com | django

Re: Redirect to another location in case of 404 and 500

2006-06-29 Thread Adrian Holovaty
a horrid practice. If I mistype a URL, let me see what I mistyped in my browser's location bar; don't redirect me to some strange URL. If you do this on your Web site, we may revoke your Django privileges. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--

Re: Redirect to another location in case of 404 and 500

2006-06-29 Thread Adrian Holovaty
ttp://www.djangoproject.com/documentation/tutorial3/#write-a-500-server-error-view As I wrote in the previous e-mail, I would strongly suggest you don't do this, for usability. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~-

Re: Store and retrieve template code from database

2006-07-05 Thread Adrian Holovaty
updated it for the newest Django -- but it could be a good starting point. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Documentation for hosting providers?

2006-07-05 Thread Adrian Holovaty
le too. Hey Carlos, I think this is a fantastic idea. If you, or somebody else, takes the lead on writing these docs, we can incorporate them into the official documentation when they're finished. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~-

Re: Viewing generated SQL

2006-07-05 Thread Adrian Holovaty
On 7/5/06, AlanG <[EMAIL PROTECTED]> wrote: > Is there a simple way see the query SQL generated by Django? Sure is! See the FAQ: http://www.djangoproject.com/documentation/faq/#how-can-i-see-the-raw-sql-queries-django-is-running Adrian -- Adrian Holovaty holovaty.com | djangopr

Re: Making session data visible to all templates?

2006-07-06 Thread Adrian Holovaty
Check it out here: http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Generic views and dates in the future

2006-07-06 Thread Adrian Holovaty
On 7/6/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > What's the justification for the date based generic views not showing > dates in the future? The justification is: The system was built for displaying "archival" information, not future information. We've j

Re: Generic views and dates in the future

2006-07-06 Thread Adrian Holovaty
On 7/6/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > If I were to write a backwards compatable patch, is it something you'd > be willing to put in? I'm thinking along the lines of a keyword > argument 'allow_future' which has a default value of False. Sure, feel

Re: Weird index/urls.py behaviour

2006-07-09 Thread Adrian Holovaty
ched by any URL, I suspect something's wrong with your URLconf setup. The URLconf you pasted looked OK, but perhaps something's wrong in another URLconf that's including the one you pasted (with include()). Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~-

Re: list_filter and sing urls ..

2006-07-11 Thread Adrian Holovaty
get html link only string " href..and so on" > Is there way to disable escaping mode from list_filter without change > django sources ? Yes, there's a way! Set the "allow_tags" attribute on your function. Example: def url_to_contract(self): return &

Re: Atomic value increment

2006-07-12 Thread Adrian Holovaty
; legacy unique_id values which I have to initially populate the db > with. Use the auto-incrementing "id" field. Populating the DB with some explicit values shouldn't pose any problems in that case. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-

Re: Camino and Safari do not open feeds

2006-07-13 Thread Adrian Holovaty
s, this is no problem, but if you really want to be able to see the raw source of your feed, change your browser settings to use a particular program to handle that MIME type. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You rec

Re: Problems with __str__ methods in my Models

2006-07-13 Thread Adrian Holovaty
;No away runs' else: away_txt = str(self.away_runs) return "%s: %i (%s)" % (self.game.datetime.strftime("%Y-%m-%d"), self.game.away.number, away_txt) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~--

Re: [Django Publicity] Cameron Moll's Screen Grab Confab

2006-07-13 Thread Adrian Holovaty
. Check it out < > http://www.cameronmoll.com/archives/001045.html >. Sweet! Thanks for sharing that. :) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Extending pluralize?

2006-07-14 Thread Adrian Holovaty
vements to the filter, a configurable suffix). I'd encourage you to create and distribute your own language-specific pluralization template tags/filters, but they're out of the scope of the framework. äÑËÕÀ, Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~

Django vs. Rails vs. Symfony: Django is fastest

2006-07-14 Thread Adrian Holovaty
http://del.icio.us/url/c44bdc6ac0cd2adfa4eb38af27b9f644 Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Multiple block levels failing?

2006-07-17 Thread Adrian Holovaty
ines shouldn't be hard-coding the filesystem location of the templates -- they should contain the location of the templates *relative* to your template directory (as specified in TEMPLATE_DIRS). Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~

Re: psycopg2

2006-07-17 Thread Adrian Holovaty
ions.ImproperlyConfigured: Error loading psycopg > module: No module named psycopg > > though the code reads like this: > from django.db.backends import util > try: > import psycopg2 as Database Hi Lorenzo, >From the looks of that traceback, you're using th

Re: How to get django to show me the sql it executed recently?

2006-07-17 Thread Adrian Holovaty
mentation/faq/#how-can-i-see-the-raw-sql-queries-django-is-running Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: list of all months where objects are

2006-07-19 Thread Adrian Holovaty
y, You can use the dates() QuerySet method to do this. Example: Article.objects.dates('pub_date', 'month') Here are the docs: http://www.djangoproject.com/documentation/db_api/#dates-field-kind-order-asc Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~--

Re: Is Django the framework I've been looking for?

2006-07-20 Thread Adrian Holovaty
y sort of integrated thing. (However, we're close to adding easy testing support -- see http://code.djangoproject.com/ticket/2333 .) And you can use any number of excellent Python unit-testing libraries on your own. Hope this helps, Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~

Re: CGI Setup

2006-07-20 Thread Adrian Holovaty
ld be bad, but if you're interested in experimenting, you should seek out some Python WSGI-to-CGI bindings, which would let you run any WSGI code as a CGI. I just did a quick search, and it looks like this is what you're after: http://darcs.idyll.org/~t/projects/qwsgi/wsg

Re: CGI Setup

2006-07-21 Thread Adrian Holovaty
#x27;d be great to be able to point people at something. If you're willing to contribute, go for it! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: Users in Django admin

2006-07-21 Thread Adrian Holovaty
change field values based on the current user, but a couple of people have put together hacky solutions while we try to figure out a good (and decoupled) way of solving the problem nicely. Search the django-users archives for "admin current user" for a bunch of these hacks. Hope

Re: Create default data at syncdb

2006-07-21 Thread Adrian Holovaty
hing and it create the data when the tables are created? Hey Seth, Check out the "initial SQL files" hook -- http://www.djangoproject.com/documentation/model_api/#providing-initial-sql-data Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~-

Re: CGI Setup

2006-07-21 Thread Adrian Holovaty
s been created, you should see a button that lets you upload attachments. You can upload your Python code via that attachment functionality. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are

Re: Djboss? Jyngo?

2006-07-21 Thread Adrian Holovaty
imilar project for Django + Jython? If/when Jython gets to 2.3, it'd be cool to add support for a Django/Jython setup. Personally I wouldn't use it, but I'm sure it would come in handy for others, and it could be another way of getting Django into more territory. Adrian

Re: django now in tamil

2006-07-22 Thread Adrian Holovaty
On 7/22/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > just to let you all know that django is now available in Tamil - the > second Indian language after Bengali - 2 down 20 to go. Django: We've got Tamil. Thanks for the announcement, Kenneth! Adrian -- Adrian Holo

Re: get-XXX function vs. XXX property

2006-07-23 Thread Adrian Holovaty
convention at the very least, to something like url(), but that's a low priority at the moment. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: Generic views and dates in the future

2006-07-27 Thread Adrian Holovaty
he record (and to close this thread), I've committed the allow_future patch. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Django website: Trac rejects my noble efforts

2006-07-27 Thread Adrian Holovaty
ly we prefer that patches *not* be posted to the mailing list, but in this case we can make an exception, because of the spam-blocking issues and the fact that your contribution is important to us. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~--

Re: [Changeset] r3455 - django/trunk/docs

2006-07-28 Thread Adrian Holovaty
ion it is? Just > curious. Thanks. Sure -- it was the presentation Wednesday evening about managing open-source communities and dealing with "poisonous people." The two presenters encouraged projects to have a written policy that developers' names don't get put in code

Re: textarea size

2006-07-28 Thread Adrian Holovaty
a will have an HTML ID called "id_foo", where "foo" is the name of your field. You can edit the admin templates to add custom CSS like this: #id_foo { width: 300px; height: 400px; } Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~-

Re: ManyToMany Self Relationships pre Magic Removal

2006-07-28 Thread Adrian Holovaty
On 7/28/06, Deryck Hodge <[EMAIL PROTECTED]> wrote: > Is it possible to do a self referencing manytomanyfield pre magic > removal? No, I don't believe we supported self-referencing many-to-many fields before magic-removal. Adrian -- Adrian Holovaty holovaty.com |

Re: New versions of django break login_required

2006-07-28 Thread Adrian Holovaty
gt; > 18. _checklogin.__name__ = view_func.__name__ I've reverted the assignment of __name__ -- thanks for pointing this out! Looks to be a problem with different behavior across Python versions, perhaps? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~-

Re: Django vs TurboGears

2006-07-29 Thread Adrian Holovaty
! I'm going to have to remember that one. :) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

ANN: Django 0.95 released

2006-07-29 Thread Adrian Holovaty
t.com/documentation/095_release_notes/ Thanks to all the great people who made this possible! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: Simplifying template?

2006-07-30 Thread Adrian Holovaty
not forloop.last %}}; {{% endif %}} > {% endfor %} That's the Django template convention for putting a bunch of text "between" elements, so you don't have to change a thing. If you're interested in coming up with a more terse way of doing that, we'd be happy to take a loo

Re: Class variables in mod_python

2006-07-30 Thread Adrian Holovaty
the user > successfully changed his password) in the DB. You could use the cache framework to store stuff in there temporarily. Alternatively, I don't think it's a huge problem to store that in the database. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-

Re: Weird slowdown with dev server behind nat

2006-07-31 Thread Adrian Holovaty
t; and a stylesheet takes 15 seconds to load. You know, I've recently seen this same exact problem when running the development server on an IP address other than 127.0.0.1. I've been meaning to take a look at it, as it's quite frustrating. If you come up with any solutions, please share

Re: Rev 3507 breaks admin site

2006-08-01 Thread Adrian Holovaty
On 8/1/06, Neboj¹a Ðorðeviæ <[EMAIL PROTECTED]> wrote: > I submitted quick fix to http://code.djangoproject.com/ticket/2463 > which keeps 3507 changes. Fixed in [3508] -- thanks for pointing this out! Adrian -- Adrian Holovaty holovaty.com | djang

Re: Protecting files

2006-08-01 Thread Adrian Holovaty
Apache to serve the files while authenticating against Django's user database. Check out the docs here: http://www.djangoproject.com/documentation/apache_auth/ Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this mes

Re: [White-paper] Full Text Search w/ MySQL

2006-08-02 Thread Adrian Holovaty
te-papers/django-full-text-search> Hey John, I noticed this the other day and thought it was a great writeup. Nicely done! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Protecting files

2006-08-02 Thread Adrian Holovaty
les > in a directory which is not Apache-accessile as offered by Nebojsa Dordevic. Ah, you're right -- the Django Apache authentication thing wouldn't work for this case at face value. Still, you could use that auth handler as the foundation for a custom handler, which would check permiss

Re: Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread Adrian Holovaty
at McDonald's, because it's not part of the Happy Meal you're eating." Simply put, you can use any JavaScript library you want with Django. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this me

Re: filters in admin

2006-08-03 Thread Adrian Holovaty
r the (figurative) version 2.0 of the admin site. In the mean time, you can add "&end_date__lt=2006-08-03" to the URL of the changelist page, and the objects will filter. The query string accepts any lookup-style argument that the database API uses. Adrian -- Adrian Holovaty h

Re: Ordering by __str__

2006-08-03 Thread Adrian Holovaty
at happen, set "ordering" to the fields of your model, rather than the __str__. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Re: Flatpages problem

2006-08-03 Thread Adrian Holovaty
dleware.FlatpageFallbackMiddleware' to your MIDDLEWARE_CLASSES setting? That's the part that actually *serves* the flatpages. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: translating app-name

2006-08-03 Thread Adrian Holovaty
nstalled apps? Hi Patrick, Currently there's no way to specify a translation for an app name, because Django just uses the name of your app's package. To solve your problem, you could rename your app to a German word. Adrian -- Adrian Holovaty holo

Re: translating app-name

2006-08-03 Thread Adrian Holovaty
n a nicer way. What do you think? An __appname__ variable in the app's __init__.py file? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: translating app-name

2006-08-03 Thread Adrian Holovaty
On 8/3/06, Ian Clelland <[EMAIL PROTECTED]> wrote: > On 8/3/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > > > We should definitely solve this problem in a nicer way. What do you > > think? An __appname__ variable in the app's __init__.py file? > >

Re: django installation on mac

2006-08-03 Thread Adrian Holovaty
recommend that you use Django 0.95, not Django 0.91. We released the new version this past weekend, and it has a world of improvements over 0.91. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you

Re: accessing was_published_today in a template

2006-08-03 Thread Adrian Holovaty
, To access methods of an object in templates, just use "dot" notation, like this: {{ poll.was_published_today }} Or, in an "if" tag: {% if poll.was_published_today %} Published today! {% endif %} Adrian -- Adrian H

Re: Declare a variable in a template

2006-08-03 Thread Adrian Holovaty
e and display objects.) {% else %} No past show information available. {% endif %} * You can write a custom template tag, as you noted. Hope this helps, Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received thi

Re: django installation on mac

2006-08-03 Thread Adrian Holovaty
On 8/3/06, richard mendes <[EMAIL PROTECTED]> wrote: > as to the recommendation from Adrian i tried to install the newest > version but i got an error that said it was missing something and i > had to install a older version. I will try to install it in a later > stadium. Hi R

Rejoice! No more editing hashes when creating users

2006-08-03 Thread Adrian Holovaty
The code is also a pretty decent example of how to use custom manipulators and how to make custom admin pages. Check it out here, if you're interested: http://code.djangoproject.com/changeset/3520 . (Yes, password hashes are still displayed on the "Change user" pages -- I'm still th

Re: Kid templates ValueError: too many values to unpack

2006-08-03 Thread Adrian Holovaty
ngo, but, as a shot in the dark, I'd suggest making sure your TEMPLATE_DEBUG setting is set to False. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: Rejoice! No more editing hashes when creating users

2006-08-03 Thread Adrian Holovaty
uot; view. This would be different from the user-facing "Change password" view, as it would be used by admins. I'm not too passionate about it either way, but I'm just glad we've finally fixed the "Add user" thing. Adrian -- Adrian Holovaty holovaty.com | djangopr

Re: "Recent Actions"

2006-08-06 Thread Adrian Holovaty
database API. The model is django.contrib.admin.models.LogEntry. from django.contrib.admin.models import LogEntry LogEntry.objects.all() Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: Weird slowdown with dev server behind nat

2006-08-07 Thread Adrian Holovaty
t; and a stylesheet takes 15 seconds to load. I've fixed this as of http://code.djangoproject.com/changeset/3530 . Thanks for bringing it up! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you ar

Re: when is 1 != 1? (according to 'ifequal' in template)

2006-08-07 Thread Adrian Holovaty
water stopped being > wet? Perhaps one of them is the string "1", while the other is the integer 1? Those values are not equal, per Python's equality operators. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~

Re: Django covered in podcast with Guido

2006-08-07 Thread Adrian Holovaty
On 8/5/06, Simon Willison <[EMAIL PROTECTED]> wrote: > http://www.twit.tv/floss11 > > Django gets some good discussion about 50 minutes in. I've posted a note to the Django weblog about this. Great interview! Adrian -- Adrian Holovaty holovaty.com

Re: Admin Manipulators

2006-08-08 Thread Adrian Holovaty
On 8/7/06, Seth Buntin <[EMAIL PROTECTED]> wrote: > Can I extend the admin manipulator? I want to change one ManyToMany > select box to a text field. Hey Seth, No, it's not possible to extend the default model manipulators for use in the admin. Adrian -- Adrian Holo

Re: 'Unindexable Object' Error In Template W/ Relation Manager

2006-08-08 Thread Adrian Holovaty
creaming 'unindexable object' error. I've been > toying with this and even sought help in the #django channel on IRC, > and no one seems to understand why this is happening. Hey Sarcastic Zombie, What happens when you do agency.agent_set.all() in the Python interactive

Re: [OT] Has djangoproject.com's database been recentry restored from a backup?

2006-08-08 Thread Adrian Holovaty
ing list. I don't remember what the case was with your particular comments, but note that the deletion was intentional -- there aren't data problems. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this mess

Re: show many2many data as comma-separated-text. fast/optimal solution?

2006-08-09 Thread Adrian Holovaty
On 8/4/06, Julio Nobrega <[EMAIL PROTECTED]> wrote: > Wouldn't select_related() save you the 100 queries? > > users = User.objects.select_related().all() No, select_related() would not apply in this case. It only follows foreign keys, not many-to-many relationships.

Re: Function kills page?

2006-08-09 Thread Adrian Holovaty
. That way, you'll get a full traceback. Alternatively, set TEMPLATE_DEBUG=True and DEBUG=True in your settings file, and Django should display the pretty error page. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You receiv

ANN: Created django-announce mailing list

2006-08-10 Thread Adrian Holovaty
e created a django-announce mailing list. It's a low-traffic, announcement-only mailing list. We'll send a message to it for new Django releases, significant feature additions and security alerts. If you're a Django user, it'd be a good idea for you to sign up for this list.

Re: session management

2006-08-10 Thread Adrian Holovaty
okie. Is there a way to do so in django? Hi ihomestore, The Django session framework depends on cookies -- it intentionally does not include a URL-based session framework as a fallback. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~

Re: Searching in admin doesn't search -- returns everything

2006-08-11 Thread Adrian Holovaty
try to recreate the error? Also, which database backend are you on? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: dbinspect against DB with spaces in column names

2006-08-11 Thread Adrian Holovaty
I've just checked in a change so that inspectdb no longer attempts to "unpluralize." http://code.djangoproject.com/changeset/3558 Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are s

Re: Custom template tag in FlatPage

2006-08-11 Thread Adrian Holovaty
per the documentation: http://www.djangoproject.com/documentation/templates_python/#extending-the-template-system Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

<    1   2   3   4   5   6   7   8   9   10   >