Re: Timer for online examination

2015-11-17 Thread Jani Tiainen
Hello, As I said, on client side doing timer requires javascript usage. But it doesn't remove need to actually make sure that no-one can manipulate duration of exam. It's really trivial to have piece of javascript that would render plain javascript timer useless (like you could fill out form

django seems does not support mysql 5.7.9

2015-11-17 Thread Pengfei Xue
yesterday, i upgraded my local mysql server to 5.7.9 (mysql Ver 14.14 Distrib 5.7.9, for osx10.11 (x86_64) using EditLine wrapper), and found i can not make my app run anymore, find this error, is there some one else get this error before? MySQL-python==1.2.5 Django==1.8.6 File "/Users/pen

[Django 1.8.5] models bug when migrate.

2015-11-17 Thread Dennis Liou
Hi : I am new in Django, and I meet a bug. My Django environment is : Django 1.8.5 with python 2.7.10 I was upgrade my django from 1.5 to 1.8 This is my auth models: Class Card(models.Model): cardgroup = models.CharField(_('CardGroup'), max_length=60) cardname

[Django1.8.5] About migrate

2015-11-17 Thread Dennis Liou
Hi : I am new in Django, and I meet a bug. I was upgrade django from 1.5 to 1.8. My Django environment now is : Django 1.8.5 with python 2.7.10 This is my auth models: Class Card(models.Model): cardgroup = models.CharField(_('CardGroup'), max_length=60) cardnam

Re: Timer for online examination

2015-11-17 Thread Robin Lery
Yes, that's true. On Tue, Nov 17, 2015 at 4:52 PM, Jani Tiainen wrote: > Hello, > > As I said, on client side doing timer requires javascript usage. But it > doesn't remove need to actually make sure that no-one can manipulate > duration of exam. > > It's really trivial to have piece of javascri

Re: django seems does not support mysql 5.7.9

2015-11-17 Thread 'Tom Evans' via Django users
On Tue, Nov 17, 2015 at 11:44 AM, Pengfei Xue wrote: > yesterday, i upgraded my local mysql server to 5.7.9 (mysql Ver 14.14 > Distrib 5.7.9, for osx10.11 (x86_64) using EditLine wrapper), and > found i can not make my app run anymore, find this error, is there some one > else get this error bef

Re: Timer for online examination

2015-11-17 Thread bobhaugen
On Tuesday, November 17, 2015 at 12:29:02 AM UTC-6, Arindam sarkar wrote: > > I am developing an online examination website. And having difficulty > implementing the timer . > Any one have done it or something related to countdown timer in django ? > > Here is an example of what everybody is telli

Re: django seems does not support mysql 5.7.9

2015-11-17 Thread Pengfei Xue
thanks, i reinstall mysql-python, it's working now, very frustrating. On Tuesday, November 17, 2015 at 9:27:03 PM UTC+8, Tom Evans wrote: > > On Tue, Nov 17, 2015 at 11:44 AM, Pengfei Xue > wrote: > > yesterday, i upgraded my local mysql server to 5.7.9 (mysql Ver 14.14 > > Distrib 5.7.9, fo

Re: django seems does not support mysql 5.7.9

2015-11-17 Thread Pengfei Xue
thanks, i reinstall mysql-python, it's working now, very frustrating. On Tuesday, November 17, 2015 at 9:27:03 PM UTC+8, Tom Evans wrote: > > On Tue, Nov 17, 2015 at 11:44 AM, Pengfei Xue > wrote: > > yesterday, i upgraded my local mysql server to 5.7.9 (mysql Ver 14.14 > > Distrib 5.7.9, fo

Re: [Django1.8.5] About migrate

2015-11-17 Thread aRkadeFR
Hey, What is the code of your managers and what's the full stacktrace? You can use dpaste.de as a pastebin :) For the related field, iirc, it's recommended to reference them with a string. try to change this cards = models.ManyToManyField(Card, blank=True) by: cards = models.ManyToManyFie

Re: Domain Driven Development

2015-11-17 Thread Tom Christie
Hi Alex, I've written previously about encapsulation and Django models , and I think that's kinda relevant here. If you apply the policy "never write to a model or call .save() directly" then yes, you can ensure that the only access

Getting NoReverseMatch and can't find the mistake

2015-11-17 Thread Bob Aalsma
Sorry, can't seem to find what's wrong here, please help: what am I missing??? I'm seeing NoReverseMatch at /zoekopdrachten/4/resultaat/ Reverse for 'resultaat' with arguments '('',)' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'zoekopdrachten/(?P[0-9]+)/resultaat/$'] Request

Re: How do I let forms.models.ModelChoiceField.queryset relate on request.user?

2015-11-17 Thread Axel Rau
Instead off writing an __init__ for the form class, I ended up with this get_form() in my view class: def get_form(self, form_class=None): form = self.get_form_class() pk = self.request.user.pk self.object = Account.objects.get(pk=pk) form_instance = form(insta

Re: [Django1.8.5] About migrate

2015-11-17 Thread Dennis Liou
Thanks, it works , I still need to debug another. I use cards = models.ManyToManyField('Card') Thanks for help. Dennis Liou於 2015年11月17日星期二 UTC+8下午8時02分56秒寫道: > > Hi : > > I am new in Django, and I meet a bug. > > I was upgrade django from 1.5 to 1.8. > > My Django environmen

Re: [Django1.8.5] About migrate

2015-11-17 Thread Dennis Liou
Although it can syncdb, but I cannot reference ant thing... Dennis Liou於 2015年11月17日星期二 UTC+8下午8時02分56秒寫道: > > Hi : > > I am new in Django, and I meet a bug. > > I was upgrade django from 1.5 to 1.8. > > My Django environment now is : Django 1.8.5 with python 2.7.10 > >This is