Dear Ronny/all,
Thank you for your reply. I have modified my code and the error still
occur.
my new code as following below:
def my_view(request):
username = request.POST['username']
password = request.POST['password']
user = authenticate(username=username, password=password)#create
Au
On Sun, 2008-12-14 at 21:32 -0800, lee wrote:
[...]
> It seems that official docs hasn't give a reference to howto define
> 'ON DELETE CASCADE ON UPDATE CASCADE' in models,
> so, is there a bug in http://docs.djangoproject.com/en/dev/topics/db/models/
> ?
No, there isn't. We don't have documenta
I create following with MySQL & phpmyadmin :
CREATE TABLE `os_platform` (
`id` int NOT NULL auto_increment,
`op_name` varchar(64) NOT NULL,
PRIMARY KEY (`opid`)
)
CREATE TABLE `product` (
`id` int NOT NULL auto_increment,
`name` varchar(64) NOT NULL,
`os_platform_id` int NOT NULL,
A more complete explanation:
Ordering on the related table works fine as long as all the articles
have an associated ArticleRank (article_rank.rank, depending on how you
look at it).
> order_by = '-articlerank__rank'
> art_list = Article.objects.filter(\
> title__icontains=ter
On Sun, 2008-12-14 at 21:02 -0800, Info Cascade wrote:
> Malcolm,
>
> Thanks for pointing that out! That set me on the right course, and I
> was able to get things working with _ArticleRank_ this time.
> I have a follow-up, though. Not every article has been assigned a
> rank. When a search in
Malcolm,
Thanks for pointing that out! That set me on the right course, and I
was able to get things working with _ArticleRank_ this time.
I have a follow-up, though. Not every article has been assigned a rank.
When a search includes an article without a rank I get an error.
I can just trap the
(You forgot to include a title. I nearly nuked this as spam, by
accident. So I've thrown in a title for fun.)
On Sun, 2008-12-14 at 19:50 -0800, Info Cascade wrote:
> Hi --
>
> I have a question about many-to-many relationships and how to reference
> a related object field using Django syntax vi
Hi --
I have a question about many-to-many relationships and how to reference
a related object field using Django syntax via the Manager class.
I think this is probably pretty simple and just reflects my inexperience
working with Django (which overall I am enjoying, btw.)
Anyway, the models look
On Dec 14, 5:29 pm, Jim wrote:
> Thanks for the good info. Let me explain why I would want to develop
> my own web server... I've got a real time, asynchronous server that
> uses a proprietary binary protocol to monitor remote systems using a
> push model, and I'd like to expose the incoming d
Hi all, this is just a brief announcement regarding the resurrection
of the Python User Group in Calgary, Alberta, Canada.
Our first meeting will be on Wednesday, January 14, 2009.
Our official web site (albeit requiring a lot of work):
http://www.pythoncalgary.com/
We have a mailing list set u
Hello,
Are there any comments on the issue I describe below?
Aside from issue 7052 in the tracker:
http://code.djangoproject.com/ticket/7052
I'm a new user of Django so I may be doing something
wrong.
I hope line wrapping doesn't ruin any code...
Thanks
Mark
Using Content Types With Te
Thank you so much, and yes, i'm not a python developer. I recently
joined to the group.
Thanks again for your reply, now i understand a bit more about the framework.
cesar.
On Sun, Dec 14, 2008 at 7:37 PM, bruno desthuilliers
wrote:
>
> On 14 déc, 17:58, "JULIO Cayo" wrote:
>> Thanks Alex for
I set this to true in my settings file but It doesn't seem to be
getting picked up.
Does this still have issues with some middleware or am I seeing some
kind of settings reload or cache issue?
--~--~-~--~~~---~--~~
You received this message because you are subscrib
On Sun, 2008-12-14 at 15:43 -0800, sajal wrote:
> when using Multi-table inheritance, how do i know what type is the
> child?
Add a child_type field explicitly to the parent model and set it during
the save() method. That will save on database queries. You could also
just try to access the child
when using Multi-table inheritance, how do i know what type is the
child?
My models :-
class Node(models.Model):
title = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published',
default=datetime.datetime.today())
isfp = models.BooleanField("Show on Frontpage
I just wrote a small bit of middleware to allow Facebook users to log
into my Django site with Facebook Connect.
If you're looking to do something similar, check out my post:
http://nyquistrate.com/django/facebook-connect/
--~--~-~--~~~---~--~~
You received this me
On 14 déc, 22:49, bruno desthuilliers
wrote:
(snip)
> Else, you can always monkeypatch the User model. You may then want to
> use the descriptor protocol (http://docs.python.org/reference/
> datamodel.html#descriptors)
More here on descriptors:
http://users.rcn.com/python/download/Descriptor.htm
On 14 déc, 15:26, Yanik wrote:
> Hello,
>
> I need to build a custom ACL for the app I'm working on, Django's
> isn't specific enough (I need to give permissions based on IDs,
> statuses, etc.).
>
> I'd also like to attach it to the user, so that I could lookup in a
> way something like User.acl.
On 14 déc, 19:03, "Alfredo Alessandrini" wrote:
> > Sorry but your question is not clear. Are 'min_rating' and
> > 'max_rating' fields of the game object ? If yes:
>
> Yes
>
> It's better:
>
> game_list = game.objects.filter(Q(max_rating__gt = player.rating) &
> Q(min_rating__lt = player.rating))
On 14 déc, 17:58, "JULIO Cayo" wrote:
> Thanks Alex for your fast reply! Maybe I don't understand you, but if
> i have a model (70 classes) in "base python" i don't want to re-write
> entire model in django style.
You don't have use Django's models.Model class to use Django. But
obviously you ne
On 14 déc, 18:06, "Haroon idrees" wrote:
> after follow the documentation i face the following error
> File "C:\Program
> Files\Google\google_appengine\lib\django\django\template\__init__.py",
> line 273, in parse
> compiled_result = compile_func(self, token)
> File "C:\Program
> Files\Goo
Thanks, but this is to manipulate Posix ACL (user ACL on the actual
OS).
On Dec 14, 2:06 pm, "Ramdas S" wrote:
> http://pylibacl.sourceforge.net/
>
> check this
>
> Might help
>
>
>
> On Sun, Dec 14, 2008 at 7:56 PM, Yanik wrote:
>
> > Hello,
>
> > I need to build a custom ACL for the app I'm w
Is sqlite3 part of yoru windows path?
Otherwise you can run sqlite3 with the path to your db... e.g.
sqlite3 c:\Users\Benjamin\Desktop\mysite\data\website.sqlite
or wherever your sqlite db is stored.
On Dec 14, 5:10 am, ben852 wrote:
> C:\Users\Benjamin\Desktop\mysite\sqlite3
> SQLite3 versio
http://pylibacl.sourceforge.net/
check this
Might help
On Sun, Dec 14, 2008 at 7:56 PM, Yanik wrote:
>
> Hello,
>
> I need to build a custom ACL for the app I'm working on, Django's
> isn't specific enough (I need to give permissions based on IDs,
> statuses, etc.).
>
> I'd also like to attach
> Sorry but your question is not clear. Are 'min_rating' and
> 'max_rating' fields of the game object ? If yes:
Yes
It's better:
game_list = game.objects.filter(Q(max_rating__gt = player.rating) &
Q(min_rating__lt = player.rating))
or
game_list =
game.objects.exclude(min_rating__gt=player.ra
after follow the documentation i face the following error
File "C:\Program
Files\Google\google_appengine\lib\django\django\template\__init__.py",
line 273, in parse
compiled_result = compile_func(self, token)
File "C:\Program
Files\Google\google_appengine\lib\django\django\template\defaultt
On 14 déc, 00:46, "Alfredo Alessandrini" wrote:
> Hi,
>
> It's possible call a query with max or min value?:
>
> like this:
>
> game_list = game.objects.filter(Q(max_rating > player.rating) &
> Q(min_rating < player.rating))
Sorry but your question is not clear. Are 'min_rating' and
'max_rating'
On 14 déc, 10:53, "Haroon idrees" wrote:
> I try cycle tage but it also give some error can please tell me what
> is write Syntax of cycle tag
It's in the documentation. Just follow the link I gave in my previous
post.
--~--~-~--~~~---~--~~
You received this me
Thanks Alex for your fast reply! Maybe I don't understand you, but if
i have a model (70 classes) in "base python" i don't want to re-write
entire model in django style.
For example, I have a class "User" with age, name, lastname , etc...
In my model is:
class User:
name = " "
And django need s
Not necessary manually, 'cause you can use "reset App"
On Dec 14, 12:13 am, "Huseyin Berberoglu"
wrote:
> On Sat, Dec 13, 2008 at 11:08 PM, volk23 wrote:
>
> > i've made a modification in a App i created. run syncdb, it dont show
> > changes made. what could be wrong? thanks in advance
>
> You
> On Sun, 2008-12-14 at 00:46 +0100, Alfredo Alessandrini wrote:
>> Hi,
>>
>> It's possible call a query with max or min value?:
>>
>> like this:
>>
>> game_list = game.objects.filter(Q(max_rating > player.rating) &
>> Q(min_rating < player.rating))
>
> Not yet. Search the archives of this list fo
You don't need to define it else where.Just write a django model once and
use it any where in you project.
On Sun, Dec 14, 2008 at 18:40, JULIO Cayo wrote:
>
> Hi, I want to start with django framework. I've never used it. ( I'm
> sorry, I'm learning english)
>
> My question is: I have an appli
Hi, I want to start with django framework. I've never used it. ( I'm
sorry, I'm learning english)
My question is: I have an application in python based on the pattern
mvc, so I want to take the model (the classes) of the application and
"plug" into a django proyect. I read in the tutorials and
do
Hello,
I need to build a custom ACL for the app I'm working on, Django's
isn't specific enough (I need to give permissions based on IDs,
statuses, etc.).
I'd also like to attach it to the user, so that I could lookup in a
way something like User.acl.has_permission(post_id, "can_edit). How
can I
Thank you, Karen.
On Fri, Dec 12, 2008 at 7:42 PM, Karen Tracey wrote:
> On Fri, Dec 12, 2008 at 4:32 AM, Kottiyath Nair wrote:
>
>> oops!! Unknowingly send the mail before finishing it.
>>
>> As I was mentioning in the earlier mail:
>> What I want is:
>>dbmodel.objects.filter(__first_filte
http://docs.djangoproject.com/en/dev/ref/models/querysets/#exclude-kwargs
On Sun, Dec 14, 2008 at 16:03, Alfredo Alessandrini wrote:
>
> Hi,
>
> can I remove an objects from the queryset:
>
> In [138]: from CHALLENGE.models import start_game
>
> In [139]: start_game.objects.all()
> Out[139]: [, ,
C:\Users\Benjamin\Desktop\mysite\sqlite3
SQLite3 version 3.6.6.2
Enter".help" for instructions...
C:\Users\Benjamin\Desktop\mysite\python manage.py dbshell
Error: You appear not to have the 'sqlite3'program installed or on
your path
I have the latest version of django (SVNsubversion) and I t
Hi,
can I remove an objects from the queryset:
In [138]: from CHALLENGE.models import start_game
In [139]: start_game.objects.all()
Out[139]: [, , ]
In [140]: games = start_game.objects.all()
In [142]: games
Out[142]: [, , ]
can I delete the objects with id = 27, for obtain this:
In [142]:
Daniel, you're a hero.
I thought I'd tried it before and it hadn't worked, but I'd probably
messed something else up in the process.
It's working perfectly, thanks. Just got to sort out the /media/ issue
now, but I'm fairly confident I can do that on my own! :D
Thanks again, and it'd be great to
I try cycle tage but it also give some error can please tell me what
is write Syntax of cycle tag
On Fri, Dec 12, 2008 at 4:36 AM, bruno desthuilliers
wrote:
>
> On 12 déc, 11:57, Daniel Roseman
> wrote:
>> On Dec 12, 7:04 am, "Haroon idrees" wrote:
>>
>>
>>
>> > Hello
>> > I am new to p
On Dec 14, 5:19 am, Marc DM wrote:
> If you want to edit them together in the admin then do this for your
> admin class
>
> #
> class BookInline(admin.TabularInline)
> model = Book
> extra = 2
>
> class AuthorOptions(admin.ModelAdmin)
> inlines = [B
On Dec 13, 6:28 pm, Malcolm Tredinnick
wrote:
> On Sat, 2008-12-13 at 18:13 -0800, ptone wrote:
>
> [...]
>
> > So was modifying tutorial to use the app_directories loader
>
> > Had to take out the 'polls/' subdir part of the template path - that
> > made sense.
>
> No, you didn't have to do th
42 matches
Mail list logo