If instead of printing "not valid" you'll print the form itself with
the errors (as described here for example:
http://docs.djangoproject.com/en/dev/topics/forms/#customizing-the-form-template)
you would see what the errors are. Alternatively, read about form
validation
If your file is completely static (even coming from a cache server)
then there's no way of getting the csrf, since the whole point of the
csrf is that it's dynamic (otherwise it can be copied).
You can do a one time "warmup" if the cookie is not present on your
client to "get_data" from the
Ian
Thanks for the reply. Your solution makes perfect sense. My forms
are
automatically generated by Django via Form classes. So I can't
embed this suggested input element in any form element present in my
template.
Where should I put this code in since there is no form element?
cs
>
>
Hi Calvin
How can I install the facebook python library to my project?
Thanks
Nge
On Mar 21, 6:45 am, Calvin Spealman wrote:
> Do you possibly have a module or package in your project named "facebook"?
> One of the requirements for django-socialauth is the facebook python
On Mar 21, 6:45 am, Calvin Spealman wrote:
> Do you possibly have a module or package in your project named "facebook"?
> One of the requirements for django-socialauth is the facebook python
> library, but if you have another module by the same name, that could be
>
Hi Vikalp,
Now I already install Python-SDK in my Python Path.
But I got this error.
If possible, please guide me in details how should I do.
Thanks
Nge
On Mar 21, 7:09 am, vikalp sahni wrote:
> https://github.com/facebook/python-sdk
>
> You have to use this. As the
One option is to use flash vars to pass your django app url to your flex SWF
on initialization in your HTML page.
That way you don't have to rebuild your SWF for different environments.
And you may use a django template to render the html that embeds your swf so
you can change the
url
Hmm, is Django and this static file on two separate servers? It's looking like
you might just want to do a @csrf_exempt.
On Mar 21, 2011, at 6:35 PM, Brian Craft wrote:
> No, it's not. It's a static file.
>
> On Mon, Mar 21, 2011 at 10:23 AM, Matt Robenolt
> wrote:
No, it's not. It's a static file.
On Mon, Mar 21, 2011 at 10:23 AM, Matt Robenolt
wrote:
> Is your main view being rendered by Django or something else? If so, you'll
> have access to the cookie.
>
> On Mar 21, 2011, at 1:09 PM, Brian Craft wrote:
>
>> It's in a
On 03/11/10 07:48, sebastien piquemal wrote:
> I have thought of many solutions to replace ldapdb. I came to
> conclusion than the cleanest, and most useful for the community, would
> be to implement a real db backend for ldap. However, I have been told
> that it is an awfully big task !
>
It
On Mar 20, 11:15 pm, Daniel Roseman wrote:
> On Sunday, March 20, 2011 9:57:04 PM UTC, Turner wrote:
>
> > I'm working on a custom tag to which I would like to be able to pass
> > template variables and filters. I found
> > Variable(value).resolve(context) in the Django
Take a look at this, Brian:
http://groups.google.com/group/django-developers/browse_thread/thread/662f7f0327c177fd?pli=1
2011/3/21 Brian Craft
> It's in a cookie once you coerce django into sending the cookie to the
> browser. This is less automatic for ajax apps,
Try:-
Download
http://download.osgeo.org/osgeo4w/release/geos/geos-3.2.2-1.tar.bz2
Extract Files
copy bin/geos_c.dll to c:\Python27\DLLs\
Add following to settings.py
GEOS_LIBRARY_PATH='c:\Python27\DLLs\geos_c.dll'
I had same problem with 1.2.5, above fix for 1.3-rc1
On Feb 3, 2:59 pm,
I would appreciate some guidelines on a better way to deploy a
flex/flash frontend with a django backend.
I've got flex and django working nicely using the Flex HTTPService and
XML and the message content. Probably not as efficient as other methods
but this is an intratnet and performance is not
Is your main view being rendered by Django or something else? If so, you'll
have access to the cookie.
On Mar 21, 2011, at 1:09 PM, Brian Craft wrote:
> It's in a cookie once you coerce django into sending the cookie to the
> browser. This is less automatic for ajax apps, because django isn't
>
It's in a cookie once you coerce django into sending the cookie to the
browser. This is less automatic for ajax apps, because django isn't
serving the forms (which is when it usually sends the csrf cookie).
On Mon, Mar 21, 2011 at 9:49 AM, Matt Robenolt
wrote:
> To
Actually I reached a similar position and I'm interested enought to work on
something like that.
You are still interested or have some code to share about it?
Felipe 'chronos' Prenholato.
Linux User nº 405489
Home page: http://chronosbox.org/blog
Twitter: http://twitter.com/chronossc
To get the token? It's stored in a cookie. You can read that in Javascript
with document.cookie, then parse the cookie string to retrieve the relevant
part.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
I'm trying to reference errors on a new form. In the html file code I
reference them as "{{ form.fieldname.errors }}". How do I reference
those same field's errors lists in a view before I display the screen?
My goal here is to assign the focus of the screen which is about to be
displayed to be
I hear you, Russ.
I'll see if I can't get something more repeatable down in code, but as
I stated, it's an intermittent problem.
Didn't meant to sound like your 3rd option wasn't an option ("issues
with the code" is always an option). I just wanted to make sure this
wasn't a "postgres thing" that
On Monday, March 21, 2011 1:41:40 PM UTC, MrMuffin wrote:
>
> Ok, but I want the report in django admin, nicely formatted, with
> shiny icons, charts and pies ;-)
>
> I was wondering if I should make a simple middleware to handle
> request-logging and add a few views to summarize things like os,
>
Ok, but I want the report in django admin, nicely formatted, with
shiny icons, charts and pies ;-)
I was wondering if I should make a simple middleware to handle
request-logging and add a few views to summarize things like os,
browser, visitors addresses etc.
Thomas
On Mon, Mar 21, 2011 at 2:27
On Monday, March 21, 2011 7:09:58 AM UTC, Su Yi Kyaing wrote:
>
> Dear All!
>
> I want to create Django login form via facebook. So I am using with
> django-social-auth.
> Can every one guide me in detail how should I do continuously after
> clone django-social-auth to my project?
>
> Regards
Its an app that that gets installed into your project. What helped me
understand how this works the best is to look at the pinax project. I
didn't use the code but looking at it is a great way to learn.
http://pinaxproject.com/
On Mar 21, 3:09 am, Su Yi Kyaing wrote:
>
It sounds like you want webalizer or awstats. They use your server log info.
Shawn
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email
Is there an app for logging visitors with a nice report, like a report
showing number of visitors for a specific page, users with a specific
browser/OS etc?
--
Mvh/Best regards,
Thomas Weholt
http://www.weholt.org
--
You received this message because you are subscribed to the Google Groups
On Monday, March 21, 2011 4:49:34 AM UTC, Andrew Godfrey wrote:
>
> Hi,
>
> I am paginating the output of a query. Everything works fine and the
> first page of results is displayed. The problem is that the url to
> access pages 2 (http://127.0.0.1:8000/search/?page=2) and following
> fall
I am trying to use couchdb as the backend for my application. The
database instance is exposed via a webservice which has authentication
methods.
I am using in memory cache and in memory sessions as we do not have a
relational database.
For authenticating against couch, I have written custom
The problem was, that I assigned default settings this way:
DEFAULT_SETTINGS = {...}
...
self.settings = DEFAULT_SETTINGS
I changed it to:
self.settings = DEFAULT_SETTINGS.copy()
And it is ok now :)
Martin
On Wed, 16 Mar 2011 00:49:15 +0100, Karen Tracey
wrote:
On
Dear All!
I want to create Django login form via facebook. So I am using with
django-social-auth.
Can every one guide me in detail how should I do continuously after
clone django-social-auth to my project?
Regards
Su
--
You received this message because you are subscribed to the Google Groups
Hi,
I am paginating the output of a query. Everything works fine and the
first page of results is displayed. The problem is that the url to
access pages 2 (http://127.0.0.1:8000/search/?page=2) and following
fall back to the search form and do not display the second page of
results.
urls.py
On 19 Mar, 22:49, maxi wrote:
> Hi,
>
> Which is the better way to do this on orm language ?
>
> select filed1, sum(field2 * field3)
> from a_table
> group by field1
>
I believe this is not possible in the current Django ORM.
It would need something like this to work:
https://github.com/facebook/python-sdk
You have to use this. As the method giving error is implemented on Facebook
Python-SDK.
Regards
//Vikalp
On Mon, Mar 21, 2011 at 4:15 PM, Calvin Spealman wrote:
> Do you possibly have a module or package in your project named
Do you possibly have a module or package in your project named "facebook"?
One of the requirements for django-socialauth is the facebook python
library, but if you have another module by the same name, that could be
imported instead.
On Mon, Mar 21, 2011 at 4:23 AM, Nge Nge
Hi All!
I am already tried to login from my django form via facebook login.
I am testing with django-socialregistration from (
https://github.com/flashingpumpkin/django-socialregistration.git).
I am facing the following error when I run my program.
Please help me.. How should I do??
Nge
Hi there,
Recently I decided to develop a project that will involve some shopping cart
capabilities (we will sell some products, mainly by using credit card
payment methods).
I've been checking some packages - frameworks, and I can decide wich is
better fit for me. By now, I visited the
36 matches
Mail list logo