Re: building a xenserver web client

2014-08-01 Thread Cal Leeming [Simplicity Media Ltd]
Hi Marc, Although somewhat off-topic for this list, I would say there's several people out there that aren't at all happy with OpenStack (myself included). However the requirements for creating an interface for virtualization management can very quickly become overwhelming, as there are so many

Docopt - a better arguments parser

2014-07-22 Thread Cal Leeming [Simplicity Media Ltd]
Although not strictly related to Django, I feel this library is worthy of a mention, if even that it works flawlessly with custom management commands in Django. Over the years I've personally always despised the way that argparse/optparse work, it always felt unnatural. Docopt has been around

Re: Introducing myself and my first question

2014-07-20 Thread Cal Leeming [Simplicity Media Ltd]
On Saturday, July 19, 2014, Martin Torre Castro wrote: > Hello, > > my name is Martin and I'm a computer engineer from Spain. I'm going to > start a new project with a colleague and I decided to use Django because we > searched for free opensource tools and I'm in love with

Re: idea: deploy static files on github pages CDN

2014-07-18 Thread Cal Leeming [Simplicity Media Ltd]
I'm curious, why would you put your static web app files on Github Pages? This is not just inconvenient (due to the way it works, lack of cache control etc), but is also quite a blatant abuse of their service. If you're looking for a CDN, why not just put Cloudflare in front of your sites? Cal

Re: Simple History - Field Change

2014-07-05 Thread Cal Leeming [Simplicity Media Ltd]
had actually > looked for that table but somehow missed it. > > I will pick up the broader problems with simple history separately. > > thanks for taking the time to look through this Cal. > > On Friday, 4 July 2014 18:05:43 UTC+2, Cal Leeming [Simplicity Media Ltd] > wrote: >

Re: Simple History - Field Change

2014-07-04 Thread Cal Leeming [Simplicity Media Ltd]
ecute > 69. return super(CursorDebugWrapper, self).execute(sql, > params) > File > "/home/metadata/webapps/greenhouse/lib/python2.7/django/db/backends/util.py" > in execute > 53. return self.cursor.execute(sql, params) > File "/home/m

Re: Simple History - Field Change

2014-07-04 Thread Cal Leeming [Simplicity Media Ltd]
Can you please paste the full clear text stacktrace? Cal On Fri, Jul 4, 2014 at 3:49 PM, Aaron Reabow wrote: > Hi all, > > I am getting this error on a modelform > > smallint out of range > > > > But the form is actually submitting just fine and being stored in the DB. I >

Re: Question about static file serving strategy with S3 and Cloudfront

2014-07-03 Thread Cal Leeming [Simplicity Media Ltd]
a web site as well, and we don't need the extra > deployment complexity. > > Regards, > -scott > > > On Wednesday, July 2, 2014 3:20:34 PM UTC-4, Cal Leeming [Simplicity Media > Ltd] wrote: > >> You also have to consider client side caching, despite if you use the

Re: Question about static file serving strategy with S3 and Cloudfront

2014-07-02 Thread Cal Leeming [Simplicity Media Ltd]
You also have to consider client side caching, despite if you use the correct headers or not. One option is to use a cache buster using a value which changes on each release, but I'd advise against using random() cache buster as your caching efficiency will be impacted.

Re: Chat application

2014-06-19 Thread Cal Leeming [Simplicity Media Ltd]
+1. You may even be able to do this using uWSGI plugins and Redis which would be even faster. Django is certainly not the right tool for the job for this use case though. Cal On Thu, Jun 19, 2014 at 2:24 AM, carlos wrote: > Hi, maybe not all with django, maybe you

Re: How to learn Django?

2014-06-15 Thread Cal Leeming [Simplicity Media Ltd]
One of the most important things you can do when learning anything, including Django, is to learn to use Google as much as possible. The majority of questions have already been answered by a wide audience, and most answers can be found with a simple search. Sometimes you have to be creative with

Re: Change settings.DEBUG in response to a request's source

2014-06-11 Thread Cal Leeming [Simplicity Media Ltd]
Although I can't comment on your individual use case, it's better to enable remote error collection using something like Sentry or BugSnag. Both also support integration with other languages, such as JS, which is very handy when tracking down front end problems. There are lesser alternatives such

Re: Django and Javascript

2014-06-11 Thread Cal Leeming [Simplicity Media Ltd]
ally. I'm not looking for an answer to a specific question. I'm just > looking for a "good practices manual" on writing and deploying javascript > in a django environment. > > > > El miércoles, 11 de junio de 2014 17:41:45 UTC+2, Cal Leeming [Simplicity > Media Ltd] escribió:

Re: Django and Javascript

2014-06-11 Thread Cal Leeming [Simplicity Media Ltd]
Have a look at how Stripe do it [1]. https://js.stripe.com/v2/";> Stripe.setPublishableKey('YOUR_PUBLISHABLE_KEY'); I think this is what you're asking for (if I've understood your question correctly). Cal [1] https://stripe.com/docs/stripe.js On Wed, Jun 11, 2014 at 4:22 PM, César

Re: Using Sass and Sass Libraries with Django-Pipeline

2014-05-23 Thread Cal Leeming [Simplicity Media Ltd]
] instead.) > > Thanks for the help, > > Wellington > > > On Thursday, May 22, 2014 8:08:42 AM UTC-6, Cal Leeming [Simplicity Media > Ltd] wrote: > >> Hi Willy, >> >> Do you have Bourbon installed in your static folder? If not, you'll need >> to install the bou

Re: Using Sass and Sass Libraries with Django-Pipeline

2014-05-22 Thread Cal Leeming [Simplicity Media Ltd]
Hi Willy, Do you have Bourbon installed in your static folder? If not, you'll need to install the bourbon/compass/sass node packages (see below), or you can download a precompiled dist from the source of each, for example see [1]. If you go down the node packages route, be aware, not even the

Re: django-php - yeah, it happened.

2014-02-28 Thread Cal Leeming [Simplicity Media Ltd]
The post was actually meant to be humorous, albeit dry :) But if it makes you any happier, I'd have been just as sad if it was django-java, django-rails, django-ruby or django-insert-whatever-language-you-want-here. On a serious thought, my opposition isn't against PHP, despite my disliking for

django-php - yeah, it happened.

2014-02-27 Thread Cal Leeming [Simplicity Media Ltd]
Clearly this should be considered for merge into the core; https://github.com/mvasilkov/django-php The really sad part: someone somewhere *will* use this in production, and be totally srs about it. Excuse me whilst I cry myself to sleep. Cal -- You received this message because you are

Re: django application hosted on godaddy don't display the site models in admin page

2014-02-13 Thread Cal Leeming [Simplicity Media Ltd]
Glad you got it sorted out, and thanks for letting us know! Cal On Thu, Feb 13, 2014 at 10:26 AM, Mironiuc Sergiu wrote: > I found the problem. > I had an "extra" (non-necessary) folder admin, that should be in the > static folder and not dirrectly in the project folder. >

Re: Using Django User Authentication from an Android App (CSRF issue?)

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
s, > which is what I originally wanted to do. > Doh sorry, I had a bit of a slow moment there! > > I will look in to all the options in the links posted and get back to you > with how it goes, thanks very much. > > On Wednesday, 12 February 2014 15:25:09 UTC, Cal

Re: Using Django User Authentication from an Android App (CSRF issue?)

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
On Wed, Feb 12, 2014 at 3:17 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hi Ethan, comments in-line; > > > On Wed, Feb 12, 2014 at 1:41 PM, Ethan Lowry <ethanma...@gmail.com> wrote: > >> Hi there, >> >>

Re: Something like booktype

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
Could you clarify your question? If you're asking "are there are alternatives to django booktype?" - I've had a quick look on Google and didn't find any immediate matches, but others may know. Cal On Wed, Feb 12, 2014 at 1:15 PM, AlSayed Gamal wrote: > Dears, > > I

Re: Using Django User Authentication from an Android App (CSRF issue?)

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
Hi Ethan, comments in-line; On Wed, Feb 12, 2014 at 1:41 PM, Ethan Lowry wrote: > Hi there, > > I have a bare-bones Django app set up and am planning on using the built > in Django user auth to manage log in and registration via the Android app > I'm developing. > > I've

Re: django application hosted on godaddy don't display the site models in admin page

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
Can you give us a bit more info about what is happening? Do you have any error logs or stacktrace? Also the urls.py code is malformed, you might want to consider using pastebin to paste the code instead. Cal On Wed, Feb 12, 2014 at 2:08 PM, Mironiuc Sergiu wrote: > > I

Re: [JOB] $1,500 referral reward - Know anyone for Lead Python / Django Developer opening?

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
propose that emails like this also cc the original poster, this way > there's a better chance he will hear the suggestions. > > > On Wed, Feb 12, 2014 at 12:19 AM, Cal Leeming [Simplicity Media Ltd] < > cal.leem...@simplicitymedialtd.co.uk> wrote: > >> Hi Marsh, >> >&

Re: [JOB] $1,500 referral reward - Know anyone for Lead Python / Django Developer opening?

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
As per usual, I think you're missing the point here Tom. Cal On Wed, Feb 12, 2014 at 9:55 AM, Tom Evans <tevans...@googlemail.com> wrote: > On Tue, Feb 11, 2014 at 10:19 PM, Cal Leeming [Simplicity Media Ltd] > <cal.leem...@simplicitymedialtd.co.uk> wrote: > > Hi Marsh

Re: [JOB] $1,500 referral reward - Know anyone for Lead Python / Django Developer opening?

2014-02-11 Thread Cal Leeming [Simplicity Media Ltd]
Hi Marsh, Could you have a read of this thread; https://groups.google.com/forum/#!msg/django-users/q64B4chm1ho/cCp_Xvxu41oJ It has some tips/advice on what to put into a job description, it helps keep the list free of recruiter spam and will ultimately result in better responses for you too :)

Re: Python / Django Web Applications Developer - Michigan $90-$100/hr

2014-02-10 Thread Cal Leeming [Simplicity Media Ltd]
ristle Software, Inc -- http://bristle.com -- Glad to be of service! > Open Source: Without walls and fences, we need no Windows or Gates. > -- > > On 2/10/14 3:41 PM, Cal Leeming [Simplicity Media Ltd] wrote: > > Leigh, > > As mentioned before, post

Re: Python / Django Web Applications Developer - Michigan $90-$100/hr

2014-02-10 Thread Cal Leeming [Simplicity Media Ltd]
Leigh, As mentioned before, posting jobs is allowed (and welcomed!), but repetitive posts of the same job with little to no specification, isn't really suitable. Can you please avoid this in future, otherwise the list will be abused by recruiters everywhere. Thank you Cal On Mon, Feb 10,

Re: RPython / Django Web Applications Developer - Michigan $90-$100/hr

2014-01-30 Thread Cal Leeming [Simplicity Media Ltd]
Hi Leigh, Not sure if this was double posted in error, but if not, can you avoid double posting in future please? You can always bump the previous thread :) Cal On Thu, Jan 30, 2014 at 8:51 PM, Leigh Haugen wrote: > Great opportunity on a Cloud Development team for

Re: Do you think Django's future is threatened by JS frameworks in both client & server?

2014-01-28 Thread Cal Leeming [Simplicity Media Ltd]
. > > The point is: there's an enormous explosion of new tools around, plus > serious improvements in old favourites. Devs who know what's good for them > will use the correct tool for the job at hand; the cognitive convenience of > working in one language only is a part of that deci

Re: Do you think Django's future is threatened by JS frameworks in both client & server?

2014-01-28 Thread Cal Leeming [Simplicity Media Ltd]
It makes for an interesting debate and food for thought. Python has a lot of libraries and user contributions which can speed up development, but like every language, has it's good sides and bad sides. Django holds a strong position, libraries such as south, pipeline, mongoengine, uWSGI and the

Re: Hi All, I am looking for a Python / Django Developer to join my digital agency client in central London! Immediate interview - Permanent position - The Digital Recruitment Firm

2014-01-23 Thread Cal Leeming [Simplicity Media Ltd]
Gareth, You might get a better response if you put more details about the position you are offering. Considering the phrase "digital agency" is about as over-used as the word cloud, this email is little more than useless spam in it's current format. Tell people what you have to offer, and why

Re: ViewDoesNotExist at /admin/

2013-12-27 Thread Cal Leeming [Simplicity Media Ltd]
Hello, Perhaps try installing a completely new/fresh dev environment in a vmware/virtualbox instance, and attempt to get it working from there, that will at least help you narrow this problem down locally instead of poking around at production. Also try and make sure you install the same

Re: Good news for Django devs - labbler.com code has been released to public

2013-12-26 Thread Cal Leeming [Simplicity Media Ltd]
I wish I knew what it was, but it's all in Russian.. :/ Cal On Thu, Dec 26, 2013 at 10:24 PM, Alexander Grytsenko < alexander.grytse...@dev-pro.net> wrote: > As an example of successful commercial product built on top of Django > framework: https://github.com/agrytsenko/labbler > > -- > You

Re: I'm looking for a Part-Time (4h/day) Django job - remote only

2013-11-21 Thread Cal Leeming [Simplicity Media Ltd]
I'll be very surprised if you get any offers from this post in its current format, you might get a better response if you post more information about yourself. For example; * Blog (if you have one) * Linkedin profile * Github profile * Your real name Hope this helps Cal On Thu, Nov 21, 2013

Re: ABOUT DJANGO

2013-11-09 Thread Cal Leeming [Simplicity Media Ltd]
Hugar, Perhaps you could review the following; https://wiki.python.org/moin/BeginnersGuide/Download https://docs.djangoproject.com/en/dev/topics/install/ http://www.youtube.com/watch?v=rIVwVOpwpsA I found these by searching in Google for "how to install django" and "how to install python".

Re: Recommended dev environment for a Django project deployed to Linode

2013-09-25 Thread Cal Leeming [Simplicity Media Ltd]
+1 for virtualenvwrapper, don't know how I survived without this!! Cal On Wed, Sep 25, 2013 at 9:59 PM, Roberto López López wrote: > > Check virtualenvwrapper > > http://virtualenvwrapper.readthedocs.org/en/latest/ > > > > > On 09/25/2013 08:06 PM, Jorge Arevalo wrote: >

Re: Exception Value: global name 'dictfetchall2' is not defined

2013-09-08 Thread Cal Leeming [Simplicity Media Ltd]
Manager instance as > first argument (got CursorDebugWrapper instance instead) > > > > > > > > On Sunday, September 8, 2013 9:54:36 PM UTC+2, Cal Leeming [Simplicity > Media Ltd] wrote: > >> Try and replace >> row = dictfetchall2(cursor) >> >> Wi

Re: Exception Value: global name 'dictfetchall2' is not defined

2013-09-08 Thread Cal Leeming [Simplicity Media Ltd]
Try and replace row = dictfetchall2(cursor) With this row = AltwordManager.dictfetchall2(cursor) Cal On Sun, Sep 8, 2013 at 8:23 PM, Pepsodent Cola wrote: > I don't understand how to fix this error message? Here is the code that > made things break. > > Exception

Tech start up looking for a Python/Django rockstar - £300/day - fast start

2013-08-20 Thread Cal Leeming [Simplicity Media Ltd]
Hello all, One of our tech startup clients in London is currently looking for an experienced Python/Django rockstar. The position is full time, salary is £300/day, working remotely or on-site, shares are also being considered for those who can bring exceptional talent/experience. Currently in

Re: Learning how to build a web site for my python games and a blog

2013-07-31 Thread Cal Leeming [Simplicity Media Ltd]
Try this; http://learnpythonthehardway.org/book/next.html http://gettingstartedwithdjango.com/ Cal On Tue, Jul 30, 2013 at 3:07 PM, Randy Baxley wrote: > I am trying to learn Django. I have a good base in Python having worked > several basic MOOCs and second level

Re: What are the steps to build a website?

2013-03-25 Thread Cal Leeming [Simplicity Media Ltd]
is such a successful framework is largely due to the community behind it, both in users and developers contributions. Cal On Mon, Mar 25, 2013 at 2:28 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hi Benjamin, > > Some others have already made some good

Re: What are the steps to build a website?

2013-03-25 Thread Cal Leeming [Simplicity Media Ltd]
Hi Benjamin, Some others have already made some good suggestions, so I'll throw some general comments in. Tim made a good suggestion of 2scoops, you could also try; http://learnpythonthehardway.org/book/ http://www.djangobook.com/en/2.0/index.html In my own personal opinion, I think you would

Re: An alternate cry for help

2013-03-24 Thread Cal Leeming [Simplicity Media Ltd]
Hi Christos, I cannot comment directly on Pinax as I have never used it before, however I can give some general comments. Asking how to make a social network is the same as asking how to make a game, how to build a car, how to write a book etc.. it *completely* depends on what your end goal is,

Re: Bulk delete - performance / object collection

2013-01-02 Thread Cal Leeming [Simplicity Media Ltd]
That's an interesting perspective actually.. "Don't be a slave of your mind (or ORM)" Cal On Wed, Jan 2, 2013 at 12:01 PM, Larry Martell wrote: > On Wed, Jan 2, 2013 at 4:29 AM, George Lund wrote: > > I'm trying to bulk-delete several million rows

Re: Bulk delete - performance / object collection

2013-01-02 Thread Cal Leeming [Simplicity Media Ltd]
Hi George, This is one area I spent quite a lot of time in personally, see; https://groups.google.com/forum/?fromgroups=#!msg/django-users/iRhWD0FtW8k/0KAMF3ub-ZYJ https://groups.google.com/forum/#!topic/django-users/hgLrwMoFLII Bulk operations using the ORM isn't always the right thing to do -

Re: Django community, is it active?

2012-12-19 Thread Cal Leeming [Simplicity Media Ltd]
f tapped into twitter > and follow some of the core devs and other python/django folks. > > Also, a tip - I'd stay well away from the free bear. > Might look cute at first, but man, those things can get vicious. > The free beer however, does come recommended. > > Cheers, > &g

Re: Django community, is it active?

2012-12-19 Thread Cal Leeming [Simplicity Media Ltd]
Sorry, slightly misworded! Don't /just/ drink the free bear, help out as well. Cal On Wed, Dec 19, 2012 at 3:02 AM, Chris Cogdon <ch...@cogdon.org> wrote: > But I _want_ to drink the free bear. > > On Tuesday, December 18, 2012 3:19:59 PM UTC-8, Cal Leeming [Simplicity >

Re: Django community, is it active?

2012-12-18 Thread Cal Leeming [Simplicity Media Ltd]
Hi Sparky, I've personally been using Django for approximately 3 years now - so I'll offer you my own opinion. In some ways, it is the most beautiful/perfect framework currently available.. and in other ways, it leaves a sense of disappointment and frustration. * Community - possibly one of the

Re: Reason for not allowing spaces in usernames?

2012-11-18 Thread Cal Leeming [Simplicity Media Ltd]
(imo) Allowing spaces in username just isn't a very sane approach. Rather than telling the user to choose a username, why not make them login with their email address instead? Users are less likely to forget their email address, and if anything, it would be less error prone than a username would,

Re: index_together...shouldn't indexes be created AFTER populating the table?

2012-11-18 Thread Cal Leeming [Simplicity Media Ltd]
Hello Chris, You are correct that creating indexes AFTER importing data is generally the fastest approach, but there is currently no automated tool that will do this all for you. I actually did a blog post about this not so long ago, and it goes into some detail;

Re: Scaling django (nginx + apache + mod_wsgi + postgresql)

2012-10-30 Thread Cal Leeming [Simplicity Media Ltd]
Just to chime in on this.. In terms of commercial options, we have sometimes gone with ZXTM (now known as StingRay Traffic Manager) , it has some truly amazing features and you should definitely check it out. I believe that RiverBed have since started issuing free commercial licences for up to a

Re: Scaling django (nginx + apache + mod_wsgi + postgresql)

2012-10-29 Thread Cal Leeming [Simplicity Media Ltd]
Hi Isaac, If there is one thing I have learnt about scaling apps, it's about trying things out for yourself. Sure there are some best practice guidelines (i.e. serving files from nginx, or using apache's X-SendFile rather than streaming out via the webapp), but if someone comes along and tells

Re: Best practices for open sourcing a Django project?

2012-10-14 Thread Cal Leeming [Simplicity Media Ltd]
re saying that the open sourced project should be > different from the production project. Am I reading that right? > > > On Sunday, October 14, 2012 4:00:03 PM UTC-4, Cal Leeming [Simplicity > Media Ltd] wrote: > >> You could just include the necessary info in the README, or m

Re: Best practices for open sourcing a Django project?

2012-10-14 Thread Cal Leeming [Simplicity Media Ltd]
You could just include the necessary info in the README, or make a wrapper script that does it for them - although I tend to stick with READMEs where possible as they consume less time. If the code is coming straight out of production, there's a few tips I'd recommended; * Ensure that you test

Re: Django MPTT - breadcrumb in view function

2012-10-13 Thread Cal Leeming [Simplicity Media Ltd]
Hi, Personally, I tend to keep the breadcrumb logic completely separate from any custom code logic. Instead, I have something like this: context['breadcrumb'] = ['menu1', 'sub menu 2', 'sub sub menu 3'] And then in the templates, you'd have something like; {% if x.0 == 'menu1' %}

Re: perfectionists... motto doesn't fit

2012-10-12 Thread Cal Leeming [Simplicity Media Ltd]
On Fri, Oct 12, 2012 at 1:55 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > On Fri, Oct 12, 2012 at 7:47 PM, Cal Leeming [Simplicity Media Ltd] > <cal.leem...@simplicitymedialtd.co.uk> wrote: > > > > > > On Fri, Oct 12, 2012 at 3:33 AM, Ru

Re: perfectionists... motto doesn't fit

2012-10-12 Thread Cal Leeming [Simplicity Media Ltd]
On Fri, Oct 12, 2012 at 3:33 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > On Fri, Oct 12, 2012 at 9:00 AM, Cal Leeming [Simplicity Media Ltd] > <cal.leem...@simplicitymedialtd.co.uk> wrote: > > Lets say you if you were given 1 day to build a shed.. >

Re: perfectionists... motto doesn't fit

2012-10-11 Thread Cal Leeming [Simplicity Media Ltd]
Lets say you if you were given 1 day to build a shed.. PHP = build your own hammer/screwdriver from scratch, and then use those to build your shed - all within the same timeframe PHP with Zend Framework = the equivalent of trying to build your shed with your childs "early learning toolset", using

Re: Drop down menu

2012-10-09 Thread Cal Leeming [Simplicity Media Ltd]
Looks like someone already asked this question (and got an answer); https://groups.google.com/forum/?fromgroups=#!topic/django-users/ef-Yedt_0uo Here is a good place to start learning about forms - plenty of examples etc; https://docs.djangoproject.com/en/dev/ref/forms/api/ Hope this helps!

Re: Django Internal Server Error

2012-10-08 Thread Cal Leeming [Simplicity Media Ltd]
edits" or "license" for more information. >>> import django >>> print django.VERSION (1, 4, 0, 'final', 0) >>> from django.core.wsgi import get_wsgi_application >>> Cal On Mon, Oct 8, 2012 at 11:40 AM, Cal Leeming [Simplicity Media Ltd] <

Re: Django Internal Server Error

2012-10-08 Thread Cal Leeming [Simplicity Media Ltd]
It's possible your django version installed is either not compatible with the project you are using - or the installation may be corrupted somehow. Personally, I've never encountered this problem before using WSGI (normally it *just works*). A quick search on Google shows this;

Re: Intensive View Tracking

2012-10-07 Thread Cal Leeming [Simplicity Media Ltd]
Hey JD, You might want to check this out; https://github.com/foxx/django-cutemodel It's not completely ready yet though and is missing a lot of features (see issues list) - but sounds pretty close to what you need. Although what it doesn't have is the ability to link audit items together (i.e.

Re: Migrating a Django project to new platform

2012-10-03 Thread Cal Leeming [Simplicity Media Ltd]
The paste you gave us is python 2.4, very old! My guess is that your old server is 2.4, and your new one is 2.6/2.7 - or the other way around - that would explain the weirdness. On your new/old server, paste us the result of just typing 'python' on its own. Cal On Wed, Oct 3, 2012 at 4:31 PM,

Re: Migrating a Django project to new platform

2012-10-03 Thread Cal Leeming [Simplicity Media Ltd]
That's strange, sorl-thumbnail didn't seem to resolve your problem. First thing I'd do is identify the line of code that is causing this import problem (do a search for 'sorl' in your code base). From there, identify some of the function names being called on sorl in your application, and add

Re: Invalidating active sessions after a password change?

2012-10-03 Thread Cal Leeming [Simplicity Media Ltd]
for you. Hope this helps! Cal On Wed, Oct 3, 2012 at 9:40 AM, Tom Evans <tevans...@googlemail.com> wrote: > On Tue, Oct 2, 2012 at 7:50 PM, Cal Leeming [Simplicity Media Ltd] > <cal.leem...@simplicitymedialtd.co.uk> wrote: > > On Tue, Oct 2, 2012 at 5:23 PM, Tom Evans &

Re: Python-requests seems to 404 with Django/Tasty-pie?

2012-10-02 Thread Cal Leeming [Simplicity Media Ltd]
seem to respect that? > > Cheers, > Victor > > > On Tuesday, 2 October 2012 22:48:26 UTC+10, Cal Leeming [Simplicity Media > Ltd] wrote: > >> Hi Victor, >> >> I've had my fair share of exposure with python requests - so thought I'd >> chime in. >&g

Re: Invalidating active sessions after a password change?

2012-10-02 Thread Cal Leeming [Simplicity Media Ltd]
On Tue, Oct 2, 2012 at 9:45 PM, Dennis Lee Bieber wrote: > On Tue, 2 Oct 2012 17:23:01 +0100, Tom Evans > declaimed the following in gmane.comp.python.django.user: > > > > > I did not say that it was not a desired feature, I said that > >

Re: Invalidating active sessions after a password change?

2012-10-02 Thread Cal Leeming [Simplicity Media Ltd]
On Tue, Oct 2, 2012 at 5:23 PM, Tom Evans <tevans...@googlemail.com> wrote: > On Tue, Oct 2, 2012 at 4:43 PM, Cal Leeming [Simplicity Media Ltd] > <cal.leem...@simplicitymedialtd.co.uk> wrote: > > > > > > On Tue, Oct 2, 2012 at 3:51 PM, Tom Evan

Re: Invalidating active sessions after a password change?

2012-10-02 Thread Cal Leeming [Simplicity Media Ltd]
invalidate all my other sessions, but perhaps a lay user would. Google Mail in-line reply seems to be a bit fudged the last few days... :X Cal On Tue, Oct 2, 2012 at 4:43 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > > > On Tue, Oct 2, 2012

Re: Invalidating active sessions after a password change?

2012-10-02 Thread Cal Leeming [Simplicity Media Ltd]
On Tue, Oct 2, 2012 at 3:51 PM, Tom Evans wrote: > On Tue, Oct 2, 2012 at 3:22 PM, Dirley wrote: > > I've recently discovered this issue with my django based application. > > > > When a users changes its password, its active sessions are not

Re: Python-requests seems to 404 with Django/Tasty-pie?

2012-10-02 Thread Cal Leeming [Simplicity Media Ltd]
Hi Victor, I've had my fair share of exposure with python requests - so thought I'd chime in. On first glance, this looks to be an issue with specifying the port number into python-requests, doing so seems to send the entire " http://localhost:8000/api/v1/host/?name__regex==json; as the request.

Re: Tools - Slow in python django fw

2012-10-01 Thread Cal Leeming [Simplicity Media Ltd]
Yeah, you're going to need to give us much more information than that. Here is a great link to show the kind of information you'd need to give; https://code.djangoproject.com/wiki/UsingTheMailingList Once you've sent more information, I'm sure someone will be able to help :) Cal On Mon, Oct

Re: Alternatives to CBVs (class based views)

2012-09-19 Thread Cal Leeming [Simplicity Media Ltd]
, 2012 at 12:45 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > On Tue, Sep 18, 2012 at 7:24 PM, Cal Leeming [Simplicity Media Ltd] > <cal.leem...@simplicitymedialtd.co.uk> wrote: > > Russell, > > > > On a separate note, I am curious about these 'copy-on-

Re: Alternatives to CBVs (class based views)

2012-09-18 Thread Cal Leeming [Simplicity Media Ltd]
this copy-on-call behaviour is quite unexpected, no? Cal On Fri, Sep 14, 2012 at 10:16 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > > > On Fri, Sep 14, 2012 at 12:12 AM, Russell Keith-Magee < > russ...@keith-magee.com> wrote: >

Re: Alternatives to CBVs (class based views)

2012-09-14 Thread Cal Leeming [Simplicity Media Ltd]
On Fri, Sep 14, 2012 at 12:12 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > On Thu, Sep 13, 2012 at 12:58 AM, Cal Leeming [Simplicity Media Ltd] > <cal.leem...@simplicitymedialtd.co.uk> wrote: > > Hi all, > > > > There is a lot of deba

Re: tree.io installation with django

2012-09-13 Thread Cal Leeming [Simplicity Media Ltd]
6:23 2012] [error] [client 109.193.24.24] >> ^ >> [Wed Sep 12 20:46:23 2012] [error] [client 109.193.24.24] SyntaxError: >> invalid syntax > > > I really urgently have to set up this system :( > Would be great if I can accompli

Re: Request for comments - django-cutemodel (model logging and field change auditing)

2012-09-13 Thread Cal Leeming [Simplicity Media Ltd]
osing the revision object would give the user enough control) > > Cheers, > Derek > > > On Tuesday, 11 September 2012 21:11:06 UTC+2, Cal Leeming [Simplicity > Media Ltd] wrote: > >> Thanks for letting me know about django-reversion, it has made for >> interesting

Re: Alternatives to CBVs (class based views)

2012-09-13 Thread Cal Leeming [Simplicity Media Ltd]
Ah, thanks for letting me know - the original snippet by eallik had support for this, but I must have stripped it out not realising. On Thu, Sep 13, 2012 at 1:34 AM, Matt Schinckel wrote: > One really small nitpick: when returning a 405, it is a requirement that > you return

Re: Possible spam from mailing list? ("China Mobile")

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
+1 just received one of these. On Wed, Sep 12, 2012 at 10:18 PM, Nikolas Stevenson-Molnar < nik.mol...@consbio.org> wrote: > Looking at Google's translation of the text, I would guess it's informing > you that you need to be on that user's whitelist: "You send is not > activated 139 mailbox

Re: Alternatives to CBVs (class based views)

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
On Wed, Sep 12, 2012 at 7:44 PM, Javier Guerra Giraldez <jav...@guerrag.com>wrote: > On Wed, Sep 12, 2012 at 11:58 AM, Cal Leeming [Simplicity Media Ltd] > <cal.leem...@simplicitymedialtd.co.uk> wrote: > > So, here is a really minimalistic way of having class based views

Re: Syncdb is producing different databases on different machines.

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
me', > 'USER': 'my admin name', > 'HOST': 'localhost', > 'PASSWORD' : 'my password' > > } > } > > On Wednesday, September 12, 2012 11:02:10 AM UTC-6, Cal Leeming > [Simplicity Media Ltd] wrote: > >> Are you using any sort of custom db

Re: Syncdb is producing different databases on different machines.

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
Are you using any sort of custom db router? (look for DATABASE_ROUTERS in settings). On Wed, Sep 12, 2012 at 5:05 PM, Brian McKeever wrote: > On my development machine, upon freshly creating my postgresql database, > when I run syncdb, it creates two invitation tables - >

Alternatives to CBVs (class based views)

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
Hi all, There is a lot of debate on whether there is a real future for the Django CBVs (class based views). Personally, I find them tedious, and just wanted a way to keep my views clean. So, here is a really minimalistic way of having class based views, without the fuss.

Re: Django-admin (was: tastypie - some feedback / comments)

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
This is just my own opinion but, I can't ever see django-admin going much further than it is now - for much the same reasons as mentioned on the tastypie thread, nor have I come across any alternatives (yet) - although it'd be interesting to hear others thoughts on this. For me the thing I've

Re: Newbie Project Setup and Terminology Questions

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
Be aware, the below structure works perfectly for us because of trial and error from years of development, it suits the particular style/nature of our projects, and it has been made standardized across the board. I wouldn't recommend using the above, instead, I would recommend looking around for

Re: sending data with HttpResponseRedirect

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
Actually, just seen that flash hasn't been maintained, and my own personal usage of it was touch and go at best These days, I also tend to use the approach of storing a message in the session instead (as explained by Jirka). Cal On Wed, Sep 12, 2012 at 2:35 PM, Jirka Vejrazka

Re: sending data with HttpResponseRedirect

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
Hey, You might find this helpful; https://github.com/danielfm/django-flash Cal On Wed, Sep 12, 2012 at 5:19 AM, Simon Cossar wrote: > Hi All, I'm just starting to play around with Django... working through > the tutorial and the Django Book. I have just written a view

tastypie - some feedback / comments

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
Hi all, For the last two years whenever an API has been required for a project, we have just used our own API wrapper that consists of about 50 lines, then added in the bits we needed as we go along. So today, I decided to spread my wings a little and give TastyPie a try... here is a bit of

Re: Django newbie with issues

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
"' % (mw_module, e) > > ImproperlyConfigured: Error importing middleware django.middleware.common: > "cannot import name force_text" > > > > On Tuesday, September 11, 2012 11:45:17 AM UTC+1, Cal Leeming [Simplicity > Media Ltd] wrote: > >> Ouch, 1.1 is ve

Re: tree.io installation with django

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
paste.immersight.de/?ae7fe7fa64cd2dbe#TPSfs+1BwLYpqWH0ih/ZBleZ/A8bre5Xwvwafys+gj4= > Shall I add now STATICFILES_DIRS = ( "../static") ? > > Am Dienstag, 11. September 2012 12:41:16 UTC+2 schrieb Cal Leeming > [Simplicity Media Ltd]: >> >> Looks like an incompati

Re: Override save or other options?

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
Curious, we had to do a similar thing for billing periods on our VoIP system a while back. We ended up using dateutil, here's a bit of a code dump. This was all triggered from populate_billing_periods() which was called at the point of processing billing info (which happens every 24 hours)

Re: Marketplace for Django apps

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
OP - you could always just set a marketplace up, try and get a few big names to jump in with you, and see if people follow - if anything it'd make for a cool little lunch time project for you! :) On Tue, Sep 11, 2012 at 10:20 PM, Thomas Orozco wrote: > You could always use

Re: Iphone applications via django

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
> connecting the web API's with iphone. > > Do you suggest JSON or XML ? > > > On Tuesday, September 11, 2012 4:09:35 PM UTC+5:30, Cal Leeming > [Simplicity Media Ltd] wrote: > >> You can create a server side API for the app - but the actual interface >> is done

Re: Django newbie with issues

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
+1 on virtualenv - I only just started using it about 3 months ago.. don't know how the hell I survived without it for so long! On Tue, Sep 11, 2012 at 2:59 PM, Thomas Lockhart wrote: > On 9/11/12 6:29 AM, Morrti wrote: > >> Hi, >> >> We did try things with v1.5, but

Re: Request for comments - django-cutemodel (model logging and field change auditing)

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
ch variable. > > I will check out cutemodel for sure and let you know. > > Thanks, > > JD > > > On Tuesday, September 11, 2012 3:46:54 AM UTC-6, Cal Leeming [Simplicity > Media Ltd] wrote: >> >> >> >> On Mon, Sep 10, 2012 at 11:07 PM, Kurt Pru

Re: Plot points from a kml file in django

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
Need a bit more info than that for anyone to help you. Please tell us exactly what information you have, what you are trying to achieve, and where you are getting stuck. Cal On Tue, Sep 11, 2012 at 1:49 PM, Coulson Thabo Kgathi wrote: > I googled, went through the geodjango

Re: Marketplace for Django apps

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
-1 It's not the cost that I'm concerned with, it's the community motivation that worries me. If we have a paid app store, we will not only end up with every tom/dick/harry submitting crappy apps (just like every other store), but it also changes the motivation of the community to be commercially

Re: Django newbie with issues

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
Ouch, 1.1 is very old indeed. I have seen compatibility issues before when running django/py apps on a mac, but can't say I've ever ran into this before. Could you upgrade to the latest (1.4.1) and see if you still experience the same issue? Cal On Tue, Sep 11, 2012 at 11:03 AM, Morrti

  1   2   3   4   5   6   7   >