Re: Help with django-paypal anyone?

2012-03-22 Thread Daniel Hilton
t Regards, > > Stanwin Siow > > > > On Mar 22, 2012, at 6:01 PM, Daniel Hilton wrote: > > On 22 March 2012 05:47, Jonathan Baker <jonathandavidba...@gmail.com> wrote: > > You'll need to enable the CSRF middleware, adjust your view and make use of > > the {% csrf_

Re: Help with django-paypal anyone?

2012-03-22 Thread Daniel Hilton
On 22 March 2012 05:47, Jonathan Baker wrote: > You'll need to enable the CSRF middleware, adjust your view and make use of > the {% csrf_token %} template tag in your template. Details can be found > here: https://docs.djangoproject.com/en/dev/ref/contrib/csrf/ > >

Re: Django REST

2012-03-04 Thread Daniel Hilton
On 4 March 2012 18:35, Jani Tiainen wrote: > I've been very happy with django-rest-framework. > > I think there exists at least django-piston to do the same. The other one to look at is django-tastypie - I've used it twice now in anger and been really happy with it plus the

Re: how to make a small change for apps installed under /site-packages dir

2012-02-05 Thread Daniel Hilton
On 5 February 2012 17:16, Tom Lesters wrote: > hi all, > > I installed an app called idios into python2.6/site-packages/idios dir, > > now I need to make a small change, adding the following line(just for > purpose of explaining this question) > @login_required > to one of

Re: UK-based Django Host?

2011-05-25 Thread Daniel Hilton
On 25 May 2011 14:43, Nan wrote: > > Thanks for the suggestions, guys.  I've heard great things about > Linode, but we really need managed hosting. Then have a look at Rackspace cloud managed options - I think that's the closest you're going to get without finding an

Re: UK-based Django Host?

2011-05-25 Thread Daniel Hilton
On 24 May 2011 20:01, Nan wrote: > Thanks, Matt.  Normally I'd agree with you, but this application isn't > just a website -- it's sensitive to latency issues and will be > integrating with a third-party service that's also UK-based, so we're > looking at minimizing

Re: Do any financial firms use a Django framework?

2011-05-03 Thread Daniel Hilton
On 3 May 2011 15:53, rpt...@reportlab.com wrote: > Does anyone know of any financial firms which use a Django framework? > I am preparing a proposal to build a web based solution for a > financial firm using Django, and some key players there would be much > more comfortable

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-15 Thread Daniel Hilton
On 15 April 2011 13:01, roberto wrote: > You can also have a look at askbot. > It seems to have more functionalities. > Good luck ! > > www.askbot.org > > On Apr 14, 6:43 pm, AJ wrote: >> Why has this become a case for me? I just wanted to

Re: Johnny Cache on Django 1.3

2011-04-04 Thread Daniel Hilton
On 4 April 2011 08:16, Charlie Offenbacher wrote: > Hi everyone! > > I'm try to install johnny-cache on Django 1.3. I literally followed > the instructions here (http://packages.python.org/johnny-cache/#) > exactly, using the memcached version. > > Evverything runs

Re: Some clues on multi language webapp on Django

2011-03-22 Thread Daniel Hilton
On 22 March 2011 14:18, Andre Lopes wrote: > Hi, > > I'm new to Django. I need some clues on how to design a multi language > webapp on Django. There are some some examples, tips and tricks about > the best way of doing it? > > PS: Sorry for my english. Have a look at

Re: eval if an object meets with a queryset.

2011-03-01 Thread Daniel Hilton
On 1 March 2011 10:55, Marc Aymerich wrote: > Hi!, > I have a model class like this one: > > class Domain(models.Model): >    active = models.BooleanField() >    root = models.CharField(max_length=6) > > now given a Domain instance I need to know if it meets with an >

Re: Toolbar for Django 1.3?

2011-02-17 Thread Daniel Hilton
On 17 February 2011 10:34, galago wrote: > I run my sever on localhost (manage.py runserver). > Is there any way to display all queries in console or somewhere else? Yes, if you install dcramer's devserver, which is a straight replacement for the runserver command. More info

Re: Toolbar for Django 1.3?

2011-02-17 Thread Daniel Hilton
On 17 February 2011 10:24, galago wrote: > It doesn't work when I switch on the panel for SQL > ('debug_toolbar.panels.sql.SQLDebugPanel',). Without that panel it works. > That's error: > TemplateSyntaxError at / > > Caught AttributeError while rendering: 'Cursor' object has

Re: Toolbar for Django 1.3?

2011-02-17 Thread Daniel Hilton
On 17 February 2011 10:15, galago wrote: > Is there any working toolbar for Django 1.3? > https://github.com/dcramer/django-debug-toolbar - this doesn't work in my > project based on 1,3 :/ > Doesn't work how? Stack trace or more info please! Cheers, Dan > -- > You received

Re: Save uploaded file to remote machines?

2010-12-28 Thread Daniel Hilton
On 28 December 2010 07:12, Andy wrote: > I'm using forms.FileField() to allow users to upload photos. > > After a photos is uploaded, I want to save the photo to one or more > than one remote machine(s) which are dedicated to serving images. How > do I do that? > >

Re: Best way to present N items in table row for list

2010-07-28 Thread Daniel Hilton
On 27 July 2010 17:51, Wadim wrote: > Hello. > I have a list that i want to present in a table. > Each row should have 5 items. > For now i create the function that returns me new grouped list, that i > use later in a template. > def groupListByRow(list): >        

Re: Signal emitted after successful login?

2010-06-29 Thread Daniel Hilton
On 29 June 2010 20:07, Andy McKay wrote: > On 2010-06-29, at 10:48 AM, tiemonster wrote: > >> Is a signal emitted after a successful login? I need to hook a >> particular piece of code into that point in the application. > One easy way is to wrap the login view function and

Re: virtual currency / check-in apps

2010-06-23 Thread Daniel Hilton
No but you can do 'badges' or awards with this: http://bitbucket.org/jiaaro/django-badges/src HTH Dan On 23 June 2010 00:28, Greg Pelly wrote: > Can anyone recommend any apps/tools for implementing either virtual currency > or "check-ins" in Django? > Thanks, > > Greg > > --

Re: GeoDjango: Measure distance between two points.

2010-06-13 Thread Daniel Hilton
On 13 June 2010 06:24, Tyler Andersen wrote: > I'm trying to figure out how to take two Point objects and determine > the distance between them. > > It seems that it is trivial to search the DB (well, provided that I'm > not using mySQL, which I am) to filter by distance,

Re: Sync user objects with sympa mailinglist

2010-05-19 Thread Daniel Hilton
n is set to true. That way you don't have to catch any events, just make sure your cron job runs regularly to keep the two in sync. Cheers, Dan > > On Wed, May 19, 2010 at 3:43 PM, Daniel Hilton <daniel.hil...@gmail.com> > wrote: >> >> On 19 May 2010 00:02, Dexter

Re: Sync user objects with sympa mailinglist

2010-05-19 Thread Daniel Hilton
On 19 May 2010 00:02, Dexter wrote: > Hi, > I want to sync emailadresses in the django.contrib.auth User model, to a > sympa mailinglist subscriberlist. > I really don't have any experience with sympa. So I don't know how this > process usually goes, > but what I did found

Re: Server on diffferent machine

2010-05-16 Thread Daniel Hilton
On 16 May 2010 20:22, bax...@gretschpages.com <mail.bax...@gmail.com> wrote: > > > On May 16, 1:55 pm, Daniel Hilton <daniel.hil...@gmail.com> wrote: > >> Can you ping the db machine from the webserver? >> Can you access the db machine from the webserver usi

Re: Server on diffferent machine

2010-05-16 Thread Daniel Hilton
On 16 May 2010 19:25, bax...@gretschpages.com wrote: > I know this is something stupid I'm missing, but I'm not getting it. > > I'm trying to run my Django from one cloud instance and the DB from > another, to (hopefully) optimize each server for task and balance the > load

Form multiple inheritance

2010-05-11 Thread Daniel Hilton
Hi I've got two ModelForms, both really simple. class TaskBaseForm(forms.ModelForm): class Meta: model = Task class TaskAssignmentDurationForm(forms.ModelForm): """ Form for setting the duration of an existing TaskAssignment object. """ class Meta: model =

Re: Equivalent of php json_encode?

2010-05-04 Thread Daniel Hilton
On 4 May 2010 15:34, zweb wrote: > Is there a django or python equivalent of php json_encode? > > the data I am converting to json has text fields that have quotes, > double quotes, newlines and html tags. Creating json manually in my > program without escaping or

Re: DB Adapter for HTML5 Client Database Storage?

2010-04-07 Thread Daniel Hilton
On 7 April 2010 08:45, Victor Hooi wrote: > heya, > > This is a bit of random musing, but I was wondering, how big a project > is it to write a DB adapter for the Client-side Client-side Database > Storage API in HTML5? > > That is, there are already efforts to integrate in

Multi-cores & Django

2010-04-01 Thread Daniel Hilton
I'm researching the deployment of a new internal app and the ops team have asked me what type of server the app requires. What I'm looking for is some advice / guidance on how best to make use of multi cores in a single machine deployment. We are currently running mod_wsgi, postgresql on a single

Re: Cassandra backend

2010-03-29 Thread Daniel Hilton
2010/3/29 Ricardo Bánffy : > Hi. > > I am about to be asked to either find a way to use Cassandra as a > database backend or create one. Is there anyone working on something > like this? > Do you mean writing a database backend for django ORM that supports Cassandra? Have a

Re: Scrape a file, then put it in the django database

2010-03-08 Thread Daniel Hilton
On 8 March 2010 07:45, mjlissner wrote: > I'm trying to write a program that scrapes all the pdfs off of this > page: > http://www.ca3.uscourts.gov/recentop/week/recprec.htm > > And then puts them onto my hard drive, with the reference to their > location in a FileField. > >

Re: SAAS User and Auth situation.

2010-02-22 Thread Daniel Hilton
On 22 February 2010 05:09, orokusaki wrote: > I'm developing an SAAS which means that I will have Accounts and those > Accounts will have Users. Each account's Users are completely > orthogonal to the Users of another Account. When a user logs in, > they'll supply an

Re: any suggestions for managing DB schema with visual ERD tool?

2010-02-18 Thread Daniel Hilton
On 18 February 2010 00:03, snfctech wrote: > I just built a complicated schema with MySQL workbench and am looking > at Python frameworks to start implementation. > > Does anybody in the Django community do this?  What's your practice > for going back and forth between

Re: svn checkout problems? (at around 2:50 pm GMT, 2010-01-29)

2010-01-29 Thread Daniel Hilton
On 29 January 2010 14:59, chefsmart wrote: > For the last 1 hour I have been trying to checkout a fresh copy of > django-trunk from svn. But the checkout is failing.  Unfortunately, I > don't have the exact message I have been receiving, but just wondering > if anybody

Re: Python Graph

2010-01-28 Thread Daniel Hilton
stupid ones. I actually find a little comfort in this! Good luck with Django - it's a great framework. Cheers, Dan > > On Jan 27, 11:16 am, Daniel Hilton <daniel.hil...@gmail.com> wrote: >> 2010/1/27 Bhaskar Gara <bacch...@gmail.com>: >> >> >&g

Re: Python Graph

2010-01-27 Thread Daniel Hilton
py: url(r'^member/score/compare/$', view, {'template': 'member_score_compare.html'}, name='member_score_compare'), Although you'll prob get an error on your view name. Have a look at: http://docs.djangoproject.com/en/1.1/topics/http/urls/#topics-http-urls HTH Dan > > On Jan

Re: Python Graph

2010-01-27 Thread Daniel Hilton
2010/1/27 Bhaskar Gara : > Hi, > >    I am very new to django.  I am trying to use this library for my > graphs > http://www.gerd-tentler.de/tools/pygraphs/?page=introduction > > > In my Views.py > > prev_score(request): >        graph = graphs.BarGraph('vBar') >        

Re: About generated html forms with django

2010-01-22 Thread Daniel Hilton
:13 PM, Ariel <isaacr...@gmail.com> wrote: > > Why is this http://github.com/bartTC/django-frontendadmin helpfull ??? > > Regards > Ariel > > > > > > On Fri, Jan 22, 2010 at 12:00 PM, Daniel Hilton <daniel.hil...@gmail.com> > wrote: > 2010/

Re: About generated html forms with django

2010-01-22 Thread Daniel Hilton
2010/1/22 Ariel : > Hi everybody: > I need to make an automatic admin interface with a behaviour similar to the > Django's default admin interface but not totally equal, then I need to know > how django generate all the html forms and views methods for any class > included in

Re: Send and Receive SMS from a django app

2010-01-14 Thread Daniel Hilton
2010/1/14 Alessandro Ronchi : > > > On Wed, Jan 13, 2010 at 2:29 PM, tback wrote: >> >> Hi Alessandro, >> >> yes, it's possible to send sms messages (I use this myself every day) >> and to receive sms messages (that's an assumption). >> The easiest way

Re: Send and Receive SMS from a django app

2010-01-13 Thread Daniel Hilton
http://www.rapidsms.org/ 2010/1/13 Alessandro Ronchi : > Is it possible with linux and django to send and receive data from SMS from > a django APP? Did anyone managed to do that? > > -- > Alessandro Ronchi > > http://www.soasi.com > SOASI - Sviluppo Software e

Re: Data Level Access Control

2010-01-05 Thread Daniel Hilton
2010/1/5 datta : > Hi, > > Is there a setting/module that helps me to achieve data level access > control in a web application. There are a number of projects that are looking at row-level access control: http://nomadblue.com/blog/django/django-rbac/

Re: Django Gantt Chart

2010-01-04 Thread Daniel Hilton
2010/1/4 Alessandro Ronchi : > I need to make a simple chart with a list of projects and a grafic > display of the end date with a link to the project page. > It's simpler than a gantt chart. > > Is there any library / snippet I can use to simplify my work? > Hmmm, as

Re: Calling Stored procedures from PostgresSQl

2009-12-04 Thread Daniel Hilton
2009/12/4 Geobase Isoscale : > Hi all, > Does anyone has an idea on how I can call a ' stored procedure' (function) > in posgresql into Django Form? > Many Thanks > Isoscale Do you mean in a Django way or do you mean into the Django Forms library? I think you mean in a

Re: hosting from /some/url in apache

2009-10-14 Thread Daniel Hilton
2009/10/14 Jani Tiainen : > > Chris Withers kirjoitti: >> Hi All, >> >> I need to host my django project from /some/folder in my apache instance. >> >> I have the following: >> >> WSGIScriptAlias /some/folder /path/to/django.wsgi >> >> Does this now mean I have to prefix all my

Re: any open source complete django app to use as start

2009-10-12 Thread Daniel Hilton
2009/10/12 shreko : > > I've been looking all day yesterday to find a complete django open > source project that is non trivial. Using it as a base for my app > would greatly speed up my learning and give me a fast start. To give > you an example, for kohana framework in php

Re: How to call random pictures thumbs in sidebar from pictures section?

2009-09-02 Thread Daniel Hilton
2009/9/2 Bins : > > On my django run website, I've this sidebar which calls 5 random > pictures from entries.. here's the code that does it :- > >                  {% for entry in thumb_entries %} >                   '110' src='{{entry.img}}' style='border:none;' / > >      

Re: multi-tenant website

2009-08-24 Thread Daniel Hilton
You might have alook at the saas kit which is availble on github, which does subscription billing, subdomain handling and multi user accounts. You could then write a decorator to wrap any db request to perform a test to check that only rows that are linked to that requesting user are returned or

Re: Has anything changed with Sagepay/protx apart from the name?

2009-07-14 Thread Daniel Hilton
To answer the original post: Sagepay AFAIK is a rebrand as sage have owned protx for a while now. Nothing should have changed apart from names of products. Cheers, Dan 2009/7/14 Kip Parker > > No, I did not. Oh dear. Thanks for pointing this out Karen. > > I am now off

Re: Common report values?

2009-07-06 Thread Daniel Hilton
Couldn't you use something like django-chunks for this? Specify a single chunk something like footer and then pull it in for every report? HTH Dan 2009/7/6 Joshua Russo > > I have a seriese of reports that have a signature section with the > name below. The name does

Re: Freelancers in Bristol UK July/August 09

2009-07-02 Thread Daniel Hilton
2009/7/2 sleepyjames > > Were looking for freelance developers preferably in the Bristol area > (but not essential) for a number of projects over July/August 09. > > Requirements: > Html/css > Django 1.1 (svn) > Happy with Subversion > > Please send examples/urls/rates

Re: FileField will not validate

2009-06-12 Thread Daniel Hilton
Can you post the model as well? 2009/6/12 Brandon Taylor > > Hi Everyone, > > I'm using Django trunk, Python 2.6. > > I have a model form with a FileField. The relevant portions of the > HTML are: > > enctype="multipart/form-data"> >{{ job_seeker_form.resume }} >

Re: tinycme and filebrowser - unable to select image

2009-06-11 Thread Daniel Hilton
script name change didn't work for me :( Is your working now? > > Did you check your settings.FILEBROWSER_URL_FILEBROWSER_MEDIA? Mine > was pointing to an invalid path ( I hadn't copied the filebrowser > media files over ) . My install is working now :D > > Good luck, > Sa

Re: tinycme and filebrowser - unable to select image

2009-06-09 Thread Daniel Hilton
> "the tinymce filebrowser template". > > if you think you´ve found an error, please use the google-code issue- > tracker to report it. > > thanks, > patrick > > > On Jun 9, 10:23 pm, Daniel Hilton <daniel.hil...@gmail.com> wrote: >> 2009/6/9 nostr

Re: tinycme and filebrowser - unable to select image

2009-06-09 Thread Daniel Hilton
2009/6/9 nostradamnit : > > Hello, > > I've successfully implemented TinyMCE and filebrowser for flatpages, > however, I can't seem to select the images that are displayed in > filebrowser. If I click on the image, it just serves the image?!? How > do you use it to select

Re: Automatically creating auth.models.group for an application

2009-06-02 Thread Daniel Hilton
2009/6/2 eric.frederich : > > In an application I'm writing I have a model that stores admins by > location in a model called LocationAdmin.  So in this model I have a > foreign key to User and a foreign key to a Location object. > > I would like to override the save()

Re: FileBrowser: Installation Question

2009-05-25 Thread Daniel Hilton
Filebrowser uses a directory called uploads, in your media directory. You need to create it and allow the user running your wsgi instance to be able to write to it as you upload files. On a related note, has anyone ram into trouble installing filebrowser with tinymce? Have run usual install all

Re: Production install 'admin' failing with 500 internal server error

2009-05-13 Thread Daniel Hilton
2009/5/13 Vincent : > > Additional information: > > I am running Django 1.0.2 and the web host I am attempting to do this > all on is Media Temple, in one of their Dedicated Virtual (DV) > accounts. I followed the general guidelines for mod_wsgi setup from > here: > >