hi Julien
that makes perfect sense and looks much better than auto_now. always good to
avoid deprecated stuff.
thanks a lot
André
On Mon, Jul 21, 2008 at 6:26 AM, Julien Phalip <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> The declarative attribute 'auto_now' (as well as 'auto_now_add') is
> depreca
Thank you for clarifying, I hope this will be crawled and help other
googlers.
However, I'll like to point out that users like me can (WILL) get
confused as we read on in the documentation, because we will reach the
section called 'Using translations in your own projects' which is the
most releva
I'm running the current trunk, and I'm seeing a strange problem. I
noticed Django's templates were occasionally displaying variables as
empty strings, when there should have been something. Then I realized,
all the strings that weren't being shown had a \x... character in
them. I can understand wh
On Sun, 2008-07-20 at 22:03 -0700, Chris wrote:
> I'm running the current trunk, and I'm seeing a strange problem. I
> noticed Django's templates were occasionally displaying variables as
> empty strings, when there should have been something. Then I realized,
> all the strings that weren't bein
Ben Ford wrote:
> Hi There,
>
> It has been possible in the past to use multiple databases with
> django. There was a branch for it and about a year ago it was bought
> up to date with trunk. However that branch hasn't seen any activity
> for some time and is effectively dead. There's now a (lo
Forgive the repost, but after initially seeing my original post,
Google appears to have deleted it, so here goes again.
I'm running the current trunk, and I'm seeing a strange problem. I
noticed Django's templates were occasionally displaying variables as
empty strings, when there should have bee
> Same problem here .
>
> Im trying to put a form into de session but I can't. The error it gave
> me was the same you have
There are limitations to what can be pickled; see
http://docs.python.org/lib/node317.html
I don't know the intrinsic details of how a form is pickled, but
probably
Hi,
The declarative attribute 'auto_now' (as well as 'auto_now_add') is
deprecated and its support will eventually be dropped. To achieve that
you need to override the 'save' method. In that same method you can
also call the parent's 'save' method to propagate the change to the
ancestors:
ModelA
Same problem here .
Im trying to put a form into de session but I can't. The error it gave
me was the same you have
On Jun 25, 5:24 am, Rufman <[EMAIL PROTECTED]> wrote:
> I'm trying to create a little hack, so that i have dynamic django
> forms.
> So that i have the state of the form
>> On Sat, Jul 19, 2008 at 11:50 PM, Julien Phalip <[EMAIL PROTECTED]> wrote:
>> >
>> Oops - sorry, I wasn't very clear in my original request. I'm looking
>> for a set type in the Django model hierarchy. Does this make more
>> sense?
>
> A set is just an unordered collection of objects. In othe
> {"pk": "0", "model": "polls.Choice", "fields": { "choice": "I like
> vegetables", "votes": "0"}}
also, fyi, it looks like primary keys have to start at 1
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django us
Here's a trick:
use the manage.py dumpdata command to see what the existing format is!
[
{
"pk": "1",
"model": "polls.poll",
"fields": {
"pub_date": "2008-07-20 17:44:31",
"question": "TEST 1"
}
},
{
"pk": "1",
"model": "polls.choice",
"fields": {
I don't know how to import a json fixture that uses a foreign key.
Searching the forums and web wasn't helpful for me to find specifics,
so I hoep someone can point out my silly mistake.
Hers's my example json:
[
{"pk": "0", "model": "polls.Choice", "fields": { "choice": "I like
vegetables", "
Are you targeting mod_python or mod_wsgi?
On Jul 21, 8:33 am, DoctorMO <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> In order to deploy multiple django based websites I've created a set
> of scripts which build the setup.py and debian directory for deb based
> deployment of django websites. At the mo
Well, I tracked down the admin/index.html page and I see that it
checks the variable app_list.
Going to django/contrib/admin/sites.py, I put a print statement to
print out my app_list. Can anyone spot anything wrong?
[ { 'has_module_perms': True,
'models': [ { 'admin_url': 'auth
On Sat, Jul 19, 2008 at 11:50 PM, Julien Phalip <[EMAIL PROTECTED]> wrote:
>
> 'set' is a Python standard object [1], since version 2.4. In version
> 2.3 you need to import the 'Set' package first.
> So, if you care about backward compatibility in Python, the most
> secure way to import it is:
Oo
Shared global state (in the database) between test runs is dangerous.
If I use the django.test.testcases.TestCase superclass for my test
cases, it will clear the global state -- but only before each run, so
the last one that runs will not clear out the objects I created (or
the fixture).
My Pyth
HI all,
Just testing the Flatpages functionality out of django and found out
that when the default.html template is missing, the error is not
showing on the default django error way, but a simple stack error.
Don't know if this is a bug. I'm using 0.97-pre-SVN-8012.
My flat page work well when p
Hello!
I'm still getting the "You don't have permission to edit anything."
message and I'm kinda stumped. I am using Django changelist 8012,
which should be post merge.
I put print right before the __import__ statement and it seems like
the admin.py files for auth, sites, and my apps are being i
Hello,
this is my first post, and first I must say thanks to the django
community for that piece!
I'm looking for implementing a similar system as commentPress :
http://www.futureofthebook.org/commentpress/ in django, but I can't
really find out how. CommentPress is a plugin for wordpress which
s
Hi,
Django is just Python, and documentation works the same way as in any
Python code.
Not sure what you're actually after but you might want to check this
excellent article by J. Bennett about documentation:
http://www.b-list.org/weblog/2008/jun/21/documentation/
On Jul 19, 1:52 am, Chris <[EMA
On Sun, Jul 20, 2008 at 12:01 PM, Jon Atkinson <[EMAIL PROTECTED]>
wrote:
> I've uploaded my complete project tree (it's fairly small, and I've
> included the sqlite database). The admin username and password is
> 'test'. It's available at:
>
> http://jonatkinson.co.uk/static/junk/myproj.zip
>
> F
On Sun, 20 Jul 2008 21:35:44 +0200, Bernd Donner <[EMAIL PROTECTED]>
wrote:
> In the old version of the admin site the fields of the UserProfile could
> be
> displayed "inline" on the corresponding User page of the admin site.
> This was
> done by somthing like:
>
> class UserProfile(models
Hello,
I'm following the tutorial from the official Django website and, on
the second part, when I try to access localhost:8000/admin, I get this
exception:
ImproperlyConfigured: Error while importing URLconf
'django.contrib.admin.urls': No module named urls
I'm using the latest version from the
On Jul 20, 6:36 pm, Bradley Wright <[EMAIL PROTECTED]> wrote:
> On Jul 20, 8:45 am, festersen <[EMAIL PROTECTED]> wrote:
>
> > > In a more upscaled version I
> > > could have 10 different article types, where all of them are slightly
> > > different.
>
> > maybe you want to read some notes about
The newforms-admin branch was merged into trunk 2 days ago and I think
there is still some cleanup going on in the tutorials :-) For details
on what you have to change to get trunk working for you again, take a
look at the BackwardsIncompatibleChanges-wikipage :-)
http://code.djangoproject.com/wi
On Sun, 2008-07-20 at 10:28 +0200, Andre Meyer wrote:
> hi all
>
> it does not seem to be possible to filter on the return value of a
> model's method, or is it?
No, it isn't. Filtering and sorting are converted to SQL statements and
there's no way to write an SQL statement in this fashion.
>
Hi There,
It has been possible in the past to use multiple databases with django.
There was a branch for it and about a year ago it was bought up to date with
trunk. However that branch hasn't seen any activity for some time and is
effectively dead. There's now a (low key) effort under way to come
As long as it works(which I have every reason to believe it does), yes
that looks like the best solution.
On Jul 20, 4:25 pm, Bernd Donner <[EMAIL PROTECTED]> wrote:
> Thanks for the link. Since UserAdmin is not directly under my control I came
> up with the following solution:
>
> from django.co
hi Malcolm
thanks a lot for your explanations. i am much more fluent with Python than
SQL, anyway ;-)
do you happen to have a good link for a merge-sort-style technique at hand?
btw: wrt. merging query sets, i tried this
ModelA.objects.filter(parent=None) | ModelB.objects.filter(item=None)
bu
On Sun, 2008-07-20 at 13:02 -0700, robin wrote:
> I've spend 3 days on this. Please help.
>
> I've created the following locale to my project below:
> /home/robin/myproject/locale/id/LC_MESSAGES/django.po
> /home/robin/myproject/locale/id/LC_MESSAGES/django.mo
>
> so I have a custom language wh
Thanks for the link. Since UserAdmin is not directly under my control I came
up with the following solution:
from django.contrib.auth.admin import UserAdmin
class UserProfile(models.Model):
...
user = models.ForeignKey(User, unique=True, core=True)
class UserProfileInline(admin.StackedInl
I've spend 3 days on this. Please help.
I've created the following locale to my project below:
/home/robin/myproject/locale/id/LC_MESSAGES/django.po
/home/robin/myproject/locale/id/LC_MESSAGES/django.mo
so I have a custom language which is suppose to be Indonesian
indentified as 'id'
Done djang
#admin.py
from django.contrib import admin
from profile.models import UserProfile
from django.contrib.auth.models import User
class ProfileInline(admin.StackedInline):
model = UserProfile
extra = 1
max_num = 1
class ProfileAdmin(admin.ModelAdmin):
inlines = (ProfileInline,)
admi
On Jul 20, 3:21 pm, John M <[EMAIL PROTECTED]> wrote:
> Given that the group has figured out that you need to run
> autodiscover() and register any models you want to show in NFA Admin
> page, I wanted to point out that the tutorial has the same bug,
> somewhere in Tutorial 2, it tells you to un-c
Given that the group has figured out that you need to run
autodiscover() and register any models you want to show in NFA Admin
page, I wanted to point out that the tutorial has the same bug,
somewhere in Tutorial 2, it tells you to un-comment the # for admin
access, which DOES NOT show anything in
Django provides security updates for the past 3 revisions, so this
would include .96 I believe. Otherwise django does not have a policy
of backporting non-security issues.
On Jul 20, 1:35 pm, leonel <[EMAIL PROTECTED]> wrote:
> Hello :
>
> After version 1.0 are there any plans to support 0.96
Hi,
I have currently the desire to use the logging support from the admin
app in my own app. This step is solved. But how does the app
accomplish the task to determine which fields have changed on the
given instance. Is there an easy way to achieve that in my own app?
Best regards,
Oliver
Hello :
After version 1.0 are there any plans to support 0.96 for some time
even a 2 month period ??
Thanks
Leonel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
On Sun, 2008-07-20 at 10:05 -0400, Cole Tuininga wrote:
> On Sat, Jul 19, 2008 at 11:50 PM, Julien Phalip <[EMAIL PROTECTED]> wrote:
> >
> > 'set' is a Python standard object [1], since version 2.4. In version
> > 2.3 you need to import the 'Set' package first.
> > So, if you care about backward
>> 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 has not done anything in the past year?
Heh, the USA has been
James Bennett wrote:
> 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
Hi
I'm installing it from SVN and got "You don't have permission to edit
anything", I made it work before, but now when I try to follow the
book can't. Could you tell me what should I add to have full
permissions?
Regards
On Jul 20, 7:43 am, "Jon Atkinson" <[EMAIL PROTECTED]> wrote:
> On Sun, Ju
> You can't really be using trunk 7951 -- that's from before newforms-admin
> merge which was 7967?? Try updating to latest trunk?
So I feel slightly ... foolish :-)
--Jon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
> Does that mean it works for you as well if you update to latest? I only
> knew nfa was not part of trunk at that point because I looked it up after
> trying reverting to 7951 to test your environment. I found the
> autodiscover() caused an exception because it didn't exist...so if you were
> r
On Sun, Jul 20, 2008 at 12:32 PM, Jon Atkinson <[EMAIL PROTECTED]>
wrote:
>
> > You can't really be using trunk 7951 -- that's from before newforms-admin
> > merge which was 7967?? Try updating to latest trunk?
>
> So I feel slightly ... foolish :-)
>
Does that mean it works for you as well if y
On Jul 20, 8:45 am, festersen <[EMAIL PROTECTED]> wrote:
> > In a more upscaled version I
> > could have 10 different article types, where all of them are slightly
> > different.
>
> maybe you want to read some notes about "inheritance"
The "inheritance" being referring to:
http://www.djangoproj
> It sounds like your admin.py file has already been imported by something
> else before the autodiscover() is called. Did you add an import of your
> app's admin into your models.py? That shouldn't be necessary. Also make sure
> you don't have an import for it in your __init__.py file; that was
On Sun, Jul 20, 2008 at 9:11 AM, eka <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I'm installing it from SVN and got "You don't have permission to edit
> anything", I made it work before, but now when I try to follow the
> book can't. Could you tell me what should I add to have full
> permissions?
>
I h
On Sun, Jul 20, 2008 at 11:05 AM, Jon Atkinson <[EMAIL PROTECTED]>
wrote:
> >> > I have no idea what is going on in cases where people have
> >> > admin.autodiscover() in their urls.py yet still get this "You don't
> have
> >> > permission to edit anything" message. I'd suggest you put a print
>
>> > > I'm installing it from SVN and got "You don't have permission to edit
>> > > anything", I made it work before, but now when I try to follow the
>> > > book can't. Could you tell me what should I add to have full
>> > > permissions?
>>
>> > I have no idea what is going on in cases where peop
On Sun, Jul 20, 2008 at 10:05 AM, Cole Tuininga <[EMAIL PROTECTED]>
wrote:
>
> On Sat, Jul 19, 2008 at 11:50 PM, Julien Phalip <[EMAIL PROTECTED]> wrote:
> >
> > 'set' is a Python standard object [1], since version 2.4. In version
> > 2.3 you need to import the 'Set' package first.
> > So, if you
admin.autodiscover() in the urls.py did the trick.
Thanks for the answers.
On Jul 20, 10:21 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Sun, Jul 20, 2008 at 9:11 AM, eka <[EMAIL PROTECTED]> wrote:
>
> > Hi
>
> > I'm installing it from SVN and got "You don't have permission to edit
> > any
'The' book -> Django book
On Jul 20, 11:07 am, eka <[EMAIL PROTECTED]> wrote:
> admin.autodiscover() in the urls.py did the trick.
>
> Thanks for the answers.
>
> On Jul 20, 10:21 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
>
> > On Sun, Jul 20, 2008 at 9:11 AM, eka <[EMAIL PROTECTED]> wrote:
>
On 19-Jul-08, at 10:34 PM, Ramdas S wrote:
> Can you just share the wiki page link please. I need some place to
> start
start with an svn co. keep running the prog till there are no errors.
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/code/
--~--~-~--~-
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
It sounds like you want to give each of the models it's own manager.
On Jul 20, 3:28 am, "Andre Meyer" <[EMAIL PROTECTED]> wrote:
> hi all
>
> it does not seem to be possible to filter on the return value of a model's
> method, or is it? are there alternative ways to achieve this?
>
> my situatio
On Sun, Jul 20, 2008 at 3:37 AM, SanPy <[EMAIL PROTECTED]> wrote:
> Is it possible to allow a non-staff member access to a custom
> AdminSite? When I try to login as a non-staff user, I get the error
> message: "Please enter a correct username and password. Note that both
> fields are case-sensiti
> Why there is no active development effort in Django framework?
> Last edition released at October 2007 (if I'm not wrong).
I'm not sure where you get the idea that there's no active
development...a quick check of the website
(www.djangoproject.com) shows a flurry of activity. There hasn't
b
Couldn't you just create a dummy file in /channel_a for part2.html,
and in /channel_b for part1.html, such that the dummy files do nothing
but include the content of the corresponding parent?
On Jul 17, 2008, at 8:04 AM, 3xM wrote:
>
>
>
> On Jul 17, 1:59 pm, Arien <[EMAIL PROTECTED]> wrote:
I got that illusion due the slow official releases cycle...
On Jul 20, 6:41 am, Tim Chase <[EMAIL PROTECTED]> wrote:
> > Why there is no active development effort in Django framework?
> > Last edition released at October 2007 (if I'm not wrong).
>
> I'm not sure where you get the idea that there'
> I am trying to find a more flexible way, where I can add
> custom fields (for example add a new text field or a check box). How
> ca I do this without modifyig the model?
If you want something that allows for unknown future additions of new
fields, I personally would consider using adding "prop
Uhm did you actually take a look at the timeline [1] before
writing this? Or considered searching the archive of this mailinglist?
[1] http://code.djangoproject.com/timeline
-- Horst
On Sun, Jul 20, 2008 at 1:14 PM, Hussein B <[EMAIL PROTECTED]> wrote:
> Hi.
> Why there is no active develop
[EMAIL PROTECTED] wrote:
> Dan wrote:
>>
>> Most ideally we would like to have it so that the application
>> uses DB1
>> (defined in the settings.py file) as the main database, but when
>> it's
>> down to users, uses DB2.user as the users table.
>> Currently we are thinking of us
On Jul 20, 7:14 pm, Hussein B <[EMAIL PROTECTED]> wrote:
> Hi.
> Why there is no active development effort in Django framework?
> Last edition released at October 2007 (if I'm not wrong).
There is actually a lot of active development going on - the version
numbering on the site isn't an accurate
Hi.
Why there is no active development effort in Django framework?
Last edition released at October 2007 (if I'm not wrong).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
On Sun, Jul 20, 2008 at 2:01 AM, stryderjzw <[EMAIL PROTECTED]> wrote:
>
> Strange, I'm getting the message "You don't have permission to edit
> anything." on the admin homepage. I've done admin.autodiscover() on
> the project urls page, I've created admin.py files for my models and
> registered t
On Jul 11, 3:30 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2008-07-10 at 04:32 -0700,AlonLevy wrote:
>
> [...]
>
> > So does anyone know of a simple way to get two different manager views
> > in admin?
>
> [...]
>
> solution is to create a subclass of both managers. If you want
> I am trying to find a more flexible way, where I can add
> custom fields (for example add a new text field or a check box). How
> ca I do this without modifyig the model?
>
I think, there's no more flexible way as modifying the model (and,
clearly, alter the database...)
> In a more upscaled v
Is it possible to allow a non-staff member access to a custom
AdminSite? When I try to login as a non-staff user, I get the error
message: "Please enter a correct username and password. Note that both
fields are case-sensitive."
Regards, Sander.
--~--~-~--~~~---~--~---
hi all
newforms-admin has been merged, so you can go back to trunk.
anyway, maybe you can do the same as i do: put a django.pth file in
site-packages which includes all the paths to the branches you want to use.
just uncomment the one you want to use at a given moment. you can add more
paths to t
hi all
i have a model with a modifed field
modified = models.DateTimeField(auto_now=True)
and a parent field
parent = models.ForeignKey('self', related_name='children', null=True,
blank=True)
in order to allow for creating a tree of items.
what is the best way to propagate a modification in a
hi all
it does not seem to be possible to filter on the return value of a model's
method, or is it? are there alternative ways to achieve this?
my situation is as follows: there is a model with several child models (via
model inheritance). i want to retrieve in a single query set all instances
(f
Just found this via google:
http://lexhair.wordpress.com/2007/08/29/rss-feeds-and-internet-explorer-6/
Apparently IE 6 and RSS are not friends...
On Jul 20, 3:23 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I'm trying to generate RSS feed for my site using Django's syndication
> framewo
74 matches
Mail list logo