se for
Django's default template tag to open up a setting to provide additional
flags to publish_parts/docutils writer/docutils transformer, such as the
aforementioned one to disable document headers, or other generally
useful flags such as the ones to enable certain security features.
--
.)
Furthermore, support for XHTML "5" (which is indeed a part of the HTML 5
standard) shows that XHTML 1's principles are still around and still
respected. Django's XHTML output can't be "out of date" if XHTML 5 is
considered a successor to XHTML 1.
--
--Max
Simon Willison wrote:
> On Sep 26, 10:17 am, Max Battcher wrote:
>> Furthermore, support for XHTML "5" (which is indeed a part of the HTML 5
>> standard) shows that XHTML 1's principles are still around and still
>> respected. Django's XHTML ou
ich beeps and pops up a KDE notification when a page fails.
For the notifications you could switch to Jabber notifications. Plus,
you get the benefit of free remote notifications and logging...
The validator I'm not so sure about. WDG's appears to be Perl, so you
could just m
tag model? It needs updating to support
the new GenericRelation (it currently uses a similar but proprietary
clas), but it has a very neat Tag widget for the Admin.
http://softwaremaniacs.org/soft/tags/
--
--Max Battcher--
http://www.worldmaker.net/
"I'm gonna win, trust in me / I hav
e Admin app you are effectively either
going to have to hand-hold them hugely through the process of "create
the magic named file, add these incantations, pray no errors are
returned" or you scaffold these files for them and then hand-wave
around it like those other guys do when it comes time to
mporting one more module than you expected. It's unfortunate, but it
is simply the case that Python runs code in a module on import whether
you "only care about certain subclasses within the module" or not.
Module import and module introspection have prices, even if
.
>
> Best Regards,
> Tiziano.
>
>
> >
>
--
--Max Battcher--
http://www.worldmaker.net/
All progress is based upon a universal innate desire on the part of
every organism to live beyond its income. --Samuel Butler
--~--~-~--~~~---~--~~
You received this me
then calling the
normal view.)
Anyway, I think my suggestion is that in this particular case maybe
the better approach is to push for better genericity in the Comments
app (particularly as it gets rewritten and better documented)...
If you are curious, I'd be happy to post my post_free_commen
sed.
It's a magic numbers (avoidance) framework. I know this is going to
sound like a joke, but what about calling it
django.contrib.magic_numbers?
--
--Max Battcher--
http://www.worldmaker.net/
--~--~-~--~~~---~--~~
You received this message becaus
quot; message, "min"
> message, and "required" error message. I don't really like the idea of
> three named parameters max_error_message, min_error_message,
> error_message, but I can't seem to come up with any easier solutions.
You could use a dictionary fo
ork has to back out and deal with database sessions per
request which just reeks of early (pre-auto-session-magic) bad PHP
applications).
Unfortunately it's a bit late and I can't scrounge up some good links
on the subject (hopefully someone else can follow up with those), but
I hope that
top of my
head: scrub or wash are very useful clean-connected words.
--
--Max Battcher--
http://www.worldmaker.net/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post
want something nicer in your actual code, you
could just add an "as" option to INSTALLED_APPS to specify an app name.
--
--Max Battcher--
http://www.worldmaker.net/
e As (as I have done for
previous ones).
If you want the nice inter-hyperlinked HTML you can download the tools
from http://docutils.sourceforge.net/ and use the command line tool
``buildhtml.py`` included in the package's tools directory.
--
--Max Battcher--
http://www.worldmaker.
"
Could be you are looking for:
PythonPath "['/var/www/mysite'] + sys.path"
> DocumentRoot /var/www/mysite/
This also isn't a good practice, as again it can pose a security risk
that is better off avoided.
--
--Max Battcher--
http://www.worldmaker.net/
"
want it? :-)
--
--Max Battcher--
http://www.worldmaker.net/
-To-One relationship is currently broken (broken
default ordering; no way to order a class in the admin based upon a
join; broken generic object_detail view).
(Like many, I need a subclass of ``django.contrib.auth.models.User`` for
site-specific data.)
--
--Max Battcher--
http://www.worldmaker.net/
d models. Something like:
``
app_objects = managers.PolymorphicManager(Place, Restaurant,
ItalianRestaurant)
``
This also makes it explicit which classes are participating in a join,
rather than potentially joining a large number of installed model classes.
--
--Max Battcher--
http://www.worldmaker.net/
hs too.) LDAP authenticated users are also
going to have a directory's worth of User information where OpenID
aren't going to have anything beyond a verified URL.
I think I might look things over as I'm thinking about maybe chipping in
that OpenID Authenticator.
--
--Max Battcher--
http://www.worldmaker.net/
rt modifying
them in memory and then Pickling_ the Settings module and URL patterns.
.. _Pickling: http://docs.python.org/lib/module-pickle.html
--
--Max Battcher--
http://www.worldmaker.net/
--~--~-~--~~~---~--~~
You received this message because you are subscr
This also more closely mirrors any other website deployment style you
might find.
So again, the existing work is perfect for my needs, and what you are
asking for is a huge change with little/no gain for me.
--
--Max Battcher--
http://www.worldmaker.net/
--~--~-~--~~
month.month }} Keep in mind to iterate the months you need something like:
{% for month in date_list %}
{{ month|date:"F" }}
{% endfor %}
The date filter being the only way to get information from a date time.
--
--Max Battcher--
http://www.worldmaker.net/
"History bleeds for tomor
to show you what the final
schema should be.
--
--Max Battcher--
http://www.worldmaker.net/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send
ation to leave the script an automatic process (slug ambiguities
are easy to correct in the admin).
--
--Max Battcher--
http://www.worldmaker.net/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django develope
Mary Adel wrote:
> is their a way to track the people that visit my website using Django
> cause i know that Turbogears has this functionality
If you are running on top of Apache, why reinvent the wheel? Grab an
Apache log viewer like AWStats.
--
--Max Battcher--
http://www.worldmak
y as a
"library namespace" (you don't expect the django framework itself, or
any other Python library, to drop their namespace when you start using
them in your own project, do you?).
--
--Max Battcher--
http://www.worldmaker.net/
--~--~-~--~~~---~--~--
limodou wrote:
> Django is developing very quickly, so many things to catch up.
> Has anyone written a change logs let us know the latest changes you.
There are always the auto-generated sort, such as:
http://code.djangoproject.com/timeline/
http://code.djangoproject.com/log/
--
ASP.NET website using a Solution of
Projects.)
Keep in mind, too, that not all Projects are Sites (and vice versa as
mentioned in the Ellington example). I've got at least one Project
that I feel qualifies more as a Library, whose applications are often
much more useful in conj
ants the same escape. For
instance, there are those of us that {% load markup %} and then
|restructuredtext (or |markdown or |textile) just about everything,
and auto-HTML escape could certainly cause havoc here.
--
--Max Battcher--
http://www.worldmaker.net/
All progress is based upon a universa
goproject.com/ticket/1396
Basically, resolve_variable() isn't checking for
silent_variable_failure for attribute/property/descriptor lookups (it
was only checking for that on callable).
--
--Max Battcher--
http://www.worldmaker.net/
All progress is based upon a universal innate desire on the part of
to anyone security-minded.
--
--Max Battcher--
http://www.worldmaker.net/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to django-developers@
rich, so these
> things maybe not be separated any more.
The current proposal leaves Manipulators (custom forms rely on them,
they are not going away), and validation at model level is simply yet
another defense in a long line of defenses.
--
--Max Battcher--
http://www.worldmaker.net/
--~--~---
rthday=datetime.date(2005,1,3),
favorite_number='foo')
>>> p2 = Person.objects.html_unmarshal(name='Joe', birthday='2005-1-3',
favorite_number='foo') # convert strings to Python types
>>> p1.birthday == p2.birthday
True
This then ma
r:
Themes on the pattern of the first example.
{< This is a comment >}
or:
{! Comment !}
I think I'm +1 on this last one. It evokes the aesthetic of both the
Django template tags and an HTML comment. It is also very readable and
less programming-language looking and blocky than
:
http://code.djangoproject.com/wiki/MultipleAuthBackends?version=9
--
--Max Battcher--
http://www.worldmaker.net/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, s
Joseph Kocherhans wrote:
> On 3/14/06, Max Battcher <[EMAIL PROTECTED]> wrote:
>> -1. I don't want to add layer after layer of code to my views to
>> support whatever authentication backends I feel necessary.
>
> You don't have to. There is "one true
e that permissions and groups work regardless of the backend.
--
--Max Battcher--
http://www.worldmaker.net/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group,
if there might be a better way to optimize that single edge
instead (ie, is it worth it to have some caching added to
django.template's resolve_variable() for QuerySets?).
--
--Max Battcher--
http://www.worldmaker.net/
--~--~-~--~~~---~--~~
You received this me
ion of
.exclude(). (Yay for exclude! Boo for making me spend too much time in
confusion! Yay for moving targets!)
> name='John' (it is possible now)
This has been possible in magic-removal for a while:
Article.objects.filter(name='John')
--
--Max Battche
In fact, why keep __in, anyway? Why not just have it check to see if
the object is scalar, QuerySet, or List/Tuple and "do the right thing"?
--
--Max Battcher--
http://www.worldmaker.net/
--~--~-~--~~~---~--~~
You received this message because yo
ser.objects.all().filter(is_superuser__ne=True)
Welcome to Moving Target land. __ne and various other negation things
were moved into the new filter() companion exclude(). Example:
blogers = User.objects.exclude(is_superuser=True)
--
--Max Battcher--
http://www.worldmaker.net/
"I'm
at to point to the hard upgrade the
magic-removal merger, even though it should still be the next release,
should be 0.95 rather than 0.92 to make a larger contrast.
--
--Max Battcher--
http://www.worldmaker.net/
"I'm gonna win, trust in me / I have come to save this world / and in
/login/'. As for my templates, certainly my
site-specific templates have URLs for navigation, but all of my
app-specific templates get along just fine with relative paths and
model_object.get_absolute_url.
Maybe if you just focused on clean code you wouldn't have to worry about
.
'object_id' is not 'id'.
--
--Max Battcher--
http://www.worldmaker.net/
All progress is based upon a universal innate desire on the part of
every organism to live beyond its income. --Samuel Butler
--~--~-~--~~~---~--~~
You received this mes
not your site.
>
> No, because the admin style sheets use "p" as a selector, and not
> ".django-admin p". Thus, the admin styles also affect stuff outside
> the admin itself, which was exactly my point.
I believe what Rudolph was trying to say was, wrap the enti
plications), so the debate is merely
academic to me at this point.
--
--Max Battcher--
http://www.worldmaker.net/
"I'm gonna win, trust in me / I have come to save this world / and in
the end I'll get the grrrl!" --Machinae Supremacy, Hero (Promo Track)
--~--~-~--
gged.
Sorry I haven't taken the time yet to file a formal report. This was on
my Windows development machine. My uninformed guess is it may be
related to the new color output (ie, I see no color output and instead
this exception).
--
--Max Battcher--
http://www.worldmaker.net/
"I&
(random name, I don't know if it actually was
one of the ones involved) were www.paypal.com, when clicking links in
their email.
--
--Max Battcher--
http://www.worldmaker.net/
"I'm gonna win, trust in me / I have come to s
ontrib in
magic-removal it should probably be django/contrib/csrf/middleware.py,
with the focus on "apps" rather than functionality.
--
--Max Battcher--
http://www.worldmaker.net/
"I'm gonna win, trust in me / I have come to save this world / and in
the end I'll get
es/2006/04/sakila-08/
> we might want to build a example which does have a backend to show a
> lot more of the complex issues.
You could do similar things with SQLite. Particularly since an SQLite
library will be a standard library in Python 2.5.
--
--Max Battcher--
http://www.worldmak
fy your all() result if you want.
dict((object.id, object) for object in ContentType.objects.all())
--
--Max Battcher--
http://www.worldmaker.net/
"I'm gonna win, trust in me / I have come to save this world / and in
the end I'll get the grrrl
ake an optional revision number as an argument (IIRC,
--rev=) and it will "de-update" (update your working copy to a previous
revision).
--
--Max Battcher--
http://www.worldmaker.net/
"I'm gonna win, trust in me / I have come
xis when describing which to use
and when.
--
--Max Battcher--
http://www.worldmaker.net/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to dja
shouldn't need to deal
with HttpRequest and if it did, it can't be used for filtering in a
urls.py file if it requires a request object... I don't see a better
alternative.
[1] http://code.djangoproject.com/ticket/4438
What do you y
incompat
> changes" inner child, but that's something I have to work out.
I have no problem for seeing it solved the intrusive way if that's
what makes the most sense for the problem set. Hopefully something
like this can even be done without breaking too many backward
compatibility egg
title }} rather than {{
blocks.title }} to mirror the existing {{ block.super }} var...)
Assuming the order of template rendering is what I remember thinking
it was...
--
--Max Battcher--
http://www.worldmaker.net/
--~--~-~--~~~---~--~~
You received this message becaus
I'm not sure if there is a large enough need for your script, Carl K.
Creating the databases themselves should be a rare activity. Perhaps
you'd be better off looking for a deployment engine that supports what
you need, such as Capistrano.
--
--Max Battcher--
http://www.worl
plate writer doesn't explicitly style a level.
Apps don't need to agree on levels as long as template writers don't
mind checking what levels an app might "throw".
So, basically I'm suggesting adding a tags or labels field rather than
a debug-style levels
uld have its own settings anyway, at the very least for
separate SITE_IDs. (Settings is just python, so you can easily
inherit some base settings with a line like ``from base_settings
import *``.)
--
--Max Battcher--
http://www.worldmaker.net/
--~--~-~--~~~---~--
at up with new versions each
quarter, if not each month...
--
--Max Battcher--
http://www.worldmaker.net/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this
emaining instance
of maxlength rather than max_length... It's still convenient to rope
together all warnings rather than have them printing at odd times during
debugging.
It would be nice to easily validate non-installed models, but I don't
think that's a compelling use case in eith
On Jan 21, 4:25 pm, "Matthew Flanagan" <[EMAIL PROTECTED]> wrote:
> ADMIN_FIND_ADMIN_CLASSES = True
> ADMIN_MODELS = (
> 'myproj.myapp.admin.PollAdmin',
> 'someotherproj.someapp.admin.FooAdmin',
> )
My 2 (belated) cents on the issue: the settings.py idea is the best
I've seen in the threa
I was thinking that another option would be to decouple the
INSTALLED_APPS setting from the data store to allow for future changes
(such as a better place to store app-specific settings than the global
namespace as CAPS_NAMES in the settings file), similar to the
patterns() and include() functions
> There are some things that we do though, that I don't see in Django. The
> biggest is our logging system, which I really like. In Django I've
> just seen logging in the admin page with the 'History'. Our setup is that
> we have a class LogEntry (actually action_log but i would change it now)
65 matches
Mail list logo