On Tue, Oct 21, 2008 at 12:45 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> In Elixir, when I add acts_as_list(qualifier=qualify) in Model I can
> use move_higher, move_lower ... methods.
Be careful about confusing multiple things here; there are
applications available for Django which add f
On Thu, Oct 23, 2008 at 1:47 PM, bruno desthuilliers
<[EMAIL PROTECTED]> wrote:
> It's indeed a pretty bad idea to refer to the project name in import
> statements (as well as in a couple other places too FWIW), and I
> defnitively fail to understand why it's documented that way.
It's documented
(putting on release manager hat...)
We've just put up an entry over at the official Django project blog
with details of the timelines for Django 1.0.1
and Django 1.1:
http://www.djangoproject.com/weblog/2008/oct/24/upcoming-releases/
Please bear in mind the immediate consequences of these timel
On Sat, Oct 25, 2008 at 10:45 AM, Keyton Weissinger <[EMAIL PROTECTED]> wrote:
> Is there an equivalent to the Rails Rumble for the Django community?
> Shouldn't there be one? What do you think?
There was one a couple months ago:
http://djangodash.com/
Google is your friend :)
--
"Bureaucrat
On Sat, Oct 25, 2008 at 2:09 PM, Jeff Anderson <[EMAIL PROTECTED]> wrote:
> We have an alias set up in postfix that sends the e-mail to our script
> via a pipe.
>
> The python script imports our Django models, and parses the e-mail
> message with the email module, and does what it needs to.
You c
On Sun, Oct 26, 2008 at 9:19 PM, Steve Holden <[EMAIL PROTECTED]> wrote:
> Here's a specific example of a piece of code that uses a web app's
> models. It should get you started - just dive in and write some code!
> The tricky bit is providing the settings without using a "settings"
> module. I ca
On Mon, Oct 27, 2008 at 9:27 PM, Mr. Z <[EMAIL PROTECTED]> wrote:
> Which is the easiest way to pass the new django documentation from
> rest to HTML?
This is covered in the documentation:
http://docs.djangoproject.com/en/dev/internals/documentation/
--
"Bureaucrat Conrad, you are technicall
On Wed, Oct 29, 2008 at 5:59 AM, Mr. Z <[EMAIL PROTECTED]> wrote:
> Thank you both. I'm trying to create a view that converts the ReST
> documentation to HTML and shows it integrated with my templates, but
> with docutils it gives out a lot of errors. And with sphinx it just
> generates plain comp
On Thu, Oct 30, 2008 at 7:31 AM, Dennis Schmidt
<[EMAIL PROTECTED]> wrote:
> Well that does work, though in the Manager documentation it's said:
>
> "If you use custom Manager objects, take note that the first Manager
> Django encounters (in the order in which they're defined in the model)
> has a
On Fri, Oct 31, 2008 at 8:29 PM, pk <[EMAIL PROTECTED]> wrote:
> Am I missing something? Should that mechanism be refactored so that it
> can be used for user applications? Is there a better way to do
> application level configuration -- i.e. for app designed to be
> distributed and reused?
If yo
On Mon, Nov 3, 2008 at 6:23 AM, Dj Gilcrease <[EMAIL PROTECTED]> wrote:
> Cause I actually like having the django_apps namespace so I can
> quickly identify if something being imported is a django app or some
> regular python module
A Django application *is* a Python module. It's not some secret
On Mon, Nov 3, 2008 at 7:01 PM, pk <[EMAIL PROTECTED]> wrote:
> James is right that for any of my own app, I can just tell the user
> to put in some settings in the project level settings.py file. In fact
> that is exactly what I do now.
And that is what quite a number of popular third-party Djan
On Wed, Nov 5, 2008 at 11:31 PM, ammo <[EMAIL PROTECTED]> wrote:
> Does this thing work for anyone else?
Well, it works fine for me when I use "verbose_name_plural", which is
the correct value and what's listed in the documentation (not
"verbose_plural_name" as you've typed here).
--
"Bureaucr
On Thu, Nov 6, 2008 at 5:12 AM, coan <[EMAIL PROTECTED]> wrote:
> Why isn't there an option to have the request object passed to the
> login form?
The login view in the Django admin actually used to do this; see our
most recent security-oriented release for the reasons why it doesn't
do that anym
On Wed, Nov 5, 2008 at 12:18 PM, Tim O'Toole <[EMAIL PROTECTED]> wrote:
> But I obviously cant do the following without root access
>
> ln -s `pwd`/django-trunk/django SITE-PACKAGES-DIR/django
>
> Whilst I can set the PYTHONPATH, I can't then write to PythonPath in
> the Apache configuration file
On Sun, Nov 9, 2008 at 10:13 PM, Frank <[EMAIL PROTECTED]> wrote:
> The charset I use in the html file is 'gb2312'.
>
> What do I have to do in order to be able to display Chinese language
> content?
You probably want to have a look at the settings documentation:
http://docs.djangoproject.com/en
On Fri, Nov 14, 2008 at 3:56 PM, ek_wals <[EMAIL PROTECTED]> wrote:
> It seems to me that this kind of thing is easily translated to Django
> templates,
> quicker to type, easier to read, and infinitely extendable.
>
> Any thoughts before I begin playing?
Feel free to write it. I wouldn't get any
On Fri, Nov 14, 2008 at 5:49 PM, Eric Chamberlain <[EMAIL PROTECTED]> wrote:
> We have five or so ManyToMany fields (with 10,000+ and growing total
> entires in each field, only a few are selected for any one profile) in
> our user profile. When we bring up the profile in the admin, the page
> ta
Tonight we've released Django 1.0.1, a bugfix release in the 1.0
series containing improvements and fixes since the 1.0 release. This
is a recommended upgrade for anyone currently running Django 1.0.
The blog entry announcing the release is here:
http://www.djangoproject.com/weblog/2008/nov/15/10
On Sat, Nov 15, 2008 at 7:37 PM, Malcolm Tredinnick
<[EMAIL PROTECTED]> wrote:
> Yep, looks like something went wrong there. James is offline at the
> moment, but he'll fix it when he gets a chance. The security-aware user
> will avoid using the tarballs until they're fixed.
I'm looking into it.
On Sat, Nov 15, 2008 at 7:48 AM, leonel <[EMAIL PROTECTED]> wrote:
> Ive downloaded the tar.gz from
> http://www.djangoproject.com/download/1.0.1/tarball/
>
> and the md5sum does not match the md5sum from:
> http://media.djangoproject.com/pgp/Django-1.0.1-final.checksum.txt
OK, so here's what ha
On Sat, Nov 15, 2008 at 8:42 PM, James Bennett <[EMAIL PROTECTED]> wrote:
> 1. When I rolled the release last night, I did 'python manage.py
> sdist' to generate the package, then uploaded it to the
> djangoproject.com server.
(and obviously I meant 'setup.py sdi
On Sun, Nov 16, 2008 at 8:10 PM, Leonel Nunez <[EMAIL PROTECTED]> wrote:
> Will there be many changes for django with python 3
As this is a fairly common question, *please* consider searching the
list archives for information.
--
"Bureaucrat Conrad, you are technically correct -- the best ki
On Mon, Nov 17, 2008 at 10:26 PM, Horus Kol <[EMAIL PROTECTED]> wrote:
> TemplateDoesNotExist at /admin/doc/
>
> Anyone got any ideas?
It helps to have the admin docs application (which is *not*
'django.contrib.admin', but rather 'django.contrib.admindocs') in your
INSTALLED_APPS, so that its bun
Tonight, to clear up some problems with the packaging of the Django
1.0.1 release from Friday, we've released Django 1.0.2; once again,
this is a bugfix-only release, and is a recommended upgrade for anyone
targeting or using Django 1.0 or Django 1.0.1.
Weblog entry announcing the release is here
On Thu, Nov 20, 2008 at 2:02 PM, Epinephrine <[EMAIL PROTECTED]> wrote:
> How can I keep the field from being editable in the Admin edit page
> for that class?
I don't really mean to sound rude in saying this, but your best bet is
probably to read through the documentation for the admin:
http://
On Thu, Nov 27, 2008 at 8:12 PM, boloris <[EMAIL PROTECTED]> wrote:
> Can you help-me?
The error tells you that some edit you have made to your settings file
caused it to no longer be a valid Python source-code file. Your best
bet is to perhaps try out a Python tutorial to learn the Python
prog
On Thu, Nov 27, 2008 at 5:11 PM, Chris Smith
<[EMAIL PROTECTED]> wrote:
> From experience with other ORM platforms (nHibernate, custom built),
> I'd expect this to flatten out to a table with approximately the
> structure:
You probably want to read the official Django documentation on how
model i
On Sat, Nov 29, 2008 at 3:19 AM, jai_python <[EMAIL PROTECTED]> wrote:
> Issue that I found out is "The variable 'colour' gets overwritten
> everytime when the user selects different values". Then how come it is
> possible that the request.POST shows all selected values. And why am
> not getting t
On Sat, Nov 29, 2008 at 5:25 PM, AJ <[EMAIL PROTECTED]> wrote:
> to the vairables self and commit. So as far as I can tell I can't do
> this in the Admin. It looks like I would need to write my own custom
> form and view. Is this correct, or is there another way to do this?
Consult the documen
On Sun, Nov 30, 2008 at 11:48 PM, David Shieh <[EMAIL PROTECTED]> wrote:
> I think your solution can resolve my problem.But does it a bit
> complex ?
> In fact , what I really want is a view function that will be called by
> every view function.
> i.e. , if I wrote an auth system , I need to authe
On Mon, Dec 1, 2008 at 3:05 PM, coldlight <[EMAIL PROTECTED]> wrote:
> Another one: in the file
Please don't do this; this is not the errata mailing list for "The
Definitive Guide to Django", it is the mailing list for discussion of
and by users of Django, and every time you post a message here y
On Tue, Dec 2, 2008 at 3:42 AM, Vince <[EMAIL PROTECTED]> wrote:
> 2. Is there any built-in opton in Django (0.97 version) to unzip
There is no such thing as "Django 0.97". Releases of Django are as follows:
0.90
0.91
0.95
0.96
1.0
(with minor bugfix releases on several of them, like "0.96.1" a
For what it's worth, I'm a huge fan of virtualenv:
http://pypi.python.org/pypi/virtualenv
and of Doug Hellmann's virtualenvwrapper:
http://www.doughellmann.com/projects/virtualenvwrapper/
What virtualenv does, basically, is create an isolated Python
environment into which you can install stuff
On Wed, Dec 3, 2008 at 11:45 AM, SteveB <[EMAIL PROTECTED]> wrote:
> I've had positive experiences with the standalone CherryPy webserver
> Although I can't prove it, I'm suspicious that the problem may be that
> Django is not thread safe. Can anyone state for a fact that it is
> safe to use Djan
On Thu, Dec 4, 2008 at 1:37 PM, ohmi <[EMAIL PROTECTED]> wrote:
> As the subject says - will Django compile and run on Python 3.0?
No, nor is it expected to for at least a year or two, something
entirely consistent with the general plan for pretty much all Python
software to migrate.
If you're g
On Fri, Dec 5, 2008 at 2:07 AM, Florian Lindner <[EMAIL PROTECTED]> wrote:
> Last time I used Django (pre 1.0) it was recommended to always use
> trunk since the last released version was too outdated. Has this
> changed?
Yes.
0.96 -> 1.0 involved a large number of backwards-incompatible changes
On Fri, Dec 5, 2008 at 3:45 PM, Manu <[EMAIL PROTECTED]> wrote:
> Has the source code for djangobook.com ever released ? Is there a plan
> to release it if it is not released ? And lastly does anyone know of
> any projects which can provide the comments functionality of
> djangobook.com ?
If you
On Tue, Dec 9, 2008 at 7:50 PM, tenni <[EMAIL PROTECTED]> wrote:
> "optional_field" becomes a required field in the Admin. I assume
> something is overriding the model's blank=True for this field.
Yes. *You* are overriding that.
The moment you override a field's definition in a ModelForm is the
On Wed, Dec 10, 2008 at 6:28 PM, Django Newbie <[EMAIL PROTECTED]> wrote:
> This is probably an easy one, but I've tried what make sense to me with
> not success. What I want to do is in my admin pages, use the User
> module and enter the the user_id of whoever is logged in to add an entry
> in o
On Fri, Dec 12, 2008 at 6:24 PM, Malcolm Tredinnick
wrote:
> which isn't as far out of bounds as it looks. You get there from the 1.0
> release notes, to the porting document, which then links to that page.
> But, for people coming directly to Django 1.0, we've missed something.
> I'll fix that w
On Sat, Dec 13, 2008 at 5:55 AM, Lee wrote:
>If I want to return a specified column in this situation without
> using SQL query (select y from table where x =1), how to do it?
There is a method which will do this, and it is listed in the database
API documentation alongside all the other que
On Tue, Dec 16, 2008 at 7:44 AM, rtmie wrote:
> OK, got it working:
> changed view code to:
> if request.method =='POST':
>form = AppUserForm(request.POST,request.FILES)
This is covered in the forms documentation; you may want to give it a
read to learn how the django.forms module works
On Tue, Dec 16, 2008 at 8:23 AM, shabda wrote:
> Django registration has moved from googlecode to Bitbucket, which
> means my projects which are svn:externaled to django-registration
> might not get the latest code. Is anyone maintaining an svn repository
> which is I can svn:external to?
You kn
On Tue, Dec 16, 2008 at 7:19 AM, sagi s wrote:
> So I'm looking at the data available in the template to try to get my
> hands dirty and restore all this manually but can't find how all this
> magic works. I'm in the debugger looking at the form passed to the
> template via the context and this l
On Wed, Dec 17, 2008 at 11:32 AM, Travis Veazey
wrote:
> if you have a database you risk
> being exposed to SQL injection attacks if you do not harden your app against
> them.
This is actually two statements:
1. If you have a SQL database, you run some theoretical risk of SQL
injection attacks
On Wed, Dec 17, 2008 at 5:21 PM, Malcolm Tredinnick
wrote:
> This would be the "standard" solution. I thought James Bennett's
> django-profiles app did this, but apparently I'm mistaken (it would be
> slightly duplicated work if it did, in any case).
django-profiles kicks you to a profile-creati
On Fri, Dec 19, 2008 at 12:41 PM, lekvar...@gmail.com
wrote:
> Hi, I wanna know wich of the well known frameworks is the best choice
> for myspace-clone community website.
Since you're basically going to be throwing money away no matter what
("cloning" an established player and trying to beat th
On Sat, Dec 20, 2008 at 3:02 PM, Bradley Wright wrote:
> Given the following code, can anyone explain why Django can't reverse
> this, because I'm of the opinion that reverse is the flakiest function
> ever:
The permalink decorator is a shortcut which will, on its own, apply
reverse() to what th
On Fri, Dec 26, 2008 at 3:15 PM, waltbrad wrote:
> How much of django's code is broken with python 3.0?
The installation instructions and the installation FAQ cover this issue:
http://docs.djangoproject.com/en/dev/intro/install/#install-python
http://docs.djangoproject.com/en/dev/faq/install/#
On Sun, Dec 28, 2008 at 7:19 PM, Alessandro Ronchi
wrote:
> Django itselfs permits selecting the i18n language via POST. I think
> it should be useful to add also a GET var to set the language, and a
> localization middleware catches it.
This has been debated to death, and the conclusion is that
On Mon, Dec 29, 2008 at 3:02 AM, Vicky wrote:
> command like below is not working... can u suggest a way??
It is very, very, very, very important to read the big warning at the
top of the template documentation, which states that the Django
template language *is not* just Python code embedded in
On Mon, Dec 29, 2008 at 3:38 AM, Shuge Lee wrote:
> return render_to_response( 'a.html', {'obj': obj, 'category':
> Category} )
>
> a.html
> ...
> {% load comments %}
> {% render_comment_form for category %}
The problem may be that you are passing Category -- the model which
represents all categ
On Jan 5, 2:21 am, HB wrote:
> Hey,
> I'm reading "The Definitive Guide To Django" but it is too out dated.
> Do you recommend "Practical Django Projects" instead?
> It seems to me that "The Definitive Guide To Django" is more organized
> and covers a lot of materials.
> What do you think?
As th
On Jan 5, 6:04 am, HB wrote:
> Sure, I mean encourage not force :)
Your email client apparently failed to generate tests for your
message, resulting in a misunderstanding.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
On Thu, Jul 17, 2008 at 2:14 AM, Phillip Parrin
<[EMAIL PROTECTED]> wrote:
> I'm also looking for the souce code, mainly i'm looking for the
> advanced templates you mention when building the weblog. Did you get
> the chance to finish the source?
I'm tracking down one other reported issue which -
On Wed, Jul 16, 2008 at 6:05 PM, Henrik Bechmann <[EMAIL PROTECTED]> wrote:
> Can anyone with experience or knowledge of both Django and Kohana (PHP
> framework, son of CodeIgniter) list contexts in which each would be
> most appropriate? I'm in a selection process right now with both on
> the sho
On Sun, Jul 20, 2008 at 6:57 AM, Hussein B <[EMAIL PROTECTED]> wrote:
> I got that illusion due the slow official releases cycle...
Be careful with this logic, because it is misleading. For example:
Britain has not had a new Prime Minister since June 2007; does this
mean the British Government ha
On Mon, Jul 21, 2008 at 4:12 PM, Amit Ramon <[EMAIL PROTECTED]> wrote:
> autodiscover() goes over INSTALLED_APPS and tries to import their admin
> modules. When such a module isn't present, ImportError is caught and
> consumed. However, if some admin module do exists, but for some reason it
> t
On Mon, Jul 21, 2008 at 4:09 PM, Django_newbie <[EMAIL PROTECTED]> wrote:
> This save() fails because the form.is_valid() is not true, and the
> Blog(foreignkey) field is missing from the post data, how can i make
> this save without letting user choose this blog field? Or is it
> necessary that t
2008/8/18 Will Rocisky <[EMAIL PROTECTED]>:
> actually I have to do it in views, not template
> I need some pure python code
All Python datetime objects support the 'strftime' method, which is
what you want to use. Consult Python's documentation for the full
details.
--
"Bureaucrat Conrad, you
On Thu, Aug 21, 2008 at 1:50 AM, Rodney Topor <[EMAIL PROTECTED]> wrote:
> So: Why is the use of explicit URLs discouraged, especially in
> templates? Why is it better to write {% url
> project_name.app_name.views.results %} in a template than to write /
> results/ (assuming the URLconf maps /res
On Thu, Aug 21, 2008 at 4:51 AM, Will Rocisky <[EMAIL PROTECTED]> wrote:
> Is it possible (like Rails) to not to enter every method and it's url
> everytime? And url should go to the method straight unless defined.
No.
1. Python's general philosophy is that it's best to explicitly say
what you w
On Sat, Aug 23, 2008 at 3:57 AM, Viktor Nagy <[EMAIL PROTECTED]> wrote:
> is this true or both my test and real code are simply wrong? I was
> kinda shocked from this
The problem here is basically conceptual. You've assumed that, because
it supports some of the same operations as a list, a QueryS
On Sun, Aug 24, 2008 at 5:04 AM, aleray <[EMAIL PROTECTED]> wrote:
> Really no idea ?
Well, you could always do the following:
>>> from django.contrib import admin
>>> help(admin.site)
Which shows you full API documentation for the AdminSite class,
listing all of its methods and what they do, i
On Sun, Aug 24, 2008 at 6:40 AM, aleray <[EMAIL PROTECTED]> wrote:
> Thanks for the tip, I often forgot the existence of python doc!
> However the thing is in the version of django I'm using there is not
> admin.site, so no API to unregister. Like I said, the models are
> registered with the old f
On Sun, Aug 24, 2008 at 7:07 AM, coan <[EMAIL PROTECTED]> wrote:
> I wonder why custom error messages are considered more dangerous than
> the help_text in the same form?
Because people do things like this:
class HackMySiteForm(forms.Form):
some_text = forms.CharField(max_length=255)
de
On Sun, Aug 24, 2008 at 6:23 AM, James Bennett <[EMAIL PROTECTED]> wrote:
> Which shows you full API documentation for the AdminSite class,
> listing all of its methods and what they do, including this one:
(and of course if you have DJANGO_SETTINGS_MODULE set properly,
there's
On Sun, Aug 24, 2008 at 7:26 AM, Mark <[EMAIL PROTECTED]> wrote:
> Are there better ways to do this?
Yes.
from django.db import models
from django.contrib.auth.models import User
class Car(models.Model):
brand = models.CharField(max_length=20)
color = models.CharField(max_length=10)
2008/8/25 krylatij <[EMAIL PROTECTED]>:
> You can use ThreadLocals middleware
> http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
> to get current user
No.
There is no longer any reason whatsoever to use this in any way in the
admin. It was an ugly, fragile hack before and it's unn
2008/8/26 marsii <[EMAIL PROTECTED]>:
> But I have the same error still. :-(
I'll bet money that you have this:
import markdown
When the book tells you to do this:
from markdown import markdown
There's a very important difference.
--
"Bureaucrat Conrad, you are technically correct -- the b
As part of the run up to the final Django 1.0 release (scheduled for
next week!), tonight we've pushed out Django 1.0 beta 2, including the
final new features for 1.0 (mainly a refactoring of
django.contrib.comments). As a beta release, we of course don't
recommend it for production use, but if yo
On Wed, Aug 27, 2008 at 7:41 AM, <[EMAIL PROTECTED]> wrote:
> Could I do this with Django?
You could do it with Python, and then use Django to make it visible
over the Web, yes.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~-
On Fri, Aug 29, 2008 at 5:58 PM, Guillaume Lederrey
<[EMAIL PROTECTED]> wrote:
> After updating to the latest trunk, I get a couple of errors when I
> have field that define "core=True". After digging into the code, I
> find changeset 8616 (http://code.djangoproject.com/changeset/8616)
> that docu
On Mon, Sep 1, 2008 at 4:56 AM, Nick Day <[EMAIL PROTECTED]> wrote:
> I have a model called "en". In the admin interface this appears as
> "En" on the site administration page and in the breadcrumb trail.
http://docs.djangoproject.com/en/dev/ref/models/options/#verbose-name
--
"Bureaucrat Con
On Mon, Sep 1, 2008 at 7:22 PM, Alex <[EMAIL PROTECTED]> wrote:
> I have set the following in settings.py (among a thousand other
> combinations).
The value you want is the app label, which is 'core', followed by a
dot, followed by the model name, which is 'userprofile'. So
'core.userprofile'. No
On Mon, Sep 1, 2008 at 10:24 PM, Vance Dubberly <[EMAIL PROTECTED]> wrote:
> Hmm perhaps I should do
>
> foo = Foo.objects.filter(pk=1)
> foo_form = FooForm(instance=foo)
> data = foo_form.cleaned_data
Or you could do what the form itself is doing, namely, using the
function django.forms.models.
On Tue, Sep 2, 2008 at 2:30 AM, bruno desthuilliers
<[EMAIL PROTECTED]> wrote:
> More seriously, it took me 2 minutes playing with a model object in
> the interactive shell to come up with what seems a working solution:
Yeah, which is why I pointed out the easy wrapper function for it in
my email
istribution), or if you
are a hosting company which officially supports Django as an option
for customers, and you did **not** receive an advance notification of
this issue, please contact Django's release manager (James Bennett,
james at b-list dot org) as soon as possible so that you can be ad
We've just put up the package for the first Django 1.0 release
candidate; this package contains all of the progress made on Django
through the alpha and beta releases, and is fairly close to the final
Django 1.0 release. It's still not recommended for production use, but
we do encourage everyone t
On Tue, Sep 2, 2008 at 8:13 PM, Joeyx2 <[EMAIL PROTECTED]> wrote:
> Still waiting on that source code?
Guys, I promise you all that there will be a loud and triumphant
announcement on my blog when the package goes up. With Django 1.0
landing and the final changes from that still being worked on,
The Django team is pleased to announce the release of Django 1.0 this evening:
Download: http://www.djangoproject.com/download/
Release notes: http://docs.djangoproject.com/en/dev/releases/1.0/
Have fun with it, and we'll see you in a few days for DjangoCon.
--
"Bureaucrat Conrad, you are tec
On Wed, Sep 3, 2008 at 10:28 PM, Pepsi330ml <[EMAIL PROTECTED]> wrote:
> Thus i cannot use the PythonOption django.root
> Is there other alternative?
Well, what you can generally do to work around this if you have an
older Django is to create a new file, say, root_urls.py in your
project, and set
On Thu, Sep 4, 2008 at 4:28 AM, Aljosa Mohorovic
<[EMAIL PROTECTED]> wrote:
> since i'm using subversion for my sites in svn:externals i have django
> trunk and now i'm switching to 1.0 tag.
> so what i'm actually asking is if i'm using 1.0 tag in svn:externals
> does it mean that i'm guaranteed t
On Thu, Sep 4, 2008 at 2:29 PM, pavel srb <[EMAIL PROTECTED]> wrote:
> please, due to http://www.djangoproject.com/weblog/2008/sep/02/security/
> i would like to know, when there will be security patch for debian
> etch version
I follow the Debian bug tracker and lists for Django-related items,
It seems you're trying to take a Django application which was written
three releases cycles (or more) ago (since the syntax in some of your
code samples screams out that it's from an app written against 0.90 or
0.91) and attempting to simply fix it piecemeal to run on 1.0.
Speaking from experience
On Tue, Sep 9, 2008 at 4:15 AM, Benedict Verheyen
<[EMAIL PROTECTED]> wrote:
> i tried to do a django-admin startproject and it
> said that startproject wasn't a valid command.
> Weird. django-admin help indeed didn't show the startproject command.
This is currently intended behavior and I belie
On Wed, Sep 10, 2008 at 2:00 PM, David <[EMAIL PROTECTED]> wrote:
> and I wanted to have something along these lines but don't know how to
> convert to the new convention
Perhaps you should check out the documentation for generating forms
from models, which contains descriptions of how to do this
On Mon, Sep 15, 2008 at 8:50 PM, Steve Holden <[EMAIL PROTECTED]> wrote:
> This is k=nd of a wild-assed guess. Please tell me if it works.
>
> from django.core.management import call_command
> call_command('syncdb')
That is the way to do it; the whole manage.py/django-admin.py system
was refactor
On Mon, Sep 29, 2008 at 2:02 AM, jim <[EMAIL PROTECTED]> wrote:
> This gives me an error:
> Cannot resolve keyword 'user' into field. Choices are: xxx, yyy, zzz
>
> Any ideas as to what may be causing this?
Your profile model must have a ForeignKey or a OneToOneField pointing
to User, and the nam
On Tue, Sep 30, 2008 at 5:07 PM, kajigga <[EMAIL PROTECTED]> wrote:
> I've just come across this Django branch called "RowLevelPermission".
> http://code.djangoproject.com/wiki/RowLevelPermissions. I have yet to
> try it out.
Don't bother; it's dead as a doornail and has been for quite a long
ti
2008/10/2 Jarek Zgoda <[EMAIL PROTECTED]>:
> Anyway, I seem to be unable to change ordering of FKs relating to User
> object. Any hint?
So, suppose you have the following model, a simple user profile:
from django.contrib.auth.models import User
from django.db import models
class UserProfile(mod
On Fri, Oct 3, 2008 at 11:36 PM, Benjamin Buch <[EMAIL PROTECTED]> wrote:
> Is there somewhere a place in the documentation where SQL migration
> strategies are explained a little?
No. For the moment, the only "official", if it can be called that, way
to do this is via SQL's ALTER TABLE statement
On Sun, Oct 5, 2008 at 11:07 AM, globophobe <[EMAIL PROTECTED]> wrote:
> I encountered this when I upgraded from my recent copy of 0.97 django
> to 1.0-final. Why does MyForm not validate when instantiated as m =
> MyForm({'bfield':'False'})?
Because the field doesn't have "required=False"; all f
On Mon, Oct 6, 2008 at 3:52 PM, xkill <[EMAIL PROTECTED]> wrote:
> But it doesn't work, how can I do it?
The error message you will receive will tell you what to do.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~~---~-
On Fri, Oct 10, 2008 at 6:39 PM, Fenwick, Jacob L. <[EMAIL PROTECTED]> wrote:
> I suppose this makes sense, but what if I have a very complicated hierarchy?
> Such as if I have three tables, and their foreign keys relationships form a
> triangle?
The documentation for ForeignKey covers this case;
On Sun, Oct 12, 2008 at 5:51 AM, Nash <[EMAIL PROTECTED]> wrote:
> I get this error, you can see a paste here: http://dpaste.com/83932/
> The admin site doesn't work on production at all, on the testserver it
> works after a refresh.
You appear to have an error in your own code, as evidenced by t
On Sun, Oct 12, 2008 at 8:30 PM, meppum <[EMAIL PROTECTED]> wrote:
> I would like to be able to unit test my forms. Specifically, I'd like
> to be able to test individual clean methods, but I get errors when I
> try to call cleaned methods directly. Below is an example of testing a
> registration
On Mon, Oct 13, 2008 at 6:16 AM, DrMeers <[EMAIL PROTECTED]> wrote:
> I am writing a Blog-style django site which needs to render a
> collection of Item objects. Item is the root Super class for a whole
> bunch of sub-classes -- Photo, Video, Quote, News, etc. I want to be
> able to iterate throug
On Tue, Oct 14, 2008 at 3:10 PM, gearheart <[EMAIL PROTECTED]> wrote:
> http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
Sigh.
I guess this is the part where I go edit that wiki page to point
people to the better solution?
Yeah, I think this is the part where I go edit that wiki p
1 - 100 of 1799 matches
Mail list logo