Re: Steadman

2016-01-06 Thread Jon Atkinson
I've alerted Mark off-list. --Jon On Wed, Jan 6, 2016 at 1:02 PM, Avraham Serour wrote: > virus people, don't click the link > > On Wed, Jan 6, 2016 at 2:29 PM, Steadman wrote: > >> Please find the attached document referred to the mail subject. >> >> Steadman.io >> Blog <

Looking for Django developers in the UK

2014-07-23 Thread Jon Atkinson
ound Manchester, and want a chat, get in touch with me off-list and I'll buy you lunch :-) --Jon -- [image: FARM Digital Logo] *Jon Atkinson* | Technical Director | FARM Digital Limited Studio: 24/26 Lever Street, Manchester, M1 1DZ HQ: Crown House, High Street, Hartley Wintney, Hampshire,

Django Developers wanted, junior and senior. Remote welcome, European timezones.

2013-11-27 Thread Jon Atkinson
Hi, I’m Technical Director at FARM Digital. We’re a digital agency based in the UK. We’re currently looking for Django developers, both junior and senior. There are two job descriptions on our website, available at: Senior Developer - http://farmd.co.uk/1bhm1Cn Junior Developer - http://farm

Djangoweek.ly, a Django weekly newsletter

2010-12-21 Thread Jon Atkinson
Hello, I just wanted to drop a quick note to promote Django Weekly, a new weekly Django newsletter which I'm putting together. I'm looking to send the first issue around the 1st of January. Hopefully this will be of interest to some of the members of this list. http://djangoweek.ly/ Cheers, --J

Django job in Manchester, UK

2009-08-10 Thread Jon Atkinson
Hello, We're a 70% Django, 30% PHP shop in Manchester, in the UK. We're looking to recruit a Django developer in the near future. This might be of interest to some people on this list. Job description and application information: http://bit.ly/qlguI Cheers, --Jon --~--~-~--~~

Re: Can i add initial admin user?

2009-08-01 Thread Jon Atkinson
On Sat, Aug 1, 2009 at 10:38 AM, Mirat Can Bayrak wrote: > > i am playing a lot with my models in my project nowadays. On every change i > am deleting my > sqlite3 file and running syncdb again.. You don't need to delete your entire database; it might be worth checking out the management command

Re: Emacs/yasnippet bundle for Django 1.0

2009-04-16 Thread Jon Atkinson
Hello, > http://github.com/jonatkinson/yasnippet-djangotree/master Somehow I managed to make a typo :-) The correct link to the github page is: http://github.com/jonatkinson/yasnippet-django/tree/master Cheers, --Jon --~--~-~--~~~---~--~~ You received this mes

Emacs/yasnippet bundle for Django 1.0

2009-04-16 Thread Jon Atkinson
Hello, I've been wanting a better set of Django snippets to use with yasnippet/Emacs for quite a while. I was at a bit of a loose end yesterday, so I decided to do something about this :-) I've based this set of snippets on Brian Kerr's excellent set of Django 1.0 snippets for Textmate[1]. They'v

Re: SuspiciousOperation exception on ImageField upload

2008-08-19 Thread Jon Atkinson
Marty, That was the problem, thank you for you help. --Jon On Tue, Aug 19, 2008 at 2:13 PM, Marty Alchin <[EMAIL PROTECTED]> wrote: > > On Tue, Aug 19, 2008 at 8:47 AM, Jon Atkinson <[EMAIL PROTECTED]> wrote: >> I'm trying to work with a model which accepts

SuspiciousOperation exception on ImageField upload

2008-08-19 Thread Jon Atkinson
Hello, I'm trying to work with a model which accepts a logo image upload via an ImageField. My a cut down version of my model is below: class Promoter(models.Model): name = models.CharField(max_length=100) logo = models.ImageField(upload_to="/images/promoters/%Y/%m/%d/") When I

Re: superuser has no rights with newforms admin

2008-07-20 Thread Jon Atkinson
> You can't really be using trunk 7951 -- that's from before newforms-admin > merge which was 7967?? Try updating to latest trunk? So I feel slightly ... foolish :-) --Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: superuser has no rights with newforms admin

2008-07-20 Thread Jon Atkinson
> Does that mean it works for you as well if you update to latest? I only > knew nfa was not part of trunk at that point because I looked it up after > trying reverting to 7951 to test your environment. I found the > autodiscover() caused an exception because it didn't exist...so if you were > r

Re: superuser has no rights with newforms admin

2008-07-20 Thread Jon Atkinson
> It sounds like your admin.py file has already been imported by something > else before the autodiscover() is called. Did you add an import of your > app's admin into your models.py? That shouldn't be necessary. Also make sure > you don't have an import for it in your __init__.py file; that was

Re: superuser has no rights with newforms admin

2008-07-20 Thread Jon Atkinson
>> > > I'm installing it from SVN and got "You don't have permission to edit >> > > anything", I made it work before, but now when I try to follow the >> > > book can't. Could you tell me what should I add to have full >> > > permissions? >> >> > I have no idea what is going on in cases where peop

Re: superuser has no rights with newforms admin

2008-07-20 Thread Jon Atkinson
On Sun, Jul 20, 2008 at 2:01 AM, stryderjzw <[EMAIL PROTECTED]> wrote: > > Strange, I'm getting the message "You don't have permission to edit > anything." on the admin homepage. I've done admin.autodiscover() on > the project urls page, I've created admin.py files for my models and > registered t

Re: superuser has no rights with newforms admin

2008-07-19 Thread Jon Atkinson
> Figured out what went wrong. You now have to register your models > with the admin app, which will give you access. > > If anyone else that is completely awful at Django is running into the > same problem let me know and I'll go in to more depth. Could you let me know what you did to fix this?

Re: Django hosting website

2008-03-25 Thread Jon Atkinson
I offer Django hosting (dedicated, not shared), via my company, Mampi Hosting. http://mampi.co.uk/django/ Email me off-list if you're interested. --Jon On Tue, Mar 25, 2008 at 10:05 AM, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > After being using VPS based hosting for a while, I have found

Re: Django hosting service running Os C

2008-02-21 Thread Jon Atkinson
If it's for school project, and you just need to demo it, why not host it on your own machine and use one of the free dynamic DNS services and host it on the development machine? --Jon > > On Feb 17, 2008 3:12 PM, Flavio Curella <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > > I

RSS escaping, {{ autoescape }} and |safe

2008-02-02 Thread Jon Atkinson
My blog uses some very simple Django apps, and applications in contrib for most of the features, including django.contrib.syndication.feeds. I've recently noticed that my RSS isn't being properly escaped (see http://jonatkinson.co.uk/feeds/blog/), so I thought that simply wrapping my RSS blog_des

Re: Heads-down transaction-processing apps on Django

2008-02-02 Thread Jon Atkinson
> >> - Data entry people use lots of F-keys, Ctrl-keys and Alt-keys to make > >> things happen on the screen. > > > > Not quite as much flexibility here. HTML defines accelerator > > keys which are browser-specific (sometimes Alt+letter, sometimes > > control+letter, or other combos). > > This is

Re: Experimental port of Django to Java

2008-01-04 Thread Jon Atkinson
On 1/4/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > For some unknown reason I have created a Java port of parts of > Django, I'd love to know a little more about *why* you did this. Are you tied to Java as a platform? I think it's an impressive achievement, but are you so stuck with Java

Re: Permissions and user.has_perm

2007-11-22 Thread Jon Atkinson
> What's your app_label (usually the lowercase name of the app whose > models.py contains your Person class")? > > The has_perm method should be called with .add_person > and not with .add_person Thank you for that - I can't believe I didn't try that myself :-) --Jon --~--~-~--~~---

Re: Python for Leopard Users. Built-in or compiled?

2007-11-21 Thread Jon Atkinson
I'm using the included Python. In past versions of OSX, I used to download and compile from MacPorts, but MacPorts has done very little to move towards Leopard at the moment (publically, that is - I'm sure they're working very hard behind the scenes), and a lot of common Python modules do not cur

Permissions and user.has_perm

2007-11-21 Thread Jon Atkinson
Hello, I am having some trouble with user permissions. I've read the documentation, but the built-in Permission object isn't behaving as I expect. Any help would be appreciated. I have a simple project containing one app. That app has one model, which is as follows. The model should be irrelevan

Re: learning django and python

2007-11-12 Thread Jon Atkinson
Dive into Python is a good resource for learning Python: http://www.diveintopython.org/ --Jon On 11/12/07, sebey <[EMAIL PROTECTED]> wrote: > > hey I am new to python and all that and of course django so I know > there is a django book up on the site but I was wondering if it would > be a good

Context processor not loading

2007-11-01 Thread Jon Atkinson
Hi, I'm having trouble with a context processor not running when I make a request. I've tried to reduce this to the simplest case I can: My projects tree is as follows: project/ context_processors/ __init__.py globals.py The file, 'globals.py', contains the following: def

Re: ANN: Satchmo 0.6 Released

2007-11-01 Thread Jon Atkinson
Great - just as I downloaded 0.5 and got it working, I have to start over :-) --Jon On 10/31/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 10/31/07, Chris Moffitt <[EMAIL PROTECTED]> wrote: > > > > There have been some spurious routing issues but it looks fine now. > > Are you still not see

Re: Kudzu Version of SonomaSunshine

2007-10-29 Thread Jon Atkinson
I have no idea what is it supposed to represent, but I was quite hypnotised by that for a while :-) Where is the soundtrack from? --Jon On 10/29/07, SamFeltus <[EMAIL PROTECTED]> wrote: > > Funkiest SonomaSunshine page ever... A slim, trim 30ish MB page, > leaves time for fetching a beer or som

Re: Query on Instant Messaging

2007-10-24 Thread Jon Atkinson
I've used xmpppy in the past to communicate with users over instant message: http://xmpppy.sourceforge.net/ If you're just wanting users of the same site to communicate, have you considered something like IRC? It's incredibly simple to use (you can run the server on the same machine as the site)

Re: Error During Django Install on Mac

2007-10-24 Thread Jon Atkinson
> The link should technically go in /usr/local/bin as Django > was build locally, and it's part of the distributors package set > :-) Oops, that should read "it's NOT part of the distributors package set". --Jon --~--~-~--~~~---~--~~ You received this message be

Re: Error During Django Install on Mac

2007-10-24 Thread Jon Atkinson
Hi, > sudo ln -s pathtodjango/bin/django-admin.py /usr/bin/django-admin.py ... that was my next step :-) The link should technically go in /usr/local/bin as Django was build locally, and it's part of the distributors package set :-) --Jon --~--~-~--~~~---~--~~

Re: Error During Django Install on Mac

2007-10-24 Thread Jon Atkinson
Please could you run the following command in your terminal, and paste the output into your reply: echo $PATH --Jon On 10/24/07, jnap <[EMAIL PROTECTED]> wrote: > > Don't know what RTFM means but sudo works. > > Now I get this error: -bash: django-admin.py: command not found when I > run django

Re: python mvc framework and java mvc framework

2007-10-22 Thread Jon Atkinson
Hello, > My question is to someone who actually try both, are they similar in > productivity and enterprise quality? I've used several Java frameworks, and I've been using Django for quite a while in an large commercial setting; I find myself *much* more productive with Django, and as for someth

Re: Messaging component

2007-10-21 Thread Jon Atkinson
I'm not sure about anything which is ready-made, but this is quite easily accomplished with one model: class Message(models.Model): """This is a user-to-user message""" to = models.ForeignKey(User) from = models.ForeignKey(User) message = models.TextField(blank=Tru

Re: Should Django have a road map?

2007-10-01 Thread Jon Atkinson
> > > The documentation clearly advertises the current trunk > > version, but the book refers to 0.96. The django book project seems to > > have died in Feb. The site does not explain why the missing chapters > > where never written/published and what the current state is. > > The book isn't dead,

Re: Should Django have a road map?

2007-10-01 Thread Jon Atkinson
There are some interesting points here, I look forward to the replies. --Jon On 10/1/07, Stefan Matthias Aust <[EMAIL PROTECTED]> wrote: > > Over the last few weeks, we used Django to successfully create > prototype applications and it just worked great (well, large file > upload is broken, I ha

Data change history

2007-10-01 Thread Jon Atkinson
Hello, I'd like to add a feature to the web application I'm developing, which will track the changes to the data in the system. I've created a web interface for various items of data, and each has a create and an edit view. If possible, I'd like to create a log of who edited or created a piece o

Re: Django deployment à lá Capistrano

2007-09-27 Thread Jon Atkinson
Is anything happening with this project, or has it died on the vine? --Jon On 9/13/07, rex <[EMAIL PROTECTED]> wrote: > > Hello. > > I'd be interested in helping with writing a Capistrano replacement for > Django in python (not a port!). > I'm relatively new to django sites, but quite an old hand

Re: Foreign key error "Reverse query name for field 'foo' clashes with field Foo.bar"

2007-09-13 Thread Jon Atkinson
Thank you all for your help - I renamed the application. Best regards, --Jon On 9/13/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > On 9/12/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > On Thu, 2007-09-13 at 08:16 +0800, Russell Keith-Magee wrote: > > [...] > > > The long term

Foreign key error "Reverse query name for field 'foo' clashes with field Foo.bar"

2007-09-12 Thread Jon Atkinson
Hello, I've found a few previous threads on this list which covered this problem, but none from which I found a satisfactory answer. Here is my model definition from an app called 'sites': class Site(models.Model): """This is a site.""" name = models.CharField(blank=True, maxleng

Re: Django deployment à lá Capistrano

2007-09-11 Thread Jon Atkinson
Excellent - I look forward to the URL. --Jon On 9/11/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > I know, I know. Know what? I'll setup a trac site on a domain of mine. > We can always move it somewhere else. > > El mar, 11-09-2007 a las 14:02 +0100, Jon Atkinson

Re: Django deployment à lá Capistrano

2007-09-11 Thread Jon Atkinson
e crying > out something about "ripping other people's ideas". > > El mar, 11-09-2007 a las 11:45 +0100, Jon Atkinson escribió: > > Are you going to create a wiki and repository for this project any > > time soon? It would be a much more effective means of collabo

Re: Django deployment à lá Capistrano

2007-09-11 Thread Jon Atkinson
Are you going to create a wiki and repository for this project any time soon? It would be a much more effective means of collaboration than the mailing list. --Jon On 9/11/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > > > > I think db schema migration should wait until django has some > > > f

Re: Django Video - For a good laugh

2007-09-10 Thread Jon Atkinson
Brilliant :-) On 9/10/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > *lmaorof* > > > El lun, 10-09-2007 a las 16:20 +, Gregg Pollack escribi�: > > Django guys, > > > > I know a few of you must be familiar with the Ruby on Rails vs > > ___ commercials http://www.railsenvy.com/tags/Comme

Re: Django deployment à lá Capistrano

2007-09-10 Thread Jon Atkinson
> "automating django's deployment tasks" sounds like a good start for me. A rough list of what I consider those tasks to be: 0) Checking in the local source changes if they have not already been checked in (optional). 1) Logging into the deployment target. 2) Checking out the latest source. 3) M

Re: Can u help me how to configure MOD_PYTHON am new one to django

2007-09-10 Thread Jon Atkinson
Damodhar, It seems your problem isn't with Django, but with the configuration of mod_python, and so I think your question would be better directed to the mod_python mailing list[1], rather than here. Good luck, --Jon [1] http://mailman.modpython.org/mailman/listinfo/mod_python On 9/10/07, Mik

Re: Capisdjango

2007-09-09 Thread Jon Atkinson
Sure :-) On 9/8/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > Sure. Anyone to join me? > > El s�b, 08-09-2007 a las 07:32 -0500, James Bennett escribi�: > > On 9/8/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > > Why hasn't anyone thought of something like capistrano for django. (Yeah > > >

Re: hai am new one to django

2007-09-07 Thread Jon Atkinson
The mod_python documentation will help you: http://www.modpython.org/live/current/doc-html/installation.html And there is a very helpful mod_python mailing list you can subscribe to and ask any questions you may have: http://modpython.org/pipermail/mod_python/ Good luck! --Jon On 9/7/07, Dam

Re: hai am new one to django

2007-09-05 Thread Jon Atkinson
> > 4)how django better then ROR ...? > LOL. I recalled an old joke: > Teacher asked the children in class to write a homework on the topic: > "Who is the greatest hero of twentieth century and why it's Lenin?" This reminds me of a post I saw somewhere (maybe it was a comic on xkcd, I don't re

Re: Web developement with Python

2007-08-27 Thread Jon Atkinson
This is a very broad question, with some very ill-defined adjectives :-) Generally, given enough resources then Django can scale up to websites of 'enterprise' (what does that actually mean?) level. As is stated in the FAQ [1], Django sites have happily held up to million hits/hour slashdottings.

Re: Changing database structue

2007-08-16 Thread Jon Atkinson
It might be worth reading the wiki page on the Schema Evolution [1], and if you're not using SVN, there is a patch [2] against Django 0.96 which implements schema evolution. Other than that, you might want to look into dmigrate [3] (which I've not personally used, so I'm not sure how mature it is

Re: django-cart integration?

2007-08-16 Thread Jon Atkinson
On 8/15/07, MikeHowarth <[EMAIL PROTECTED]> wrote: > > Does anyone have experience of integrating django-cart in to an app? > > I've tried adding this to my project, however soon as I use runserver > I get issues with the models: > > name 'Teacher' is not defined > > Anyone any idea? Could you pa

Re: Using Django to generate Flash/Flex content

2007-08-15 Thread Jon Atkinson
> Anyways, it's just an experiment. I'll stick the latest version up on > the net tonight in case someone else finds it amusing... I would be interested in seeing this. Could you make some of the source available? --Jon > > > > --~--~-~--~~~---~--~~ You receive

Re: Design plus admin question

2007-08-15 Thread Jon Atkinson
ecial settings, > like db connection or live=true|false. Then just get settings.py to > read the settings from this file. > > Cheers, > Lars > > On Aug 14, 5:59 pm, "Ritesh Nadhani" <[EMAIL PROTECTED]> wrote: > > Okay. > > > > That was most

Re: django hosting companies

2007-08-15 Thread Jon Atkinson
I've just started running a Django friendly host (though I'm not sure Django-friendly is the correct term - maybe Django *preferred* is better). We're currently looking for a few (maybe five) people to test our service before we launch to the world. We offer Django SVN and Django 0.95, git, svn a

Re: Using Django to generate Flash/Flex content

2007-08-14 Thread Jon Atkinson
I think there is a general reticence to move into this area, given Django's roots in web publishing, where HTML is the lowest common denominator. I can't speak on behalf of any of the developers, but I'd imagine that the news organisations which Django grew from were more concerned with tradition

Using contrib.sitemaps with multiple domains

2007-08-14 Thread Jon Atkinson
Hello, More on the contrib.sitemaps framework. My personal site is available at three different URLs: jonatkinson.org jonatkinson.eu jonatkinson.co.uk The same code runs all the sites, though I have some code which inspects the request object and prints a different title based on the domain yo

Re: Design plus admin question

2007-08-14 Thread Jon Atkinson
I've been experimenting with this too, and I've put a declaration of: live = True at the top of my urls.py file. Then the sections of my urls.py file which change between development and live are just put inside an if else block. Remember, all the files are interpreted, so this works quite well.

Re: Questions regarding contrib.sitemaps

2007-08-14 Thread Jon Atkinson
On 8/14/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-08-14 at 10:29 +0100, Jon Atkinson wrote: > [...] > > > As you can see, the locations generated includes 'example.com', which > > is not correct. According to the documentation, the

Questions regarding contrib.sitemaps

2007-08-14 Thread Jon Atkinson
Hello, I'm trying to implement the a sitemap.xml file using the contrib.sitemaps framework. It's pretty simple to use, but the output I'm getting is not correct. My code in sitemaps.py is as follows. Notice I've used the optional location() method.: from django.contrib.sitemaps import Sitemap f

Re: Custom primary key using Oracle 10g

2007-08-14 Thread Jon Atkinson
Catriona, I have very little Oracle experience, but also no reason to think that setting a custom primary key would be different from any other database backend. The documentation is here: http://www.djangoproject.com/documentation/models/custom_pk/ The primary key is set by using 'primary_key=

Re: Django advocacy in a commercial environment

2007-07-20 Thread Jon Atkinson
difficulty hiring into Python/Django roles at your company (compared to PHP)? Do you get less applicants? A better quality of applicant? Cheers, --Jon On 7/19/07, Rob Hudson <[EMAIL PROTECTED]> wrote: > > On Jul 19, 1:19 am, "Jon Atkinson" <[EMAIL PROTECTED]> wrote: > &

Re: Django advocacy in a commercial environment

2007-07-19 Thread Jon Atkinson
Oops, a quick edit - that last sentence should of course read: ...'benefits *over* PHP'... --Jon On 7/19/07, Jon Atkinson <[EMAIL PROTECTED]> wrote: > Hello, > > Having just finished a couple of large projects in PHP4, our > department (of 5 programmers) is looking

Django advocacy in a commercial environment

2007-07-19 Thread Jon Atkinson
Hello, Having just finished a couple of large projects in PHP4, our department (of 5 programmers) is looking to move to PHP5 - but me and another on the team have been pushing towards using Python/Django in future. While everyone sees the benefits of moving to Python (namespaces! enforced syntax

Django users at WebDD? (Reading, UK, Feb 3rd)

2007-01-03 Thread Jon Atkinson
Hi all, http://www.webdd.org.uk/ Are any Django users going to be attending WebDD? It's on February the 3rd, at the Microsoft Campus in Reading (here: http://tinyurl.com/wgaz8). It's a free one-day event. From their website: "The mantra behind the conference is that currently there is no focus

Re: Was: [Re: Why I'm giving up on Django] Now: Creating Debian Application Installer package

2006-10-02 Thread Jon Atkinson
Thanks for that information, Ian - I was anticipating a day or so of reasearch next week to package up my app, but hopefully I won't have to now. --Jon On 10/2/06, ian <[EMAIL PROTECTED]> wrote: > > Baurzhan Ismagulov wrote: > > Hello mamcxyz, > > > > On Fri, Sep 29, 2006 at 07:43:49AM -0700, mam

Re: import opml file

2006-09-30 Thread Jon Atkinson
qs/smart-questions.html --Jon On 9/30/06, a <[EMAIL PROTECTED]> wrote: > > Dear Jon Atkinson > upload to some server probably mine or some hosted site, basically some > simple fileuploads > thanks > > Jon Atkinson wrote: > > Upload to where? For what? There isn't

MacPorts package

2006-09-25 Thread Jon Atkinson
Hi all, I was wondering if anyone had done any work towards packaging Django for Macports (http://www.macports.org/, formerly DarwinPorts). I'm intending to start building a package, but I don't want to duplicate effort if anyone else is working on it. A google search didn't yield anything, so I

Django Cheat Sheet - Lost?

2006-09-23 Thread Jon Atkinson
Hi all, I've been looking for a copy of the Django cheat sheet (previous URL: http://www.dobbes.com/media/pdfs/django_reference_sheet.pdf), but that resource seems to have disappeared. Does anyone have a copy of this? --Jon --~--~-~--~~~---~--~~ You received this

Re: import opml file

2006-09-23 Thread Jon Atkinson
Upload to where? For what? There isn't really enough information in this and the previous posts in this thread to get any sensible answer :-) --Jon On 9/23/06, a <[EMAIL PROTECTED]> wrote: > is there an easy way to upload opml files > thanks > Jon Atkinson wrote: >

Re: Advice for Rusty Python Programmer and New Django Consumer

2006-08-30 Thread Jon Atkinson
For a quick update on Python's data structures, I always find Dive Into Python by Mark Pilgrim to be a good read. The book is FDL, and you can read it online here: http://diveintopython.org/toc/index.html --Jon On 30/08/06, Pete Abilla <[EMAIL PROTECTED]> wrote: > Group: > > Any book Advice or

SQL initial data for auth

2006-08-27 Thread Jon Atkinson
I'm trying to insert some initial data into the auth application to shorten testing times. I've linked some other tables in my database to the auth_users table, but to test my application I need to create five or so named users after each syncdb, which is a little tiresome. The logical place to p

Catching an IntegrityError

2006-08-26 Thread Jon Atkinson
Hi, I'm trying to figure out how to catch an IntegrityError. Simply using the following doesn't work correctly. I'm guessing that the IntegrityError class isn't available. The code: try: # code here catch IntegrityError: # code here Generates the following error: NameError at /admin/p

Re: Re: import opml file

2006-08-26 Thread Jon Atkinson
I've found that using XMLObject (http://www.freenet.org.nz/python/xmlobject/) is a simple way to get the feed information from an OPML feed, then you can read the feed however you like (e.g. with Feedparser (www.feedparser.org)). Something like this should get you started: from xmlobject import X

Re: Re: Django Blog software

2006-08-20 Thread Jon Atkinson
> That brings to mind the need for a Django-forge-like place where apps > could get uploaded, categorized, and rated; Plone and Joomla have this, > for instance. But that's another thread... > One worth starting, IMHO :-) --Jon --~--~-~--~~~---~--~~ You received

Re: Re: Interacting with models from the CLI

2006-08-20 Thread Jon Atkinson
:) > > > > On 8/19/06, Jon Atkinson <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I need to schedule some operations on my database to happen at a > > certain time each day. I'm tackling this by using cron, so ideally I'd > > like to be able to wr

Interacting with models from the CLI

2006-08-19 Thread Jon Atkinson
Hi, I need to schedule some operations on my database to happen at a certain time each day. I'm tackling this by using cron, so ideally I'd like to be able to write a stand-alone python script which will do this. My first though would be to pass a script to ./manage.py shell, (something like ./m

Re: django <-> cms like typo3

2006-08-17 Thread Jon Atkinson
A simple news system wouldn't be hard to write in Django. As for the rich editor, you could embed something like FCKeditor in your application. This has already been done in a Django application, Woodlog (http://www.djangocn.org/ - page detailing svn checkout is at http://www.djangocn.org/help/),

Re: Re: Re: More complex QuerySets and generic views

2006-08-15 Thread Jon Atkinson
> You're using a variable "feedtype" that's not defined. > > It's the same thing as doing this in the Python interactive prompt: > > print a + 1 > > The variable "a" is not defined yet, so Python raises a NameError. > > The problem in your case is that your view won't know the value of > feedt

Re: Re: How do I store project in subversion?

2006-08-15 Thread Jon Atkinson
> To create a repository, follow the instructions > at: http://svnbook.red-bean.com/en/1.0/ch05s02.html The SVN book is an excellent resource, and if you want to dive straight in and get your repository set up quickly, I recommend the 'Quickstart' section: http://svnbook.red-bean.com/nightly/en/

Re: Re: Re: More complex QuerySets and generic views

2006-08-15 Thread Jon Atkinson
> > I think it's worth raising a feature request in the Django Trac for > this functionality. I can imagine that this would be very useful to a > lot of people in the future. > > Michael Done! http://code.djangoproject.com/ticket/2544 --Jon --~--~-~--~~~---~--~~

Re: Re: More complex QuerySets and generic views

2006-08-15 Thread Jon Atkinson
On 15/08/06, Michael van der Westhuizen <[EMAIL PROTECTED]> wrote: > > Do you really need the RE in the query? I think the problem is that > the re call is being evaluated immediately, which the query is lazily > evaluated. Would the "iexact" not work without the regular expression? > > If you do

Re: Re: Learning Django

2006-08-15 Thread Jon Atkinson
On 15/08/06, Karen Tracey <[EMAIL PROTECTED]> wrote: > > At 01:08 PM 8/15/2006, you wrote: > >That, unfortunately, raises the issue of how to find that wisdom when > >you actually need it. > > FWIW, I've had good luck searching the mailing list archive on the > Google groups site. > Does Google e

More complex QuerySets and generic views

2006-08-15 Thread Jon Atkinson
Hi, I'm dabbling with generic views (thanks to wise advice from others on this list), and I'm trying to convert one of my slightly more complicated views to use a generic view. The vie itself is a simple list, but my queryset is generated as follows: Item.objects.filter(feed__feedtype__feedtype_

Re: Re: 'Pythonicity', pagination and readability.

2006-08-15 Thread Jon Atkinson
Michael, On 15/08/06, Michael van der Westhuizen <[EMAIL PROTECTED]> wrote: > > Hi Jon, > > On 8/15/06, Jon Atkinson <[EMAIL PROTECTED]> wrote: > > Hi, > > > > One of the things which I love about django is the lack of code I have > > to wr

Re: Re: VMWare image for running/developing Django

2006-08-15 Thread Jon Atkinson
Michael, It's a great idea, but the images do seem a little large - if you're running only python and sqlite, would one of the smaller distributions not be more suitable as a base? There are plenty of floppy and business-card distributions out there which are around 70mb (Damn Small Linux springs

'Pythonicity', pagination and readability.

2006-08-15 Thread Jon Atkinson
Hi, One of the things which I love about django is the lack of code I have to write. I recently refactored some of my views from approximately 30 lines of code down to just two, but I'm worried about the readablity of my code. For the simplest view, I think my code looks fine, and it's pretty re

Re: Re: Odd error with ./manage.py runserver

2006-08-14 Thread Jon Atkinson
Jeremy, Thanks for the solution, I had a module in middleware_classes rather than installed_apps. --Jon On 14/08/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 8/14/06, Jon Atkinson <[EMAIL PROTECTED]> wrote: > > TypeError: 'module' object is no

Odd error with ./manage.py runserver

2006-08-14 Thread Jon Atkinson
Hi, I'm getting a strange error when I run my application via the built in testing server. Each time I modify a source file, and the server reloads my views, the first request I make to the server prints the following to stderr: Traceback (most recent call last): File "/sw/lib/python2.4/site-

Case sensitivity with different database backends

2006-08-13 Thread Jon Atkinson
Hi, I've noticed that my application changes case sensitivity in queries depending on whether it is using MySQL or sqlite as the database backend The simplest test case is as follows: My database contains a user record, in which the username is = "jon" My urls.py is simply as follows: (r'^/?(

Re: Re: Re: Django Blog software

2006-08-13 Thread Jon Atkinson
Thank you both for the replies. Riklaunim: Have you chosen a license for miniblog? Is it okay for me to make some changes and re-release it? --Jon > On 13/08/06, David Larlet <[EMAIL PROTECTED]> wrote: > > > > 2006/8/13, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > > > > Hi, > > > > > > I've be