Hi,
I want to use reCaptcha on my site. It requires to add recaptcha
module. Is it possible to not to add this to python modules, but place
somewhere in my app, and then import it from there?
I placed it in my project main dir, co path looks like this: /project/
customlibs/recaptcha/...
I try to i
On Nov 17, 9:11 am, robos85 wrote:
> Hi,
> I want to use reCaptcha on my site. It requires to add recaptcha
> module. Is it possible to not to add this to python modules, but place
> somewhere in my app, and then import it from there?
>
> I placed it in my project main dir, co path looks like this
you can use recaptcha directly in the form view
add PUBLIC_KEY and PRIVATE_KEY to settings.py
in the view of the form add
import captcha
from django.conf import settings
if request.method == "POST":
check_captcha =
captcha.submit(request.POST['recaptcha_challenge_field'],
request.
So, it's not possible to import it just from my project dir?
The only way it to ask my hosting provider to install it? I have SSH
terminal but I wanted it to be more portable and put it in my
project:/
On 17 Lis, 10:25, Daniel Roseman wrote:
> On Nov 17, 9:11 am, robos85 wrote:
>
> > Hi,
> > I w
Yes - but import captcha gives me ERROR: Could not import index.views.
Error was: No module named captcha
I have to put it somewhere and want to avoid adding it as Python
module but as local package
On 17 Lis, 10:28, MikeKJ wrote:
> you can use recaptcha directly in the form view
>
> add PUBLIC_K
Hi
My dev enviroment is OS x 10.5
I grabbed the django registration application and configured it to
email via my local host spooler. After which I setup postfix alias's
for some dummy domains, these I tested from command line and my emails
are coming through. Then i proceed to get the register ap
On Nov 17, 9:28 am, robos85 wrote:
> So, it's not possible to import it just from my project dir?
> The only way it to ask my hosting provider to install it? I have SSH
> terminal but I wanted it to be more portable and put it in my
> project:/
That's completely the opposite of what I just said.
Ahh sorry m8 I forgot to add this
in the root of your project directory add captcha.py
which is this
-
import urllib2, urllib
API_SSL_SERVER="https://api-secure.recaptcha.net";
API_SERVER="http://api.recaptcha.net";
VERIFY_SERVER="api-verify.reca
ok, I decided to switch to one of my SMTP servers I know works and
which I send email from on my local machine via a java app I have.
now I get a very non descriptive error
Environment:
Request Method: POST
Request URL: http://localhost:8000/accounts/register/
Django Version: 1.2.3
Python Versio
Sorry I couldn't find anything, I'll search more.
On Nov 16, 3:00 pm, derek wrote:
> You will need to use Javascipt: handwritten or via framework e.g.
> JQuery. Its been asked about before on this mailing list and numerous
> people have blogged on it.
>
> On Nov 16, 11:58 am, Federico Capoano
>
I'm not guru in server side commands:)
I have access to command line. I'm in python console but don't know
what to do next to add this module. eazy_install requires root so I
can't just install it:/
On 17 Lis, 10:39, Daniel Roseman wrote:
> On Nov 17, 9:28 am, robos85 wrote:
>
> > So, it's not p
Is it from some special source, or it's your own code:)
I could search it maybe on recaptcha site?
On 17 Lis, 10:40, MikeKJ wrote:
> Ahh sorry m8 I forgot to add this
> in the root of your project directory add captcha.py
>
> which is this
> -
>
>
in case someone runs into this in the future, i had to set the default
from email to get it to work.
DEFAULT_FROM_EMAIL = 'sam...@domain.com'
nicer error messages would have been, well nice.
On Wed, Nov 17, 2010 at 9:52 AM, Johannes Nel wrote:
> ok, I decided to switch to one of my SMTP server
Hi,
I understood that in new version of django we are using
STATICFILES_ROOT and STATICFILES_URL instead OF MEDIA_ROOT and
MEDIA_URL.
But when i look at settings.py i see both of them. When do we use
MEDIA? when do we use STATICFILES ?
Note: pls dont give link to docs i already read them
--
Yo
Think it came from either django snippets or recaptcha but it is open source
and been using it for a while
as it works a treat.
This is a mickey mouse site put together for one of my bosses that uses it
so
http://www.proofofpurchase.co.uk
go look at register and you can see it works
all the code
Most tutorials I've read organize apps into a structure of this sort:
domain.com/blog
domain.com/map
domain.com/links
domain.com/another_app
What about the index: how would an app (or a flatpage?) for that look
like? An index typically includes some of the blogpost from the blog,
some of the link
I'm also beginner. I made an index app and just added it in my urls:
(r'^$', 'index.views.index'),
:)
On 17 Lis, 11:29, eiriks wrote:
> Most tutorials I've read organize apps into a structure of this sort:
>
> domain.com/blog
> domain.com/map
> domain.com/links
> domain.com/another_app
>
> What a
Thanks :)
On 17 Lis, 11:27, MikeKJ wrote:
> Think it came from either django snippets or recaptcha but it is open source
> and been using it for a while
> as it works a treat.
>
> This is a mickey mouse site put together for one of my bosses that uses it
> sohttp://www.proofofpurchase.co.uk
> go
On Nov 17, 9:55 am, robos85 wrote:
> I'm not guru in server side commands:)
> I have access to command line. I'm in python console but don't know
> what to do next to add this module. eazy_install requires root so I
> can't just install it:/
Sigh. For the third time: just run this command:
py
robo...@s27:~$ python setup.py install --home=~
python: can't open file 'setup.py': [Errno 2] No such file or
directory
That's what I get :/
On 17 Lis, 12:48, Daniel Roseman wrote:
> On Nov 17, 9:55 am, robos85 wrote:
>
> > I'm not guru in server side commands:)
> > I have access to command lin
On Wed, Nov 17, 2010 at 12:14 PM, robos85 wrote:
> robo...@s27:~$ python setup.py install --home=~
> python: can't open file 'setup.py': [Errno 2] No such file or
> directory
>
> That's what I get :/
>
Run it in the directory containing the extracted library you wish to
install (big hint, it will
On 17 Nov 04:14, robos85 wrote:
> robo...@s27:~$ python setup.py install --home=~
> python: can't open file 'setup.py': [Errno 2] No such file or
> directory
>
> That's what I get :/
Now try doing it in the folder that you've unpacked recaptcha in...
where the setup.py file is.
> On 17 Lis, 12:4
hi all
i followed each step in tutorial to create poll app...i am able to see
the admin page...when i added the Admin class to Poll class as inner
class, i am not getting the poll app interface in admin page..what to
do>>>
--
You received this message because you are subscribed to the Google Gro
On Nov 17, 1:48 pm, frank wrote:
> hi all
>
> i followed each step in tutorial to create poll app...i am able to see
> the admin page...when i added the Admin class to Poll class as inner
> class, i am not getting the poll app interface in admin page..what to
> do>>>
You must be following a very
when i added the Admin class to Poll class as inner class,
Guess you mean when you register your poll app with django admin?
Check a few things of the list.
You have added your poll app to 'installed apps' in your projects
settings.py file and ran 'python manage.py syncdb'
You have created a ne
On Tue, Nov 16, 2010 at 9:08 AM, derek wrote:
> " you'll have to have all the states/provinces as 'choices' in the
> ChoiceField in the form, otherwise the form won't validate."
>
> Yup, this is a "real" gotcha. IMO, its not really true filtering if
> you take this approach, as the initial form w
Authorize them against the DB the first time, then attach some flag to
their session that represents "authorized" that your views check on
instead of having them work with the auth models (or however you're
doing it). If the "authorized" flag doesn't exist, redirect them to
the login page.
You may
On Nov 17, 2:07 am, MiratCanBayrak wrote:
> Hi,
>
> I understood that in new version of django we are using
> STATICFILES_ROOT and STATICFILES_URL instead OF MEDIA_ROOT and
> MEDIA_URL.
>
> But when i look at settings.py i see both of them. When do we use
> MEDIA? when do we use STATICFILES ?
>
Hey! Im kinda following the offcial tutorial but I set up my project
using another tutorial.
My Problem now is that I'm trying to include the 'polls' app in the
INSTALLED_APPS config. I must put "myproject.polls" to get it to work.
But that's not very pluggable since in my apps I must refer to
"my
I've done this several times, and Toby's description is pretty much
what I have done.
Sometimes three levels of non-data-model classes to represent the
matrix:
a table class
a row class
a cell class
Then formsets to populate the rows with data entry fields.
Then builder methods to morph the data
When you put an app into INSTALLED_APPS, it looks on your PYTHONPATH.
If you make an app intended to be pluggable, your users should be
installing your application with pip or something, and your app code
will exist on the PYTHONPATH, not in a subfolder of their Django
project.
If you want to dev
IMHO - an simple extra view might be enough to reach what you are
looking for - I do not see the need for an extra app - Am I missing
something?
In the directory of domain.com/ there is a simple views.py file which
defines a simple callback function.
2010/11/17 robos85 :
> I'm also beginner. I m
I will often do this via direct_to_template to an index.html template and have
a set of template tags that pull in the dynamic content like latest blog posts,
etc.
On Nov 17, 2010, at 5:29 AM, eiriks wrote:
> Most tutorials I've read organize apps into a structure of this sort:
>
> domain.com/
Also make sure that in you app folder and every folder for that matter has a
__init__.py that way python will view it as a module.
--- On Wed, 11/17/10, Shawn Milochik wrote:
From: Shawn Milochik
Subject: Re: INSTALLED_APPS doesn't check my projet dir
To: django-users@googlegroups.com
Date: W
I'm using django-reviews (http://code.google.com/p/django-reviews/)
and having trouble getting the content-type set for a review. Simple
example:
def check_review(request):
if request.method == 'POST':
reviewed_item = get_object_or_404(MyModel,
pk=request.POST['object_pk'])
rev
Hi all,
I am using this approach to run django on tornado.
https://github.com/koblas/django-on-tornado
Everything is OK, but I need example how to run it with wsgi or
fastcgi
Is it possible?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To pos
Hello,
Can I use django's generic relations to create a model (GenericPost) that can
point to other model (APost) or model (ReviewPost) ?
And then use this GenericPost model to get a list of all latest APost's and
ReviewPost's ?
I've been trying this all day long but I couldn't get around the
On Wed, Nov 17, 2010 at 11:36 PM, Jonas Geiregat wrote:
> Hello,
>
> Can I use django's generic relations to create a model (GenericPost) that
> can point to other model (APost) or model (ReviewPost) ?
> And then use this GenericPost model to get a list of all latest APost's and
> ReviewPost's
On Wed, Nov 17, 2010 at 11:46 PM, Marc Aymerich wrote:
> On Wed, Nov 17, 2010 at 11:36 PM, Jonas Geiregat wrote:
>> Hello,
>>
>> Can I use django's generic relations to create a model (GenericPost) that
>> can point to other model (APost) or model (ReviewPost) ?
>> And then use this GenericPos
I would second Russ' memcached recommendation.
We use custom authorization modules that do some obj level lookups in
addition to some other ACL type stuff. We've cut down seriously on the
amount of DB hits by:
1- Caching a lot of the more static type of authorization rulesets ( the
ACLs )
2- Usin
Op 17-nov-2010, om 23:46 heeft Marc Aymerich het volgende geschreven:
GenericPost.objects.get(pk=1).content_object.content
That's the strange thing. It just doesn't work:
Some code:
In [3]: GenericPost.objects.get(pk=1).content_object
In [4]: GenericPost.objects.get(pk=1).content_objec
Hi,
I'm trying to use ReportLab to produce a PDF output for one of my
views.
My first question is - at the moment, I'm building up the PDF inside
my view. Is this really the recommended way of doing it? It's like
I've got presentation code inside my view (controller). Isn't there a
cleaner way of
Hello,
I have a model that looks like this:
class Item(models.Model):
...other fields...
tags = TagField()
I have not defined any additional methods for tagging on the model.
In admin.py:
class ItemAdmin(admin.ModelAdmin):
list_filter = ('featured', 'available', 'tags',)
In admin,
Dear all,
Started learning Django 3 days ago. Great tutorials. Just
made a modified version of the poll app. I am now facing a small
problem, given my newbie-ishness with Python, its proving to be a
little hard to solve for me. I searched this group and did find some
similar issues rep
Are you sure the user has been marked as is_staff or is_superuser?
http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.models.User.is_staff
On Wed, Nov 17, 2010 at 18:26, bingbang wrote:
> Dear all,
> Started learning Django 3 days ago. Great tutorials. Just
> made a
On Wed, Nov 17, 2010 at 5:48 PM, Thomas Schreiber wrote:
> Are you sure the user has been marked as is_staff or is_superuser?
>
> http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.models.User.is_staff
>
> No the user is not marked as either because it is my goal to set up a
no
I installed the django-selenium-test-runner package and have finally
have almost everything working. Everything happens up through the
launch of the browser, but when it tries to hit the 127.0.0.1 there's
no connection. It appears that there's no test server running. I
obviously can't run it manual
Try using:
text = item.category.name
and
text = '%s' % item.subject.name
Rather than sending the entire FK field to ReportLab.
I don't necessarily see a problem with this logic in your view, as
you're just generating a file response. If it doesn't feel right, you
can throw this logic into a ut
It would be great if perhaps one of you could write up a more detailed
description (i.e with code) of this as a blog entry... or maybe a wiki page?
On 17 November 2010 18:10, bobhaugen wrote:
> I've done this several times, and Toby's description is pretty much
> what I have done.
>
> Sometimes
Hi robos85,
If you really want to put recaptcha inside your project directory you
can do that also,
Simply download recaptcha-client from
http://pypi.python.org/pypi/recaptcha-client.
Extract the package, then in the folder you'll find a recaptcha folder
> client > captcha.py file
copy this file
Hi Rob,
Thanks very much for your help. Installing Django properly solved all
the problems encountered!
Don't worry about being anything other then very helpful. Much
appreciated.
Errit.
On 16 nov, 12:40, Robbington wrote:
> Thats ok, I can appriciate how frustrating it can be trying to learn
51 matches
Mail list logo