hi,
I don't think I am giving apps in django the credit they deserve.
my initial understanding of apps was that I can have 10 websites on the
same server. I recently noticed that the session is shared between
apps, and essentially I can access any model within any app. So, the
idea is for a large
Hello,
With regards to order_with_respect_to, what if the object I would like
to order is not a child of some parent object. Say I have a blog app
and via the admin I can enter any amount of 'tags'. On the front page
of the blog I may want to have those tags in a specific order. Is this
possib
On 21 Dec 2005, at 01:37, Silas Snider wrote:
Do they just quote the string? Or do they use a 'bind variable'
type idea?
Example:
If an attacker typed
' or 'a'='a
into a password input field for instance, would the ORM properly
prevent the attempted attack from working
On Wednesday 21 Dec 2005 5:35 am, iGL wrote:
> I must have missed it in the doc. Would you like to give me the
> corresponding link?
look for 'legacy database' in the docs
--
regards
kg
http://www.livejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!
Do they just quote the string? Or do they use a 'bind variable' type idea?
Example:
If an attacker typed
' or 'a'='a
into a password input field for instance, would the ORM properly
prevent the attempted attack from working?
Sincerely,
Silas Snider
On 12/20/05, Adrian Holo
Looking around for a way to change table prefix for a model, e.g. by
default model "cd" generates all table names prefixed by "cd_", class
Person => table "cd_persons". Found a ticket,
http://code.djangoproject.com/ticket/891, and also have seen some
references to setting this in settings.py. W
Is there a way to do single table inheritance in django? E.g., I have
this part of a classical CD model:
# order is preserved here,
# but changes for derived classes => so we invert it for them!
class Person(meta.Model):
middle_name = meta.TextField(null=True)
last_name = meta.TextFie
On 12/20/05, Kevin <[EMAIL PROTECTED]> wrote:
> # my view
> def view_article(request, article):
> try:
> articles.get_object(name__exact=article)
> except:
> return HttpResponseNotFound()
>
> render_to_response('view_article', {'article': article})
>
> My question is, c
James Bennett wrote:
> On 12/20/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
> > I'm going to aim for a revision of the way the docs work, including
> > PDF versions, for around 1/1.
>
> Ever thought about going to something like DocBook for a downloadable
> version of the documentation? You c
I must have missed it in the doc. Would you like to give me the
corresponding link?
TIA,
Giorgi
Kenneth Gonsalves wrote:
> On Wednesday 14 Dec 2005 5:34 pm, [EMAIL PROTECTED] wrote:
> > native method (SQL). I'd much rather build my database up using
> > a nice GUI then get Rails to 'plug' into
On 12/20/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
> I'm going to aim for a revision of the way the docs work, including
> PDF versions, for around 1/1.
Ever thought about going to something like DocBook for a downloadable
version of the documentation? You can parse that into pretty much a
On 12/20/05, braver <[EMAIL PROTECTED]> wrote:
> I'd like to use the same database with django and rails, and perl's
> Class::DBI, for that matter, to compare what they can do for me.
> Naming conventions are different, so you'd have to supply explicit
> table names in either one or another. For
On Tuesday 20 December 2005 09:37, Adrian Holovaty wrote:
> On 12/20/05, John Szakmeister <[EMAIL PROTECTED]> wrote:
> > Now onto the real reason I'm writing this email. There is great
> > flexibility in ORM layer, but the one thing that I haven't seen addressed
> > in any of the documentation is
This isn't a Django thing - wildcard DNS entries and mod_rewrite will
help you here:
http://www.google.com/search?q=wildcard+subdomains+mod_rewrite
On Dec 20, 2005, at 4:15 PM, Jeffrey E. Forcier wrote:
However, if I'm right in thinking the docs directory is up-to-date,
that's probably a bit nicer on their bandwidth :)
I probably shouldn't tell anyone... but our bandwidth is essentially
free, so wget away :)
I'm going to aim for a re
I am embarrassed to admit that I once did a monstrous 'wget' call
which downloaded the entire documentation section of
djangoproject.com and then converted the links and CSS includes to
local. It actually worked quite well.
However, if I'm right in thinking the docs directory is up-to-dat
On 12/20/05, braver <[EMAIL PROTECTED]> wrote:
> I'd like to play with django offline, but the docs seem to be either
> online or plain text. Is there a downloadable version, e.g. an HTML
> tarball or a PDF?
The closest we have to that is the /docs/ directory in the
distribution, which, it seems
I'd like to play with django offline, but the docs seem to be either
online or plain text. Is there a downloadable version, e.g. an HTML
tarball or a PDF?
I'd like to use the same database with django and rails, and perl's
Class::DBI, for that matter, to compare what they can do for me.
Naming conventions are different, so you'd have to supply explicit
table names in either one or another. For now I generate SQL from a
django model and then issue s
Is there any builtin protection against SQL Injection in django? Let
me present a common case I use:
class Article(meta.Model):
name = meta.SlugField()
title = meta.CharField()
text = meta.TextField()
# my url conf
(r'^articles/(?P.*)/$', 'mydomain.views.view_article')
# my view
d
Yeah, after more experimenting, I came to the same conclusion and
globbed the whole path and tokenized the names in the view.
Thanks for the help.
> Id rather not go to:
> r'/albums/(?P\d+)/$' and keep the more readable urls
You can still use this format and get readable urls:
r'albums/(?P)/$'
The album_dir is simply a parameter that is passed to your view
function. If you set your regex up you can limit it/adjust it to allow
for certa
On 12/20/05, Kevin <[EMAIL PROTECTED]> wrote:
> Now, that all works, but I'm trying to figure out how to define my
> urlconf so that I can specify urls like a filesystem, eg:
> www.mydomain.com/albums/2005/may/fishing_trip/
>
> I've tried something similar to:
> (r'^/albums/(?:([a-z0-9_]+)/)+$', '
Hey guys, got myself stumped and I'm hoping you could help me figure
this one out. In my code I've got a hierarchical category structure
for my model that's intended to roughly analogize a filesystem, eg:
class Album(meta.Model):
location = meta.SlugField()
name = meta.CharField()
pa
not django users. I want to have my own subscription system.
Thanks,
Armin
On 12/20/05, John Szakmeister <[EMAIL PROTECTED]> wrote:
> Now onto the real reason I'm writing this email. There is great flexibility
> in ORM layer, but the one thing that I haven't seen addressed in any of the
> documentation is upgrading the models. I don't always get them right the
> first
I am not sure about what you are asking, but this may help:
http://www.djangoproject.com/documentation/faq/#if-i-make-changes-to-a-model-how-do-i-update-the-database
First, let me say that I'm very impressed by Django and I want to both the
community and World Online for opening up such an impressive tool. I'm not a
web guy, but even I have been able to make use of it and create a few apps to
myself and other engineers do our jobs better.
Now onto the rea
Maniac a écrit :
> I remember my struggles with such an issue, though I'm not sure it's the
> same.
>
> The form data should include not only 'image' field but also
> 'image_file' field. This is rendered by FormWrapper as a file upload
> control and only then file's contents will be in a POST da
Probably fixed. :-)
Batiste a écrit :
> Hi,
>
> Form this model
> -
> class Image(meta.Model):
> class META:
> admin = meta.Admin()
> image = meta.ImageField(upload_to='images')
> annonce = meta.ForeignKey(Annonce,verbose_name="L'annonce")
Batiste wrote:
Request Method:POST
Request URL:http://127.0.0.1:8080/publier-media/1/
Exception Type: TypeError
Exception Value: string indices must be integers
Exception Location:
/usr/lib/python2.4/site-packages/Django-0.90-py2.4.egg/django/core/validators.py
in isValidImage, line 144
A
Hello!
Are there any known issues with the Django admin app and ON DELETE
CASCADE? For example, let's say I have two models (A and B), with the B
having a ForeignKey pointing to A. Now (while playing with the Django
free DB API in the Python interactive interpreter) if I insert a new
record for A
32 matches
Mail list logo