Hi
I am calling a stand alone script from within views.py and
was able to generate a html
file with render_to_string in a stand alone script
by include followng line:
from django.template.loader
import render_to_string
now , need to use "httpresponse" to generate a response.
is it possible ? t
Thank you Jirka,
Changed the function to stand alone script and called it with sudo from
views.py.
that worked and solved my problem.
From: Jirka Vejrazka
To: django-users@googlegroups.com
Sent: Tuesday, August 14, 2012 1:03:29 PM
Subject: Re: invoking a f
Hi
I have setup Django with wsgi and Apache on Linux and all is good,
but the application that I am building should be able to modify
Linux files which are only allowed by root.
so, I have created a function named myfunc in a module named mymodule.py
and has invoked the function in my application
o-users@googlegroups.com
Sent: Sunday, August 5, 2012 4:51:46 PM
Subject: Re: named url patterns - invalid syntax
Al 05/08/12 13:43, En/na Blaxton ha escrit:
>
> Hi
>
> Why following line cause an invalid syntax :
> (r'^myform/$', 'mysite.views.myform', nam
Hi
Why following line cause an invalid syntax :
(r'^myform/$', 'mysite.views.myform', name="myform"),
it seems named url pattern has changed from name="myform" to just 'myform'
because when I change it to:
(r'^myform/$', 'mysite.views.myform', 'myform'),
it pass the syntax error and throw
Hi
I am trying to use login required middleware in a project
and followed every step mentioned on following url ,
but its just not working.
http://djangosnippets.org/snippets/1179/
placed the above middleware in myproject/middleware.py
added following lines to settings.py
LOGIN_URL = '/'
MIDDLE
I just figured the solution is using @login_required decorator.
Thanks
From: Blaxton
To: "django-users@googlegroups.com"
Sent: Wednesday, July 25, 2012 10:42:31 PM
Subject: Prevent direct access to some URLs
Hi
I have set up a login p
Hi
I have set up a login page, using "django.contrib.auth.views.login"
and user's would be forwarded to their own web page after being
authenticated, but they can access to their web page directly with
placing the related uri.
how can I prevent direct access to those page ?
Thanks
--
You r
ystem ?
From: kenneth gonsalves
To: django-users@googlegroups.com
Sent: Tuesday, June 19, 2012 3:42:34 PM
Subject: Re: Writing or editing files using Django
On Tue, 2012-06-19 at 00:40 -0700, Blaxton wrote:
> I am a newbie in Django and in need of some
I am a newbie in Django and in need of some hints to
point in the right direction.
I am building a new
application which users would enter some names and then
after
clicking on submit, some non .html files should be created or modified
while entered data should be inserted in some parts of t
I am a newbie in Django and in need of some hints to point in the right
direction.
I am building a new application which users would enter some names and then
after clicking on submit, some non .html files should be created or modified
while entered data should be inserted in some parts of the fi
11 matches
Mail list logo