Re: mathematical function and django connect

2016-02-21 Thread Xristos Xristoou
i find it,just add return render_to_response('blog/calc.html', {'a' :a},context_instance=RequestContext(request)) and dont show me that error,but not work again now if i touch calc button just reload dont show me error dont show me results only clear numbers why ? {% csrf_token %} Number of

Re: mathematical function and django connect

2016-02-21 Thread Luis Zárate
use render instead of render_to_response from django.shortcuts import render return render(request, 'blog/calc.html', { 'a' :a, }) 2016-02-21 22:57 GMT-06:00 Xristos Xristoou : > UserWarning: A {% csrf_token %} was used in a template, but the context > did

Re: mathematical function and django connect

2016-02-21 Thread Xristos Xristoou
UserWarning: A {% csrf_token %} was used in a template, but the context did not provide the value. This is usually caused by not using RequestContext. Τη Τρίτη, 9 Φεβρουαρίου 2016 - 9:47:30 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: > > hello, > > > i create some python mathematical

Re: no module named ...

2016-02-21 Thread James Schneider
> ImportError: No module named ' tma' > You will note > File "C:\Users\bgailer\mysite\mysite\urls.py", line 22, in > url(r'^ tma/', include(' tma.urls')), > in the traceback. > > How do I fix this? You have a leading space in the string for your include() call: ' tma.urls' vs. 'tma.urls'

no module named ...

2016-02-21 Thread bob gailer
Following the tutorial I created projectmysite and the polls app. Everything is fine. I then started another app, tma, ran server and everything is fine. Then I added url(r'^ tma/', include(' tma.urls')),to mysite/urls.py Now when I runserver I get: Unhandled exception in thread

Re: Invoke not right worked

2016-02-21 Thread James Schneider
On Sun, Feb 21, 2016 at 12:25 PM, wrote: > > *my file with invoke-task (tasks.py)* > . > from invoke import run, task > > separeted_line = eval('\'*\'*50') > sample = "\n{0}\n*** Finished: {1} ***\n{0}\n" > > >

Re: Why Django-User have all perms, even unexistent?

2016-02-21 Thread Simon Charette
This is only the case for superusers have you might have noticed. Le dimanche 21 février 2016 15:26:54 UTC-5, setivo...@gmail.com a écrit : > > Code in ipython > - > > In [51]: from django.contrib.auth.models import User > > In [52]: User.objects.all() >

Why Django-User have all perms, even unexistent?

2016-02-21 Thread setivolkylany
Code in ipython - In [51]: from django.contrib.auth.models import User In [52]: User.objects.all() Out[52]: [, , ] In [53]: user = User.objects.last() In [54]: user.is_superuser Out[54]: True In [55]: user.f user.first_name user.from_db

Invoke not right worked

2016-02-21 Thread setivolkylany
*my file with invoke-task (tasks.py)* . from invoke import run, task separeted_line = eval('\'*\'*50') sample = "\n{0}\n*** Finished: {1} ***\n{0}\n" @task def run_stadalone_configure(): command = './manage.py collectstatic --noinput'

Re: ValidationError syntax different than in Django 1.9 docs

2016-02-21 Thread Andrzej Olchawa
Many thanks to all of you for your answers. I had no idea Django has such a translation feature. I'm starting to like this technology more and more every day :-) Cheers Andrzej On Monday, February 15, 2016 at 3:37:33 AM UTC+1, James Schneider wrote: > > > On Feb 14, 2016 7:31 AM, "Andrzej

Why on Pythonenywhere not worked MediaElement, FancyBox and VideoJS

2016-02-21 Thread setivolkylany
See http://eugenelysenkowebsite.pythonanywhere.com/en/files/video/1/ | not worked MediaElement, but worked standart HTML VideoPlayer -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from

Re: mathematical function and django connect

2016-02-21 Thread Xristos Xristoou
yes i see that and fix it but not work again Τη Τρίτη, 9 Φεβρουαρίου 2016 - 9:47:30 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: > > hello, > > > i create some python mathematical function on python idle, > i want to create website where the user import value numbers on the > function > and