Re: Design plus admin question

2007-08-14 Thread Jon Atkinson
tterns = patterns('', (r'^/?$', 'mis.organisation.views.index'), ) I've written post-commit and post-checkout hook scripts for git (though you could do the same easily with SVN) which simple change the live = True to live = False or vice-versa as necessary. Ho

Using contrib.sitemaps with multiple domains

2007-08-14 Thread Jon Atkinson
retty sure that serving an incorrect sitemap.xml for a domain is worse than having no sitemap at all. If I could change the SITE_ID based on the request, then I imagine that this would work correctly, but I'm not even sure if that is possible. Any id

Re: Using Django to generate Flash/Flex content

2007-08-14 Thread Jon Atkinson
g using Django with Flash. Best, --Jon On 8/14/07, SamFeltus <[EMAIL PROTECTED]> wrote: > > I don't understand why none of the major Python frameworks embrace > Flash/Flex wholeheartedly, especially with innovations such as > Papervision3D, which w

Re: django hosting companies

2007-08-15 Thread Jon Atkinson
0.95, git, svn and lots of nice toys, along with Rails, Capistrano and Mongrel if you're a fan of the /other/ framework. Contact me off-list and we can talk about getting you into our testing programme. I hope this isn't considered a commercial posting :-) --Jon On 8/15/07, Matt

Re: Design plus admin question

2007-08-15 Thread Jon Atkinson
I'd not seen that page before - there are some much better solutions on there than my method. I particularly like Michael Radziej's solution which uses the ConfigParser and a .ini file. --Jon On 8/14/07, larsholm <[EMAIL PROTECTED]> wrote: > > On top of above approach

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 > > > > --~--~-~--~~-

Re: django-cart integration?

2007-08-16 Thread Jon Atkinson
ot defined > > Anyone any idea? Could you paste the output of ./manage.py validate, and your models.py file for each of your apps? It sounds like you're just missing an import statement somewhere. --Jon --~--~-~--~~~---~--~~ You received this message bec

Re: Changing database structue

2007-08-16 Thread Jon Atkinson
e how mature it is), and this [4] snippet might help, too. --Jon [1] http://code.djangoproject.com/wiki/SchemaEvolution [2] http://kered.org/blog/2007-07-19/django-schema-evolution/ [3] http://code.google.com/p/dmigrate/ [4] http://www.djangosnippets.org/snippets/167/ On 8/16/07, [EMAIL PRO

Re: Web developement with Python

2007-08-27 Thread Jon Atkinson
t is not a supported database backend, so you'd be on your own, but if you're not worried about 'coding complexity', then the addition of a DB2 backend would be something that I'm sure the developers would gladly accept into Django trunk :-) Go for it! --Jon [1] http://www.d

Re: hai am new one to django

2007-09-05 Thread Jon Atkinson
r do you roll things on your own?" Person 2: "I use a Web framework." Person 1: "So do I! Django or Rails?" Person 2: "Django." Person 1: "We have nothing in common! Die heretic scum!" --Jon --~--~-~--~~~---~--~~ You rece

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

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: 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/

Re: Django deployment à lá Capistrano

2007-09-10 Thread Jon Atkinson
dd to this as necessary. --Jon > > -- > Angel > > 2007/9/8, Chris Hoeppner <[EMAIL PROTECTED]>: > > > > Hi there, > > > > This is just to make it a bit more obvious. I've decided to make up a > > python application similar to Capistrano, for Djan

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: Experimental port of Django to Java

2008-01-04 Thread Jon Atkinson
re you so stuck with Java that a switch to Python would be impossible? --Jon --~--~-~--~~~---~--~~ 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@google

Re: Heads-down transaction-processing apps on Django

2008-02-02 Thread Jon Atkinson
to the clients (I think you do it via Firefox profiles, so you would have a profile on each client called 'Data Entry' or similar). --Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

RSS escaping, {{ autoescape }} and |safe

2008-02-02 Thread Jon Atkinson
that is it hard for Django to determine whether a < or a > is meant literally or as part of a tag, but surely this is a very common usage pattern? Any help would be much appreciated. --Jon --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Template tags and python paths

2008-02-04 Thread Jon Wilson
- models.py > - settings.py > - etc... > > > The problem is with "myapp2_tags.py". That file starts with this: > from myapp2.models import MyModel > I've found that in a production environme

Re: Template tags and python paths

2008-02-04 Thread Jon Wilson
he project path included like with apache kind of defeats that purpose. However, at least in the mean time, as you had found, it works by calling that. I'll have to look and see if there is a way to fix the templatetags loading to fix that, maybe by overriding it somewhere. ... -- Jon Wilson

Re: Template tags and python paths

2008-02-04 Thread Jon Wilson
/to/trunk/myapp2/templatetags') but like you said earlier, it really should work by default. :p -- Jon Wilson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

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: &

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 fo

Re: Mod_Python and Eggs

2008-04-03 Thread Jon Lathem
Graham, Thanks for your quick response. It was a SELinux problem. And i realize that chmoding to 777 is a bad idea, at the time I was just trying to get it to work. Jon On Wed, Apr 2, 2008 at 5:47 PM, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > > > On Apr 3, 12:54 a

obfuscating form fields in templates and admin

2008-04-20 Thread Jon Loyens
ks for your ideas in advance, Jon. --~--~-~--~~~---~--~~ 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,

Re: Admin page doesn't show calendar popup

2008-04-20 Thread Jon Loyens
Check that the localizations got installed when you installed .96. This was a problem I had... the installer didn't install the admin templates or any of the localization files and I had to copy them in manually. Jon. On Apr 20, 10:53 am, sinker <[EMAIL PROTECTED]> wrote: > Swit

Weblog archive links are bad

2008-04-21 Thread Jon Lesser
It seems that if there are no entries for a particular month, the archive link to that month results in a 404. http://www.djangoproject.com/weblog/2008/apr/ <--Works http://www.djangoproject.com/weblog/2008/mar/ <--404 I tried to open a trac ticket on this, but it thinks I'm a spammer. --~--~

string indices must be integers error in admin - don't know where to start debugging

2008-07-07 Thread Jon Loyens
Hi everyone, I've got a problem and I don't even know where to start debugging it... there seems to be a difference between the way my app is behaving between my local environment and my deployment environment. Hopefully you guys can give me some idea where to start. I've written a small PR appl

Re: string indices must be integers error in admin - don't know where to start debugging

2008-07-08 Thread Jon Loyens
Problem solved. Just need to copy in my local version of Django On Jul 7, 6:29 pm, Jon Loyens <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I've got a problem and I don't even know where to start debugging > it... there seems to be a difference between the way my

since I don't have a blob property...need help with files

2008-07-11 Thread Jon Brisbin
ng to me because the uploaded file is just the first part of a processing chain that's more interested in what's inside the file than it is with the file itself. I guess I'm just a little fuzzy on how manipulating files is supposed to work doing it

Re: since I don't have a blob property...need help with files

2008-07-11 Thread Jon Brisbin
ther objects in the document's relationship hierarchy. I think that would take less time than implementing a custom model field. Thanks! Jon Brisibn http://jbrisbin.com On Jul 11, 2008, at 8:24 AM, Karen Tracey wrote: > On Fri, Jul 11, 2008 at 9:08 AM, Jon Brisbin <[EMAIL PROTECTE

postgres schema support

2008-07-11 Thread Jon Brisbin
schemas and we use several tables in different schemas. I don't get the impression that Django is necessarily targeted at the large, enterprise environment, but I would prefer to use Django over how we do it now (JBoss and SQL, of course :). Thanks! Jon Brisibn http://jbrisbin.com --~--~

Re: since I don't have a blob property...need help with files

2008-07-11 Thread Jon Brisbin
Awesome! Thanks! Jon Brisibn http://jbrisbin.com On Jul 11, 2008, at 8:37 AM, Malcolm Tredinnick wrote: > > > On Fri, 2008-07-11 at 08:35 -0500, Jon Brisbin wrote: >> I've considered a custom field. I just don't think I know Django well >> enough yet to pull it

Re: since I don't have a blob property...need help with files

2008-07-11 Thread Jon Brisbin
These changes sound like just what I need. Thanks for the explanations. I update my SVN checkout almost every day, so I'll be on the lookout for these changes... Thanks! Jon Brisibn http://jbrisbin.com On Jul 11, 2008, at 8:51 AM, Marty Alchin wrote: > > On Fri, Jul 11, 2008

Re: postgres schema support

2008-07-11 Thread Jon Brisbin
Will this actually create the schema, though? Or will that have to be done manually, with Django managing the tables inside the schemas I create myself? Thanks! Jon Brisibn http://jbrisbin.com On Jul 11, 2008, at 9:01 AM, Scott Moonen wrote: > Hi Jon. I believe you can use the Dja

Re: Not Django related, but would love your opinions

2008-07-11 Thread Jon Brisbin
Don't do that! I like living out here in Missouri, raising my chickens and my garden, and staying the hell away from you crazy city folk! ;) Thanks! Jon Brisibn http://jbrisbin.com On Jul 11, 2008, at 2:36 PM, blis102 wrote: > This is insane... > > If this actually happens Im

Re: Only getting 500 error, not 404

2007-03-04 Thread Jon Colverson
python manage.py shell >>> from django.core.mail import mail_admins >>> mail_admins('some subject', 'some body') -- Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &quo

Re: use default value for an unavailable variable on a tag

2007-03-19 Thread Jon Colverson
quot;. In your tag you can catch the exception template.VariableDoesNotExist that is raised by the template.resolve_variable() function. Something like this: try: city = template.resolve_variable(variable_name, context) except template.VariableDoesNotExi

loaddata against postgresql doesn't update primary key's sequence 'last_value' ?

2007-04-03 Thread Jon Ballard
erhaps? Thanks for any help. I'll continue to research of course.. -Jon --~--~-~--~~~---~--~~ 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@goo

Re: loaddata against postgresql doesn't update primary key's sequence 'last_value' ?

2007-04-04 Thread Jon Ballard
ded a "see also #3790" comment to the new ticket Russ created yesterday (#3915). -Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: Django and Eclipse Autocomplete NOT WORKING

2007-04-04 Thread Jon Ballard
_src/ I have a django symlink in /usr/lib/python2.4/site-packages/ which means that I shouldn't have had to add anything to PYTHONPATH because that is there by default. I did try these, but it makes sense they wouldn't work: /usr/lib/python2.4/site-packages/django/ /usr/lib/django_src/dj

Re: Django and Eclipse Autocomplete NOT WORKING

2007-04-04 Thread Jon Ballard
On Apr 4, 9:13 pm, "Jon Ballard" <[EMAIL PROTECTED]> wrote: > Looks like maybe PyDev can't follow symbolic links in PYTHONPATH. For > example I'm using SVN version and couldn't get django module code > completion working until I added this to my PyDev PYT

Broken pipes with HttpResponseRedirect and Firefox / Trouble in paradise

2007-05-06 Thread Jon Lesser
n Pipe exception. I'm happy to provide any additional details that might help. Thanks in advance, Jon Keywords: error:32 Broken Pipe, HttpResponseRedirect, firefox, bribe * This may or may not happen... --~--~-~--~~~---~--~~ You received this message be

Re: Broken pipes with HttpResponseRedirect and Firefox / Trouble in paradise

2007-05-18 Thread Jon Lesser
responses. The Django template code above is also available here: http://dpaste.com/hold/10611/ On May 6, 7:18 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2007-05-06 at 19:09 -0700, Jon Lesser wrote: > > Hello Djangites: > > > I am having a hell of a time

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

Re: Django deployment à lá Capistrano

2007-09-11 Thread Jon Atkinson
I'm not sure the name is really as important as working code. --Jon On 9/11/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > I'll be creating a google code page as soon as we settle down on a name. > I like Djangostrano. Sounds nice. But I'm not sure about anyon

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

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

2007-09-12 Thread Jon Atkinson
n: Reverse query name for field 'site' clashes with field 'Site.domain'. Add a related_name argument to the definition for 'site'. Why is this? I don't see what the clash is. I apologise if I need this explaining in simple language for a five-year-old, but somet

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 w

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

Data change history

2007-10-01 Thread Jon Atkinson
d or created a piece of given data, so that when viewing that data I can display a nice list: "Dave created this on 14/09/2007, Molly edited this on 17/09/2007" etc. I noticed that the Django admin interface does something similar, so could I expose this outside of /admin/? Ma

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 > u

Re: Should Django have a road map?

2007-10-01 Thread Jon Atkinson
yet, we're still working on it", along with a relatively recent date, would at least let people know that the book hasn't been forgotten about, and would hopefully alleviate a lot of redundant mailing list messages. --Jon --~--~-~--~~~---~--~~ You receive

Re: Messaging component

2007-10-21 Thread Jon Atkinson
self.from, self.to, self.message) Of course, replace the User foreign keys with your user model. Then you just create a view for the inbox (to is the currently logged in user, read is False), outbox (from is the currently logged in user). This is a very simple model, but it should get you going.

Re: python mvc framework and java mvc framework

2007-10-22 Thread Jon Atkinson
(*is* there a definition of that word yet that anyone can agree on?) is a crutch often used by bad programmers or bad managers to justify the increasing costs of employing a large amount of monkeys at a large amount of typewriters. --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

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 :-

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 --~--~-~--~~~---~--~--

Re: Query on Instant Messaging

2007-10-24 Thread Jon Atkinson
ine as the site), you just need a very basic grasp of sockets. It wouldn't be difficult to use some AJAX to fetch the incoming messages and send the outgoing ones. --Jon On 10/24/07, Subramanyam <[EMAIL PROTECTED]> wrote: > > Hi > > Do we have any libraries in django to pr

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 fet

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 f

Context processor not loading

2007-11-01 Thread Jon Atkinson
;eggs', or the token 'cp_test' passed to the template. I'm sure I'm doing something stupid, but what? --Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

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 wo

Permissions and user.has_perm

2007-11-21 Thread Jon Atkinson
I simply interrogating a user object incorrectly, or have I completely misunderstood how permissions work? I'm expecting to be able to check if a user has permission to edit data in a view just by doing something like if u.has_perm("person.add_person"): render_to_response("add_

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

2007-11-21 Thread Jon Atkinson
modules do not currently compile via MacPorts/Leopard. Considering OSX now comes with svn binaries, and built-in sqlite3 python support, it's possible to be developing Django applications very quickly with Leopard. --Jon On 11/21/07, jeffself <[EMAIL PROTECTED]> wrote: > > Which ve

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 did

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: >

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 rec

MacPorts package

2006-09-25 Thread Jon Atkinson
anything, so I assume it's safe to start from scratch, but if I am jumping the gun, please let me know. --Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

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

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 Fr

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

2007-01-03 Thread Jon Atkinson
le to offer lifts to anyone in Manchester/Warrington/Chester/Liverpool area. --Jon --~--~-~--~~~---~--~~ 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@googleg

Should newforms security fixes be posted to django-announce?

2007-02-09 Thread Jon Colverson
n the "official" releases." I wasn't able to convince the core developers that this is important, so I thought I'd solicit some opinions here: Should newforms security fixes be posted to django-announce? Thanks. -- Jon --~--~-~--~~~---~--~--

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]>: >

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

Odd error with ./manage.py runserver

2006-08-14 Thread Jon Atkinson
, line 38, in load_middleware mw_instance = mw_class() TypeError: 'module' object is not callable If I hit reload, everything starts to work fine again, but it's annoying to have to reload my browser twice after each change I make. Any ideas? --Jon --~--~-~--~~---

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

'Pythonicity', pagination and readability.

2006-08-15 Thread Jon Atkinson
asier to understand) manner? I know that 'pythonic' has quite a nebulous definition, but something seems 'unpythonic' about this code, which is quite a contrast to the elegance of the rest of the django code I have written. In particular, my need to pass the 'p

Re: Re: VMWare image for running/developing Django

2006-08-15 Thread Jon Atkinson
mall Linux springs to mind), so you might be able to get the disk images down to an even smaller size. --Jon On 15/08/06, Michael <[EMAIL PROTECTED]> wrote: > Hi all, > > It is posssible to setup Qemu ( platform independent ) > http://fabrice.bellard.free.fr/qemu/ > > and run

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

More complex QuerySets and generic views

2006-08-15 Thread Jon Atkinson
'feedtype' is not defined I'm guessing that this is being caused by the regular expression evaluation not seeing that 'feedtype' exists - is there a way to solve this or will I have to use a standard view for this particular action? --Jon --~--~-~--~~---

Re: Re: Learning Django

2006-08-15 Thread Jon Atkinson
gt; Google groups site. > Does Google expose an API for searching Google Groups? It could be a useful thing to have on the Django site... --Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: Re: More complex QuerySets and generic views

2006-08-15 Thread Jon Atkinson
oblem with this statement which I'm not seeing? It seems there is a problem with variable from the url expression being passed to the view function - is this a common problem? --Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

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

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

2006-08-15 Thread Jon Atkinson
n.com/nightly/en/svn.intro.quickstart.html --Jon --~--~-~--~~~---~--~~ 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

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

2006-08-15 Thread Jon Atkinson
after_ I submitted the ticket - please do close it if necessary. Just out of interest, what do you think the most elegant way to solve this problem would be? Is it to write my own view and deal with the pagination myself? Many thanks to all who replied to this thread. --Jon --~--~-~--~--

Re: django <-> cms like typo3

2006-08-17 Thread Jon Atkinson
/help/), so you might want to look at that to see how it is done. --Jon On 17/08/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > hi, > > i have to do a website for a small business and need a simple cms for > that. i looked into typo3 for a few days but it seems to be

Interacting with models from the CLI

2006-08-19 Thread Jon Atkinson
point) - am I approaching this in the correct way, and if so what do I need to import/read from settings.py so that a stand-alone script can interact with my models? Thanks, --Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Re: Interacting with models from the CLI

2006-08-20 Thread Jon Atkinson
Thank you both. I had it working (though it was far from elegant), so that other thread will be very helpful. --Jon On 19/08/06, Bryan Chow <[EMAIL PROTECTED]> wrote: > > See: > http://groups.google.com/group/django-users/browse_thread/thread/51827a2a40e5262e > > Bryan

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 --~--~-~--~~~---

Re: Re: import opml file

2006-08-26 Thread Jon Atkinson
mport XMLFile opml = XMLFile(path="/path/to/file.opml") for person in x.root.body.outline: print "Name: " + str(person.text) print "Feed: " + str(person.xmlUrl) --Jon On 26/08/06, a <[EMAIL PROTECTED]> wrote: > > feedjack is a lot of s

Catching an IntegrityError

2006-08-26 Thread Jon Atkinson
/tree/browse_frm/month/2006-01/8769f73b6963a674?rnum=21&_done=%2Fgroup%2Fdjango-developers%2Fbrowse_frm%2Fmonth%2F2006-01%3F#doc_b37d705150060fd7 Any hints would be much appreciated. --Jon --~--~-~--~~~---~--~~ You received this message because you are subscr

SQL initial data for auth

2006-08-27 Thread Jon Atkinson
b doesn't seem to pick up the existence of the file. I have no doubt it's in the wrong place, but my question is which is the correct place? :-) Thanks, --Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

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: > >

Django online training

2012-02-28 Thread Jon Dickinson
nce of TDDing a Django app so I can get hands on experience and ask questions about the best way to approach this. I'm offering $69 for one hour. Is anyone interested? If so, please email me directly (jon at accoladedev dot co dot uk). I don't need to see a whole CV, but do give me an over

Can I override get_object() of a generic view?

2012-05-15 Thread Jon Paugh
rly. I opened the Python shell with *./manage.py shell *and* *looked at the * Create.__mro__* field to make check the method resolution order, and everything looked in order. Is something wrong here? Thanks, Jon -- Here's my class class Create(CreateView): template_name='forms/aja

Re: settings file being imported four times

2012-05-16 Thread Jon Paugh
Yes, when I put a print statement in my settings file, it prints out twice everytime I start the server. The file has to be imported in multiple places, and so it gets executed multiple times. I'm not sure what your error is, but it doesn't seem to be related to the multiple imports. On Wednesd

Re: Foreign Key don't work for me

2012-05-16 Thread Jon Paugh
Ah. I believe, the Amount.job_no (i.e. the foreign key) should not be filled with the *id* of the Client object, but with the actual client * object*, that is, job_no = Client.objects.get(cd['job_no']) That matches the abstract relationship of, "This Client corresponds to this Amount.", then Dj

Re: Problem with Jquery over Django

2012-05-16 Thread Jon Paugh
Check out "How to handle static files" from this page: https://docs.djangoproject.com/en/1.4/#the-development-process. Also note that the links on this page can help answer a lot of the basic questions about Django for you. Django has a built-in app to handle static files, and cases such as thi

Re: Thread safety with view arguments in class based views

2012-05-16 Thread Jon Paugh
That last part refers to the way *Python* handles arguments and the like. Whenever you have a complex object, such as an array, Python does not make a new copy of the object each time the view function is called. Instead, it passes a reference to the object, which means that if you change that

<    1   2   3   4   >