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
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
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/
ng this having seen the posts in the last few days.
____
Afternoon, man about the Internet -- http://aftnn.org/
pt the password yourself first. Take out the message
and nobody would even think about it.
____
Afternoon, man about the Internet -- http://aftnn.org/
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/
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/
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
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/
, 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/
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/
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/
restarted Apache or just gracefully
restarted it?
Afternoon, man about the Internet -- http://aftnn.org/
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
erence
though.
____
Afternoon, man about the Internet -- http://aftnn.org/
of thing out of the box.
Ben
____
Afternoon, man about the Internet -- http://aftnn.org/
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/
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/
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/
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/
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/
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/
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/
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/
pointed by your
MEDIA_URL, so:
____
Afternoon, man about the Internet -- http://aftnn.org/
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
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
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?
--~--~---
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.
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
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
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
32 matches
Mail list logo