Re: is there a simpler way to do 3rd party app settings?

2007-02-27 Thread Afternoon
People should always do the INSTALLED_APPS edit themselves, I have apps installed I'm not using, not least all the contrib apps! For everything else I use something like setting = getattr(settings, "MY_NEW_SETTING", default) or try: setting = settings.MY_NEW_SETTING except

Template user weirdness

2005-11-19 Thread Afternoon
I've just started using Django, so this may be a lame question. I have created a couple of test apps and have been playing with authentication etc. I want to just display the user name in the same way as the admin (I even lifted the line of code from django/contrib/admin/templates/admin/base.html

Re: Backwards-incompatible change in development version: Password change

2005-11-21 Thread Afternoon
u? Caveat newbie: Only been using Django for a short while, so missing a lot of knowledge currently. ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: Backwards-incompatible change in development version: Password change

2005-11-21 Thread Afternoon
ng this having seen the posts in the last few days. ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: Backwards-incompatible change in development version: Password change

2005-11-21 Thread Afternoon
pt the password yourself first. Take out the message and nobody would even think about it. ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: Backwards-incompatible change in development version: Password change

2005-11-21 Thread Afternoon
d field to mean "no change to password". Since a blank password should be an impossible, this is an OK use of in-domain information with out-of- domain meaning. ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: Backwards-incompatible change in development version: Password change

2005-11-21 Thread Afternoon
On 21 Nov 2005, at 20:26, Maniac wrote: It's also common thing to extract password change in a separate view. Yeah, that's blatantly a much better idea :-) ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: Paginating complex queries

2005-11-23 Thread Afternoon
whole lot easier. This also means that there's more of a temptation to use the request object directly in template logic. Is there a way that the request object could be exposed to custom tag code, but not the template itself? ____ Afternoon, man abo

Re: Paginating complex queries

2005-11-23 Thread Afternoon
personally haven't bashed my head against Django that much yet so I feel I'm getting a bit out of my depth here. Perhaps the best thing is just to keep explicitly passing in the pagination arguments. ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: lists in the django model system dealiomajigger.

2005-11-25 Thread Afternoon
, at 19:45, possibilitybox wrote: i quickly realized after this that i need lists for more than just tags. i quite definitely need a list, or tuple, or some way to store sequences in the backend, for multiple purposes. ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: lists in the django model system dealiomajigger.

2005-11-25 Thread Afternoon
ent storage, though you sometimes sacrifice performance. You have to use join statements to glue it all back together again. ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: Newbie needs help with real-world example...

2005-12-01 Thread Afternoon
John, What kind of error messages are you getting, if any? Did you try following the tutorials before you started trying to use the djangoproject code? Can you post your urls.py? Afternoon, man about the Internet -- http://aftnn.org/

Re: Help running Django with mod_python

2005-12-01 Thread Afternoon
restarted Apache or just gracefully restarted it? Afternoon, man about the Internet -- http://aftnn.org/

Re: Help running Django with mod_python

2005-12-01 Thread Afternoon
On 1 Dec 2005, at 15:24, Paolo wrote: Hi Afternoon, not only I have restarted Apache after building mod_python (3.1.4), I also have updated it from version 2.0.54 to 2.0.55, but nothing has changed. Hang on, it's coming back to me now (sorry, it was a long night). What platform ar

Re: Help running Django with mod_python

2005-12-01 Thread Afternoon
erence though. ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: custom add-view for admin

2005-12-11 Thread Afternoon
of thing out of the box. Ben ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: Django screencast

2005-12-13 Thread Afternoon
On 13 Dec 2005, at 17:18, Tom Dyson wrote: http://www.throwingbeans.org/django_screencasts.html +32,768 Nice work! Afternoon, man about the Internet -- http://aftnn.org/

Re: Django screencast

2005-12-13 Thread Afternoon
t;one time only".) I'd +1 that, a quick ls or Finder view would let the viewer get a feel for the lie of the land by seeing the files that are created by django-admin.py. ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: is Django too powerful?

2005-12-13 Thread Afternoon
getting I hope. I've seen the circumvention stuff, and it's good, but not foolproof yet. ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: is Django too powerful?

2005-12-13 Thread Afternoon
al, but the dull bug-fixing long-term app- maintaining effort should be focussed on as few blog implementations as possible :-). ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: Comments on Ruby code slides from Snakes and Rubies?

2005-12-14 Thread Afternoon
t and contents of the table, the administration and does a lot of the work of setting up forms and validation for you. The duplication of effort of the field declaration and SQL isn't the whole story. ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: admin-view, password-md5 problem

2005-12-30 Thread Afternoon
password) User._pre_save = user_pre_save Add this in your model file. I tried it on the SVN trunk and it worked. ymmv Note: This (obviously) works with sha1 passwords, and not md5s. ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: kinda really nOOb question: how to for loop an integer in template?

2006-01-03 Thread Afternoon
s|make_list %} That gave me only one digit in the list - if pages = 10, then pages|make_list = ['10']. Please give me some hint, big thanks! ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: Managing static media urls

2006-01-17 Thread Afternoon
rtant things like magic-removal and 1.0, but maybe I'll float this idea after that. Mostly I just wanted to make sure I wasn't high or completely missing the point. Afternoon, man about the Internet -- http://aftnn.org/

Re: Managing static media urls

2006-01-20 Thread Afternoon
pointed by your MEDIA_URL, so: ____ Afternoon, man about the Internet -- http://aftnn.org/

Job: London hackers required

2006-05-08 Thread Afternoon
Hi, I'm a Django hacker based in London working with a start-up, we've got a big project coming up and we're after one or two developers to help out. The start-up is moblogUK. We're a moblogging community at http:// moblog.co.uk/ . The project will be building on that. It will last about

AttributeError: class Http404 has no attribute 'has_header'

2006-07-23 Thread Afternoon
I'm getting an annoying error with trunk, even up to 3430. When a 404 is raised, with DEBUG True or False, the Vary header logic falls over. Stack trace follows. Has anybody else seen this error? It's obvious that Http404 doesn't have the method, it's just a subclass of Exception. If this is just

Re: AttributeError: class Http404 has no attribute 'has_header'

2006-07-23 Thread Afternoon
Looked around the code a bit, the definition of Http404, the old HttpResponseNotFound, the cache and middleware stuff, I can't see how this is supposed to work out at all! The intervening request handling layers expect a proper response object, instead they're getting an exception? --~--~---

Re: AttributeError: class Http404 has no attribute 'has_header'

2006-07-24 Thread Afternoon
Haha! You're quite right. I blame my understudy :-). Thanks for your help Jacob. --~--~-~--~~~---~--~~ 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.

Re: Paginator Overhall

2006-10-14 Thread Afternoon
We have a modified Paginator class that is designed to provide Google-style abbreviated lists. It may be a useful starting point as it stores the page number and providers an __iter__ for displaying page lists. Rewriting this to produce unabbreviated page lists would be trivial. http://django.pas

Setting SITE_ID dynamically

2006-10-16 Thread Afternoon
I would like to create a virtual hosting style solution which allows: * New sites to be created through-the-web. * Multiple domains to be assigned to each site. * Each site to have separate media and templates folders. The requirements are not too difficult, I can implement most of this on to

Djangoogle search engine

2006-10-24 Thread Afternoon
Using the brand spanking new Google Co-op Custom Search Engine tool, I've created a Django-specific search engine. http://www.google.com/coop/cse?cx=014511893357231986968%3Agstwyqkcqj0 It prioritises a bunch of Django sites, the main site, the code site and all of the sites mentioned on the comm