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 ta
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 i
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 Olch
*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'
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 user.full_cl
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()
> Out
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"
>
>
> @task
> def run_stadalone_conf
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 starte
> 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'
-Ja
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 functio
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 not provide the val
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 nu
12 matches
Mail list logo