On Wed, 2012-05-30 at 12:01 -0400, Dennis Lee Bieber wrote:
> > other activities. The supervisor goes to the villages with netbooks.
> If
> > there is connectivity, he enters the data directly to the server on
> the
> > internet. If not, he has a local copy of the site running on his
> netbook
> >
On Thu, 2012-05-31 at 00:13 +1000, Mario Gudelj wrote:
> It's not free but they have a 30 day trial period
if you have an active open source project they will give you a free
license
--
regards
Kenneth Gonsalves
--
You received this message because you are subscribed to the Google Groups
Daniel has point out the issue, but have a look at this speech from Django
Con last year http://blip.tv/djangocon/advanced-django-form-usage-5573287.
It has some great stuff in there.
-m
On 31 May 2012 06:14, Daniel Roseman wrote:
> So, compare this:
>
>
> def
Thanks, but not main problems.
Even if I remove "maybe" items,
same incorrect outputs.
Dennis Lee Bieber於 2012年5月31日星期四UTC+8上午12時09分44秒寫道:
>
> On Wed, 30 May 2012 02:24:53 -0700 (PDT), yillkid
> declaimed the following in gmane.comp.python.django.user:
>
> >
> > Filed
On Wed, May 30, 2012 at 9:59 PM, Bill Freeman wrote:
> On Tue, May 29, 2012 at 7:35 PM, Russell Keith-Magee
> wrote:
>> On Wed, May 30, 2012 at 4:42 AM, Bill Freeman wrote:
>>> I continue to struggle with occasional circular import
Thanks Kurtis!
That is helpful.
-Patrick
On May 30, 1:14 pm, Kurtis Mullins wrote:
> I just checked on my own code that does something in a different
> context but kinda performs the same check. I thought I'd share it with
> you in case it helps out at all.
>
>
Yes, it is possible:
obj = form.save(commit=False)
obj.in_calender-id = kalender
obj.save()
On Wed, May 30, 2012 at 2:56 PM, Schmidtchen Schleicher <
spiolli...@googlemail.com> wrote:
> Is it possible to put missing data into the data of a form before calling
> form.save() ?
> I want to add
Is it possible to put missing data into the data of a form before calling
form.save() ?
I want to add the calendar-id (calid/in_calendar) before saving to the
model.
http://susepaste.org/23451355
I tried adding it after instantiating the form with form.in_calendar_id =
kalender but it didn't
For example on second method i can change post, board id's via html,
and write to board where i can be banned.
I think we shoudn't override standart methods if we con don't override
them(this about third method)
P.S. sorry for my terrible english.
2012/5/31 Kurtis Mullins
Back to the original question,
Did you try running "python manage.py runserver" from the command
prompt? As far as changing those icons back to Python, I believe you
have to change your 'Default Program'. I'm not sure which version of
Widnows you're using (or even how to do it in Windows, I'm
I just checked on my own code that does something in a different
context but kinda performs the same check. I thought I'd share it with
you in case it helps out at all.
def clean_title(self):
# Grab the data to verify this Title is unique to this user.
title =
So, compare this:
def __init__(self, mailboxes, *args, **kwargs):
>
with how you're calling it:
> form = MboxReg(request.POST, int(mailboxes))
>
>
and you should see why you're getting this:
> Error:
> Exception Value:
>
> int() argument must be a string or a number, not 'QueryDict'
> On second method some experience users can
> override hidden data
For the second method, you'd just use -- class Meta: fields =
('board', 'post', 'name') to prohbit anyone from trying to override
the 'user', if that's what you're talking about.
> And it's a bad idea to
> override __init__ and
Sorry, I completely mis-read the last part of your problem. You
already thought about the same solution, haha. You might be able to
modify the Player model's clean (or save) method to prohibit any Team
from having more than one team captain. However, I'd probably just
check it in the Form you're
Unless a player can play for multiple teams (which I'm doubting since
Team is a ForeignKey for a Player), why not remove that 'captain'
attribute from your Team and put it into your Player model as a
boolean field? You could create a ModelManager or class-level model
method to grab the associated
I think that the first method is the most usefull. On second method
some experience users can override hidden data. And it's a bad idea to
override __init__ and save method in my humble opinion/
2012/5/31 RM :
> Say there's a model:
>
> class Notification(models.Model):
>
I tend to put as much functionality in my forms as possible. I've
asked a similar question before (many months ago) and I believe that
was the consensus. One advantage is you can re-use your forms (and its
save functionality) for your Create and Update views.
On Wed, May 30, 2012 at 3:45 PM, RM
Say there's a model:
class Notification(models.Model):
user = models.ForeignKey(User)
board = models.ForeignKey(Board)
post = models.ForeignKey(Post)
name = models.CharField()
class Meta:
unique_together = ('user', 'name', 'post', 'board')
#i know
I'm new to django and AJAX-level web development, so pardon my non-orthodox
lingo :)
Any ideas what I might be doing wrong if the AJAX form for rating in
agon_ratings added per instructions (
http://agon-ratings.readthedocs.org/en/latest/usage.html) doesn't seem to
really do much? I get the
Hi,
Trying a form with dynamic fields, but having no luck. Also not finding any
working examples out there :/
This is what I'm currently trying to use:
class MboxReg(forms.Form):
def __init__(self, mailboxes, *args, **kwargs):
super(MboxReg, self).__init__(*args, **kwargs)
#
Hi-
I'm new to Django, but so far I think it is the bee's knees.
I could use some insight into a problem I'm working on.
Given the following...
-
# models.py
from django.db import models
class Team(models.Model):
name = models.CharField(max_length=30)
Personally, I'd rather have clicking on a python file open it in my
favorite editor.
If I really wanted click to run for a Django project on Windows, I'd
create a .bat
file (or whatever the modern equivalent is).
On Wed, May 30, 2012 at 11:32 AM, Timothy Makobu
On 12-05-30 7:04 AM, doniyor wrote:
what do you mean? should i do better chmod 755 which is more secure
than 777?
You can do whatever you want. But the advice from the list is to figure
out what account is actually accessing the database and keep the
permissions on the DB the way they should
Yea, PyCharm is the stuff.
Also have python open python files; the easy way:
Right click any pyton file->Left Click->Open
With->Browse->c:\pythonX\bin\python.exe, for example->make sure you tick
"always use the selected program to open this kind of file"->Ok
On Wed, May 30, 2012 at 5:33 PM,
As someone who has burned in some of the more obscure emacs commands,
I find that I'm seldom satisfied with what a vendor calls emacs
bindings (eclipse comes to mind - I wind up setting my source code
files to be edited externally), but its usually still more comfortable
than the native bindings.
i dont know, but that would be awesome, do you know if aptana has it? i
never thought of key binding til now in aptana.
Am Mittwoch, 30. Mai 2012 16:19:15 UTC+2 schrieb ke1g:
> Does it do emacs key bindings ;^)
>
> On Wed, May 30, 2012 at 10:13 AM, Mario Gudelj
>
thanx
On Wed, May 30, 2012 at 5:16 PM, Bill Freeman wrote:
> On Wed, May 30, 2012 at 8:17 AM, Jani Tiainen wrote:
> > 30.5.2012 9:03, Emily Namugaanyi kirjoitti:
> >
> >> Hi Django users,
> >>
> >> I am working on a project that as to generate secure
Does it do emacs key bindings ;^)
On Wed, May 30, 2012 at 10:13 AM, Mario Gudelj wrote:
> It's not free but they have a 30 day trial period
>
>
> On 31 May 2012 00:09, doniyor wrote:
>>
>> @somecallitblues: pycharm is not free, right? but i am
On Wed, May 30, 2012 at 8:17 AM, Jani Tiainen wrote:
> 30.5.2012 9:03, Emily Namugaanyi kirjoitti:
>
>> Hi Django users,
>>
>> I am working on a project that as to generate secure passwords
>> (passwords that cannot be hacked) every time a user register and the
>> password
It's not free but they have a 30 day trial period
On 31 May 2012 00:09, doniyor wrote:
> @somecallitblues: pycharm is not free, right? but i am really willing to
> give a try for this. i am using for years Aptana studio which is completely
> fullfulling my wishes,
Hi Ross,
On Wed, May 30, 2012 at 3:59 AM, Ross C wrote:
> I have a minor question and looking through the source (although maybe i
> missed it) I cant seem to see how to change the HttpResponse content_type of
> a Generic class based view.
>
> Anyone point me in the
@somecallitblues: pycharm is not free, right? but i am really willing to
give a try for this. i am using for years Aptana studio which is completely
fullfulling my wishes, but "pycharm loves django" sounds great!
Am Mittwoch, 30. Mai 2012 15:59:13 UTC+2 schrieb somecallitblues:
> You
what do you mean? should i do better chmod 755 which is more secure than
777?
Am Mittwoch, 30. Mai 2012 14:29:14 UTC+2 schrieb Thomas:
> On 5/30/12 1:11 AM, doniyor wrote:
>
> hey man, problem solved. i did *chown www-data. . *then *chmod 777
> dbfile *now everything is working fine.
On Tue, May 29, 2012 at 7:35 PM, Russell Keith-Magee
wrote:
> On Wed, May 30, 2012 at 4:42 AM, Bill Freeman wrote:
>> I continue to struggle with occasional circular import problems
>> (caused by a combination of haystack, filebrowser, and a model
You seriously have to give PyCharm a go. It's everything IDE should be and
loves django.
On 30 May 2012 23:40, Bill Freeman wrote:
> On Mon, May 28, 2012 at 12:25 PM, Dennis Lee Bieber
> wrote:
> > On Mon, 28 May 2012 05:37:43 -0700 (PDT), coded kid
>
On Mon, May 28, 2012 at 12:25 PM, Dennis Lee Bieber
wrote:
> On Mon, 28 May 2012 05:37:43 -0700 (PDT), coded kid
> declaimed the following in
> gmane.comp.python.django.user:
>
>> I'm in a big mess now, I've lost my projects due to this errror. I'm
Indeed, I'm using optional (and nullable) ForeignKeys in other places as well.
The problem with an optional ForeignKey to Django's contrib sites.Site model,
is that it breaks the "View on site" button in the admin section.
near line 60 in /django/contrib/contenttypes/views.py:
object_domain
Actually, you can have a nullable ForeignKey (and there can be good
reasons for this). This is mentioned in the docs themselves; see:
https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.on_delete
I am not sure about the error that the OP is encountering.
On May
Hi,
I want to use a form wizard to modify instead of create an instance in
the DDBB. I don't know exactly how I can do it because in the URL there
is the information of the instance to modify and the step in the form,
so I don't know how I can mix everything.
I am using django-merlin for
On 5/30/12 1:11 AM, doniyor wrote:
hey man, problem solved. i did *chown www-data. . *then *chmod 777
dbfile *now everything is working fine. thank you so much for your
time and help.
I've lost track of the early parts of this thread, but chmod 777 on a
database rarely indicates that
30.5.2012 9:03, Emily Namugaanyi kirjoitti:
Hi Django users,
I am working on a project that as to generate secure passwords
(passwords that cannot be hacked) every time a user register and the
password lasts for a period of time. S,here I am wondering whether
django has a provision for this or
On Wed, 2012-05-30 at 13:58 +0800, 马龙 wrote:
> can you explain your question more clearly ? Djanjo is a *FULL STACK*
> web
> dev framework
is this addressed to me or to the OP? If it is to me, as an example, I
have a django site that monitors and reports on various construction and
other
Hi there,
Firstly I would like to say how awesome Django is and as a long time user I
am stoked at the 1.4 changes and coming 1.5 :)
I have a minor question and looking through the source (although maybe i
missed it) I cant seem to see how to change the HttpResponse content_type
of a Generic
can you explain your question more clearly ? Djanjo is a *FULL STACK* web
dev framework
2012/5/30 kenneth gonsalves
> On Tue, 2012-05-29 at 09:05 -0500, Javier Guerra Giraldez wrote:
> > On Tue, May 29, 2012 at 7:33 AM, KevinE
> > wrote:
>
As the subject suggests, wanted to discuss, acquire and share some
knowledge on scaling django installation.
Firstly, my current project is a product Reviews platform, and I wanted to
benchmark or load test the current deployment.
Currently the deployment/installation stands on a single server
On Wed, 2012-05-30 at 01:11 -0700, doniyor wrote:
> hey man, problem solved. i did *chown www-data. . *then *chmod 777
> dbfile *now
> everything is working fine. thank you so much for your time and help.
>
> r u from europe?
no
--
regards
Kenneth Gonsalves
--
You received this message
Hi all.
I want to create a checkbox in my user register page, all of my code as
below:
from django.utils.translation import ugettext as _
import sys
import datetime
reload(sys)
sys.setdefaultencoding('utf8')
from django.db import models
from django.contrib.auth.admin import UserAdmin
from
Like QR codes but those that can expire...
Emily
On Wed, May 30, 2012 at 11:18 AM, Emily wrote:
> I want to sell passwords to users. If I can generate passwords
> for them that can last for a specific period of time (the time they
> have paid for) this would be good.
>
> If
I want to sell passwords to users. If I can generate passwords
for them that can last for a specific period of time (the time they
have paid for) this would be good.
If the user generates there own I cannot restrict them from viewing
certain content don't want them to view...
My problem is that
hey man, problem solved. i did *chown www-data. . *then *chmod 777 dbfile *now
everything is working fine. thank you so much for your time and help.
r u from europe?
Am Mittwoch, 30. Mai 2012 09:49:33 UTC+2 schrieb lawgon:
>
> On Wed, 2012-05-30 at 00:37 -0700, doniyor wrote:
> > it
On Wed, 2012-05-30 at 00:37 -0700, doniyor wrote:
> it says, invalid group www-data. but look, i am logged in as root
> with
> 'su'. and i am doing all the commands here. is it correct, or should i
> be a
> normal user? this doesnot make big difference right?
in that case there is no need to
it says, invalid group www-data. but look, i am logged in as root with
'su'. and i am doing all the commands here. is it correct, or should i be a
normal user? this doesnot make big difference right?
Am Mittwoch, 30. Mai 2012 09:00:49 UTC+2 schrieb lawgon:
>
> On Tue, 2012-05-29 at 23:29
On Tue, 2012-05-29 at 23:29 -0700, doniyor wrote:
> okay, now it said nothing, the command went well. but the page is
> still
> showing me error: unable to open database file.
you need to chown -R
www-data:www-data /directory_in_which_the_dbfile_is/
--
regards
Kenneth Gonsalves
--
You
Hi,
Are you trying to create passwords on behalf of users? This is usually a bad
idea.
If I got your message wrong and you talk about secure password hashes, is
there something specific you did not like about the current Django auth system?
Or maybe you are interested in password
okay, now it said nothing, the command went well. but the page is still
showing me error: unable to open database file.
Am Mittwoch, 30. Mai 2012 08:24:31 UTC+2 schrieb doniyor:
>
> if i do 'sudo chown www-data dbfile' it says, the access is not permitted
> to db file..
>
> Am Mittwoch, 30.
if i do 'sudo chown www-data dbfile' it says, the access is not permitted
to db file..
Am Mittwoch, 30. Mai 2012 08:17:37 UTC+2 schrieb lawgon:
>
> On Tue, 2012-05-29 at 23:06 -0700, doniyor wrote:
> > now i did 'sudo chgrp www-data . dbfile' but it says: invalid group
> > www-data. do i
On Tue, 2012-05-29 at 23:06 -0700, doniyor wrote:
> now i did 'sudo chgrp www-data . dbfile' but it says: invalid group
> www-data. do i have to create it first?
www-data is a user, not a group
--
regards
Kenneth Gonsalves
--
You received this message because you are subscribed to the Google
now i did 'sudo chgrp www-data . dbfile' but it says: invalid group
www-data. do i have to create it first?
Am Mittwoch, 30. Mai 2012 07:58:41 UTC+2 schrieb lawgon:
>
> On Tue, 2012-05-29 at 22:45 -0700, doniyor wrote:
> > my browser isnot openning irc url, i dont know why.
> >
> > thing is,
Anssi,
Thanks for your trouble, you were right, the problem was in my other code.
Regards,
P
Are you sure the leak is not in process_messages?
>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Hi Django users,
I am working on a project that as to generate secure passwords
(passwords that cannot be hacked) every time a user register and the
password lasts for a period of time. S,here I am wondering whether
django has a provision for this or I need to find another way...
Thank you for
60 matches
Mail list logo