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 receive
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 -0700
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 us
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 says,
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 a
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 the user generates th
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 djang
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 bec
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 set
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:
> > > Just one question - why would django avoid an offli
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 c
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 activiti
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 I
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 everythin
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 the
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
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 =
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
>> on windows, This is how I encounter the probl
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
> > declaimed the following in
> > gmane.com
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 which
>> both has a search_indexes.py and a model
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. than
@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 seriously
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 right direction or know the an
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, but "pycharm loves django" soun
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 lasts for a period of ti
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 really willing to
>> give a try for this. i am using
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 passwords
> >> (passwords that cannot be hac
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
> wrote:
> > It's not free
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.
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, Bil
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 be
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
wrote:
> Yea, PyCharm is the stuff.
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)
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)
#
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 sta
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 t
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 w
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):
> user = models.Foreign
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 t
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 us
> 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 s
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'
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 = self.cleaned_dat
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 runn
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 :
>> On second method so
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
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 the
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.
>
> def clean_title(self):
>
>
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 problems
>>> (caused by a combination of haystack, filebrowser,
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 "game_type" is a check b
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 __init__(self, mailboxes, *arg
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
"Djan
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
> >
Good point. You can display the value but again.. you need to make sure
it's a proper (not changed via post) value (clean() / save())
W dniu środa, 30 maja 2012 22:25:35 UTC+2 użytkownik Alexandr Aibulatov
napisał:
>
> For example on second method i can change post, board id's via html,
> and w
54 matches
Mail list logo