Hi there,
this is my first post here; hope I'm posting to the right group.
I'm currently working on getting to run an 1.4-application (using a profile
model) on 1.5dev, using the the new (eagerly awaited by me)
custom user model.
I used django.contrib.gis.db.GeoManager with my former profile-Mode
Hi there,
I am trying to build an offline-django(1.6.5)-app (a single page for the
beginning).
I am serving a manifest-file with correct mime-type (text/cache-manifest),
linking it
with the -tag, rendered in a template.
The page is cached and shown offline in chrome, but not in IE11 nor Firefox
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
>I have not looked at this branch at all, but I'll strongly suggest
> that you remove the YUI stuff.
Adrian, could You explain your opinion a bit more?
Does that mean that there are plans to bundle another toolkit? If yes,
what toolkit?
Re
There's no established use of Dojo with Django yet.
Hopefully, there would be no such "established uses" with any JS
library. Django is a server-side framework. Even id Django is our
framework of choice, let us decide which client-side framework to use
in our applications.
Hi Adrian,
Thanks for explanation.
I am also against bundling any JS toolkit with *core* framework.
--
Regards,
Max
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To po
s a distinguishable class name and
(optionally) a data within an instance. So, there should be an Event
protocol elaborated.
What do you think? Comments and suggestions are eagerly welcome.
---
Regards,
Max
--~--~-~--~~~---~--~~
You received this message because
+1
Let the thing begin.
Regards,
Max.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe
newcomers-unfriendly (very complex, lack of usable
documentation and so on), so I'd stick with Spread.
If You are interested, feel free to look at the sources at
http://www.ragbag.ru/files/dispatcher.tar.gz
I will be glad to hear comments and sugges
hat it's still possible (perhaps due to a network error) that an event
gets lost. For reliable, guaranteed, asynchronous message delivery
you'll have to look somewhere else, sorry ;-)"
Maybe this is only a disclaimer, but I didn't dig further. Spread seems
to guarantee more.
Regards
There were a lot of words about unicodification of Django, but things
has not been moved a bit further.
The beginning is at
http://groups.google.com/group/django-developers/browse_frm/thread/bad8f2c4628646dc
Regards,
Max
--~--~-~--~~~---~--~~
You received this
nce
reasons for that ...
---
regards,
Max
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group,
f.render_node(node,
context).decode(settings.DEFAULT_CHARSET))
else:
bits.append(node.decode(settings.DEFAULT_CHARSET))
return ''.join(bits).encode(settings.DEFAULT_CHARSET)
However, I suppose the bug can be deeper than this and sh
Filled as #2996
Regards,
Max
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from
Unicode haven't been mentioned in your list and haven't made to
http://code.djangoproject.com/wiki/VersionOneFeatures
http://groups-beta.google.com/group/django-developers/browse_frm/thread/1debd2337965a765
http://groups-beta.google.com/group/django-developers/browse_frm/thread/6268156
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
s.
I suppose, newforms.util.ValidationError extend
core.validators.ValidationError, or full_clean should wait also for
core.validators.ValidationError.
I haven't filled a ticket yet, because I thought the matter should be
discussed here first.
Re
tin? Model.validate is still uses core.validators, BTW. Is
validation in models also going away in the long term?
Regards,
Max
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post
re than it bothers you. :)
Thanks for clarification!
Hacking a lot with newforms these days. Great stuff. MultiValueField/
MultiWidget are awesome.
Will do my best to help. Found some bugs, the patches will be soon at
trac.
Max
--~--~-~--~~~---~--~~
You received this m
getattr(mod, modelName)
That would allow custom and foreign to django classes to act as user
profiles, e.g. LDAP-based user profiles, etc., that are duck type-
compatible with django models to some extent.
Regards,
Max
--~--~-~--~~~---~--~~
You received this messag
rategies in my application apart from the django
models, and I've managed to make all of them cooperate nicely. But now
I'm forced to hack get_profile to make it work with my custom user
profile that use a different persistence strategy, simply because
get_profile blindly insist on Model-ba
On Apr 4, 2:09 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 4/4/07, Max Derkachev <[EMAIL PROTECTED]> wrote:
>
> > Well, User do nothing with the profile other then simply loading it in
> > get_profile.
>
> Except that 'get_profile'
The code would be like
So, the code would be something like
def get_profile(self):
"""
Returns site-specific profile for this user. Raises
SiteProfileNotAvailable if this site does not allow profiles.
"""
if not hasattr(self, '_profile_cache'):
on profile class
(the example in the code in the message below).
On Apr 4, 5:21 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 4/4/07, Max Derkachev <[EMAIL PROTECTED]> wrote:
>
> > That's not a problem. The API lookup can be easily emulated in cu
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
d types I use, but, it's ugly, and doesn't work
> entirely. I'm working on getting a real patch done for this, but have
> some questions/roadblocks.
>
> How do we want to handle field types that have multiple error
> messages? For instance, IntegerField has a "max&
]
return ''
@register.tag
def alias_context(parser, token):
params = token.split_contents()
return AliasContextNode(params[1])
And then do something like
{% alias_context top_context %}
{% add_data "one" top_cont
One thing - if you alias the top context at the top level, You'll end
up with memory leak - there will be a circular reference. It can be
avoided, if the context variable would hold a weakref.ref to the top
context.
On Apr 12, 5:04 pm, "Max Derkachev" <[EMAIL PROTECTED]> w
> Hmm. Aren't objects with __del__ attributes rare in pure python, or
> is there some other way you're thinking the gc couldn't collect the
> cycle?
Well, you don't know how are they rare indeed. Though, weakrefs are
simple and safe.
--~--~-~--~~~---~--~~
You re
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
the
User record associated with his OpenID set?
Why not to prevent the user from deleting the last association when
the association is actually *the last*?
BTW, I watch Your Django/OpenId progress closely because I'm building
the similar thing currently myself. We could coop
Sorry, I misunderstood.
The last association is only deleted when the password is set.
Got it.
Regards,
Max
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this g
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
nd of mine and I have been plotting out externalizing
various parts of contrib, like admin and auth. Are any groups currently
pursuing those goals as well?
Best regards,
Max
On Fri, Feb 3, 2012 at 8:35 AM, Brendan Smith <
bren...@nationalpriorities.org> wrote:
> I give +1 to the idea of
forts.
Alternatively, if all you need is a longer username, this monkey patch
works nicely: https://github.com/GoodCloud/django-longer-username
Best regards,
Max
On Wed, Feb 15, 2012 at 5:57 PM, Donald Stufft wrote:
> On Wednesday, February 15, 2012 at 5:49 PM, James Bennett wrote:
>
> On Wed, F
;t we update the page?
Best regards,
Max
On Tue, Apr 10, 2012 at 10:58 AM, Tom Evans wrote:
> On Tue, Apr 10, 2012 at 3:13 PM, Ian Lewis wrote:
> > Hi,
> >
> > I'm not getting why you *have* to add fields to the User model to store
> data
> > pertaining to
are about 2k open tickets). What about Trac makes the number
of open tickets a non-issue?
"- we can't put customized flags on tickets (easy, ui/ux) -- there are
> tags, but the result of the "Keywords" field in Trac shows the limits of
> unstructured tags;"
Could you
e.com/Moving-to-Github-vs-Bitbucket-td4476484.html
Best regards,
Max
On Fri, Apr 20, 2012 at 2:52 PM, Paul McMillan wrote:
> Max, and others on this thread,
>
> Arguing about the specific mechanics of how github issues work isn't
> productive. Put very plainly:
>
> Django wi
Another approach is to store language in the url (useful for mobile handsets
where disabled or unsupported cookies is still an issue). Django app which
uses this method: https://bitbucket.org/carljm/django-localeurl
--
You received this message because you are subscribed to the Google Groups
Hello everyone,
My name is Maxim Veytsman and I am a third year computer science
student at the University of Toronto.
There was a project idea in the wiki called "Improve Query Expressions
(F() syntax."
I have a list of syntactical improvements to handling of F expressions
especially with Date
On Tue, Jul 08, 2014 at 04:42:14PM +0200, Aymeric Augustin wrote:
> Hello,
>
> Since Django 1.4, it's possible to localize URL patterns with
> i18n_patterns. I have a slightly different use case. I need URLs in the
> form /// in order to implement country-specific behavior
> (eg. taxes, local regu
Once the DEP is ready, maybe it would make sense to discuss the
above-mentioned concerns with Ćukasz Langa? Black is quite opinionated, but
Django is a well-known project in the Python ecosystem, and its weight
could lead to some adjustments (or at least future stability guarantees) in
black?
t and sql_alter_column_no_default in
django.db.backend.base.schema.BaseSchemaEditor .
Comments are welcome.
Thanks,
Max
[1]
https://help.sap.com/saphelp_hanaplatform/helpdata/en/20/d329a6751910149d5fdbc4800f92ff/conten
What if this list of sites needs to be changed dynamically without app restart
(multitenancy)?
On Fri, Jan 29, 2016 at 12:45:02PM -0800, Tim Graham wrote:
> In another thread about adding a "scheme" field to the Site model [1], I
> floated the idea of moving the data stored by the Site model int
Hi everyone,
I'm working in a project with a large mysql database and i've faced with
problems generated on django admin list. Basically, the query executed to
retrieve a list of items from a model uses a SQL SELECT passing a list of
all attributes of model, but usually we only use a small set
, Lucas Magnum escreveu:
>
> You can use `list_select_related` for Django Admin too.
>
>
>
>
> []'s
>
> Lucas Magnum.
>
> 2016-07-21 15:52 GMT-03:00 Rael Max >:
>
>> Hi everyone,
>>
>> I'm working in a project with a large mysql datab
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/
--~--~-~--~~~---~--
1 - 100 of 107 matches
Mail list logo