Re: Does Hostmonster support Django?

2007-11-12 Thread Kenneth Gonsalves
On 12-Nov-07, at 1:26 PM, Mike Cantelon wrote: >> I personally use webfaction for public hosting, but its a major pain >> >> Just buy your own box > > ...or go the VPS route. Any hosting company offering Xen-based virtual > servers (I used provps.com, who have been great) can give you the >

Re: newforms-admin fieldsets classes question

2007-11-12 Thread Matthias Urlichs
The problem is that the intent is a test like "bar" in "foo bar baz" which is true; unfortunately, so is "bar" in "disbarment" which shouldn't be (in this context anyway). Thus you should test "bar" in ("foo","bar","baz") instead, which seems to be the intent behind this change

Django profiler to find a project weak spots

2007-11-12 Thread Dima Dogadaylo
Hi, I wrote a Django pofiler that can be used to find weak performance spots in Django projects, i.e. to find how many SQL-queries are used per page, how heavy html-pages are, etc. The source code of the script and examples of usage are available here:

Re: Feeds

2007-11-12 Thread Miguel Galves
Hi Justin, thanks for your help. I've added the get_absolute_url(self) method, def get_absolute_url(self): return "http://www.test.com/; But it`s still doesnt working. I`m getting the same problem. Here is the traceback: Traceback (most recent call last): File

Q. Limiting Instance Listing for Foreign Keys in DjangoAdmin - RowLevelPermissions

2007-11-12 Thread Dan-Cristian Bogos
Folks, I have installed per-object-permissions branch and hit a case when I need to limit listing of ForeignKeys Instances inside DjangoAdmin. Example: Model Settings: class RelatedField(models.Model): RelatedName = models.CharField('Name', maxlength=64) class Meta:

Re: Feeds

2007-11-12 Thread Kenneth Gonsalves
On 12-Nov-07, at 5:18 PM, Miguel Galves wrote: > def get_absolute_url(self): > return "http://www.test.com/; this is not a url pointing to a view - unless you are giving a feed to your index.html -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/

Re: Feeds

2007-11-12 Thread Miguel Galves
I'm giving a feed to index.html. Do I really need to have an absolute URL in my model? It seems to me that this need makes the app less portable. On Nov 12, 2007 9:59 AM, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 12-Nov-07, at 5:18 PM, Miguel Galves wrote: > > > def

Re: Feeds

2007-11-12 Thread Kenneth Gonsalves
On 12-Nov-07, at 5:32 PM, Miguel Galves wrote: > I'm giving a feed to index.html. > > Do I really need to have an absolute URL in my model? It seems to > me that > this need makes the app less portable. if you want a feed you have to give one - could you paste the your view for index.html?

Re: Catching Exceptions thrown in .save() / Best practice question

2007-11-12 Thread marknca
Malcolm, Spot on on all points. A ridiculous logic error in my model code was raising an exception in an unexpected place. A little bit of proper code review caught it. I appreciate your insights on this one. Cheers, Mark --~--~-~--~~~---~--~~ You received

Re: Does Hostmonster support Django?

2007-11-12 Thread justquick
I have the same problem. They sent me the same notice with a couple links to their forums with suggestions as how to keep your memory (RSS) down, like regular restarts of apache and setting DEBUG = False in the settings. Follow these tips and your memory usage should be within acceptable limits.

Re: Django or Cheetah (why not both)?

2007-11-12 Thread Jeremy Dunck
On Nov 11, 2007 11:51 PM, justquick <[EMAIL PROTECTED]> wrote: > > Now the project is going under the name django_cheetahtemplates to > avoid contrib namespace confusion. Regardless of name, having cheetah > templates is very handy and increases the rendering times of your > templates. We are

Re: Data truncated for column 'text' at row 1

2007-11-12 Thread francois
Same problem for me with French characters. All the rest of the site works fine just the admin section which doesn't want non English characters. What we should try or check at this point? Thanks for an eventual answer, hint, suggestion... francois On Sep 25, 6:42 am, Sebastian Dahlgren

Re: Data truncated for column 'text' at row 1

2007-11-12 Thread francois
Ooops sorry I didn't saw the answers in my Google search result. I will try the suggestion of Ester Ytterbrink. Thanks On Nov 12, 3:19 pm, francois <[EMAIL PROTECTED]> wrote: > Same problem for me with French characters. All the rest of the site > works fine just the admin section which doesn't

learning django and python

2007-11-12 Thread sebey
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 idea to use that resource ( cause I do not have a lot of time on my hands) for learning pthyon and django as well and if possable what resources are

Re: CSS problem

2007-11-12 Thread David
Nobody that could help me? Do you need further information? On Nov 9, 7:16 pm, David <[EMAIL PROTECTED]> wrote: > I seem to have a similar (stupid) problem, which I just can't get: > (Though it's not the backslashes!) > > This is from my settings.py: > MEDIA_ROOT =

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

Re: CSS problem

2007-11-12 Thread Laszlo Marai
On Mon, 12 Nov 2007 14:42:15 - David <[EMAIL PROTECTED]> wrote: Hi, > On Nov 9, 7:16 pm, David <[EMAIL PROTECTED]> wrote: > > I seem to have a similar (stupid) problem, which I just can't get: > > (Though it's not the backslashes!) > > > > This is from my settings.py: > > MEDIA_ROOT =

Re: learning django and python

2007-11-12 Thread sebey
good thanks for can I learn python with django? or is that sound silly On Nov 12, 2:42 pm, "Jon Atkinson" <[EMAIL PROTECTED]> wrote: > Dive into Python is a good resource for learning Python: > > http://www.diveintopython.org/ > > --Jon > > On 11/12/07, sebey <[EMAIL PROTECTED]> wrote: > > > > >

Re: learning django and python

2007-11-12 Thread sebey
plus I need to learn it fast as well so I had a look but it looks like a lot to go tought thanks thought On Nov 12, 2:42 pm, "Jon Atkinson" <[EMAIL PROTECTED]> wrote: > Dive into Python is a good resource for learning Python: > > http://www.diveintopython.org/ > > --Jon > > On 11/12/07, sebey

Re: learning django and python

2007-11-12 Thread Laszlo Marai
On Mon, 12 Nov 2007 07:35:03 -0800 sebey <[EMAIL PROTECTED]> wrote: Hi, > plus I need to learn it fast as well so I had a look but it looks like > a lot to go tought thanks thought diveintopython is actually quite a fast way to learn python. The ToC looks quite long but the actual pages are

Authorization from ssl certificate data

2007-11-12 Thread Krzysztof Ciesielski
Hi, I've got a problem with django used with mod_ssl and mod_python. I wanted to use environmental variables from mod_ssl in order to automaticly log in users but it appears that those variables are not accessible trough request.META Has anyone met this problem before. and has any idea how to

Re: learning django and python

2007-11-12 Thread Michael
I was in the same place a couple months back, so here's some resources I found helpful: Django specific: djangobook.com - you mentioned, parts were extremely useful, others too incomplete to be of much use. The tutorial in the first few chapters I found very useful.

Re: Authorization from ssl certificate data

2007-11-12 Thread James Bennett
On 11/12/07, Krzysztof Ciesielski <[EMAIL PROTECTED]> wrote: > Hi, I've got a problem with django used with mod_ssl and mod_python. I > wanted to use environmental variables from mod_ssl in order to > automaticly log in users but it appears that those variables are not > accessible trough

Re: Authorization from ssl certificate data

2007-11-12 Thread Malcolm Tredinnick
On Mon, 2007-11-12 at 15:55 +, Krzysztof Ciesielski wrote: > Hi, I've got a problem with django used with mod_ssl and mod_python. I > wanted to use environmental variables from mod_ssl in order to > automaticly log in users but it appears that those variables are not > accessible trough

Re: Authorization from ssl certificate data

2007-11-12 Thread James Bennett
On 11/12/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > So, without having tested it, you might be able to access > request._req.subprocess_env to get the information (although read the > mod_python docs first, particularly about add_common_vars(), since > that's certainly tripped me up in

Django profiler to find a project weak spots

2007-11-12 Thread Dima Dogadaylo
Hi, I wrote a Django pofiler that can be used to find weak performance spots in Django projects, i.e. to find how many SQL-queries are used per page, how heavy html-pages are, etc. The source code of the script and examples of usage are available here:

psycopg2 failing in test suite

2007-11-12 Thread Erik Stein
I just migrated the database of my django project from mysql to postgresql. Tested with the development server, the application seems to run fine, but if I run my test suite, the psycopg2 driver fails before the first test passes. psycopg2.InterfaceError: connection already closed

Re: learning django and python

2007-11-12 Thread Doug B
1st: http://www.b-list.org/weblog/2006/jun/13/how-django-processes-request/ 2nd: Tutorial 3rd: The docs, just sit down and read them. If you expect to use them as a reference manual without reading them first it will probably cause you trouble... they just aren't written that way. After doing

Re: learning django and python

2007-11-12 Thread kevinski
This is also a decent resource for learning the basics of Python quickly. http://www.ibiblio.org/obp/thinkCSpy/index.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Django Plug-ins, Modules, Forums, Wikis, etc.

2007-11-12 Thread tunnel
We're new to Django, and love what we see. But we're looking for any kind of federated list of code, modules. hacks, plug ins, etc? I'm not the engineer in our effort, but just trying to get our devs organized internally, and having a little trouble finding things. I'd bet many new to Django

Re: Django Plug-ins, Modules, Forums, Wikis, etc.

2007-11-12 Thread Chris Moffitt
> > 1) List of existing modules, code, etc. (FOSS or commercial) > Is there any wiki or published list for this anywhere? Couldn't find > anything at Django, but there was much to read. Might have missed it. Try these 2: http://www.djangosnippets.org/ http://www.djangosites.org/ 4)

Re: learning django and python

2007-11-12 Thread sebey
this is all great love anymore resource you guys have and for anyone else who may stumbleupon this thanks love some more please On Nov 12, 5:55 pm, kevinski <[EMAIL PROTECTED]> wrote: > This is also a decent resource for learning the basics of Python > quickly. > >

Re: Authorization from ssl certificate data

2007-11-12 Thread Graham Dumpleton
On Nov 13, 3:34 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 11/12/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > So, without having tested it, you might be able to access > > request._req.subprocess_env to get the information (although read the > >mod_pythondocs first,

XMLField validation within a model

2007-11-12 Thread jim
How does one validate the xml being inserted into a table? I have the following model: class FlightReservation(models.Model): """ """ departing_itin = models.XMLField(ITIN_RELAXNG_SCHEMA_PATH) returning_itin = models.XMLField(ITIN_RELAXNG_SCHEMA_PATH) ... I have the

Update

2007-11-12 Thread tunnel
I'm sure this is old hat to the Django set, but it's new to us newbs. This site lists many django modules, etc.. It's a bit of a treasure hunt, because the rating and intel is fairly pool, but it's sure better than nothing. Could save a lot of time for someone else.

Re: learning django and python

2007-11-12 Thread Kenneth Gonsalves
On 12-Nov-07, at 8:03 PM, sebey 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 idea to use that resource ( cause I do not have a lot of > time on my hands) for learning pthyon and

Re: learning django and python

2007-11-12 Thread Kenneth Gonsalves
On 12-Nov-07, at 9:02 PM, sebey wrote: > good thanks for can I learn python with django while learningdjango(): python.learn() sql.learn() -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You

Portals, Subscriptions and User Profiles?

2007-11-12 Thread tunnel
1) I have seen one subscription module, and it seems unfinished and dormant http://code.google.com/p/django-accounts/ http://code.google.com/p/django-accounts/ Is there any other "community portal" type solution around, with user profiles, and subscription levels, etc.? 2) There is a "modules"

Re: ImageField Validation Error

2007-11-12 Thread drackett
I'm running into this exact same issue. Very few images I try are "valid" even though I can work with them in PIL by hand. On Nov 4, 1:27 pm, Matt <[EMAIL PROTECTED]> wrote: > I've got a model with an ImageField. But, when I attempt to add an > image via the Admin interface, I receive the error

Re: How much memory does a django instance need was Does Hostmonster support Django?

2007-11-12 Thread Kenneth Gonsalves
On 12-Nov-07, at 6:25 PM, Forest Bond wrote: > Maybe you need to decrease your ServerLimit? Each forked server > process leads > to increased memory usage. For a really low volume site, you can > get away with > ServerLimit 1, although I'd be sure to host your media files in a >

Circular dependencies problem

2007-11-12 Thread [EMAIL PROTECTED]
Hello, i'm new to django so excuse if this is a really stupid question. I have these three apps with are inter dependable, how can I make this work in Django maintaining all of this modules separate. discussion: from osite.user.models import User from osite.multimedia.models import Multimedia

ImportError: No module named mysql.base

2007-11-12 Thread Josh
Hi everyone! I'm trying to get one of our servers set up with Django, and everything seems to work fine up until I try to syncdb. This is the output I get: manage.py syncdb Traceback (most recent call last): File "manage.py", line 11, in ? execute_manager(settings) File

Re: Portals, Subscriptions and User Profiles?

2007-11-12 Thread Marty Alchin
On 11/12/07, tunnel <[EMAIL PROTECTED]> wrote: > 2) There is a "modules" module, that seems in similar shape. Repository > hasn't much in it yet. > http://code.google.com/p/django-modular/ Django-modular > Does anyone else know of working code that can create > widgets/portlets/modules on a

Re: Does Hostmonster support Django?

2007-11-12 Thread TungLiang Hannus
okay.thanks,i'll buy hostmonster today:) On Nov 13, 2007 10:57 AM, Evgeny <[EMAIL PROTECTED]> wrote: > > hostmonster allows ssh access, so you should be able to install django > by yourself. > I have not verified whether they have mod_python, but there is python > installation. > > when I asked

Re: How much memory does a django instance need was Does Hostmonster support Django?

2007-11-12 Thread girzel
> did all this - I am still getting around 35 MB per instance. And it > is not the fault of webfaction. The same site on my local machine > gives the same figure. This on the latest svn in both cases. The last > time I looked at these figures, it was around 12-15mb an instance. > Any

Re: Does Hostmonster support Django?

2007-11-12 Thread Kenneth Gonsalves
On 13-Nov-07, at 8:27 AM, Evgeny wrote: > when I asked them to install python Imaging library - they refused. > Told me that their policy is not to install extra libraries a service that claims to support python and considers PIL an (irrelevant) 'extra' library should be avoided like plague

newforms BoundField prefix treatment.

2007-11-12 Thread shaunc
Hello, I'm confused: why does BoundField.as_widget retrieve initial data with self.name (without prefix): >>>def as_widget(self, widget=None, attrs=None): ... >>>if not self.form.is_bound: >>>data = self.form.initial.get(self.name, self.field.initial) But if there is

django registration (sending email and activation of account)

2007-11-12 Thread Stupid Dustbin
Hi, I'm pretty new to django and python and currently I'm trying to learn how to use django-registration and I faces some problems Firstly, I realise my emails are actually not sent out to people who sign up. At first I got a "non local email relay not permitted" message when i submit my

PyCon 2008 Call for Proposals

2007-11-12 Thread [EMAIL PROTECTED]
Proposals for PyCon 2008 talks & tutorials are now being accepted. The deadline for proposals is November 16. http://pycon.blogspot.com/2007/10/call-for-talk-tutorial-proposals.html PyCon 2008 will be held in Chicago, Illinois, USA, from March 13-20. Tutorial Day: Half-Day Tutorials Do you

Using Django Template Engine

2007-11-12 Thread Brot
Hello, I found a code example for "Using Markup" in the django wiki: http://code.djangoproject.com/wiki/UsingMarkup I need a similar solution, but with the internal django template library. Is there any solution for this requirement? I would like to store little html/template chunks in a

Announcing Django Evolution!

2007-11-12 Thread Russell Keith-Magee
Announcing Django Evolution! http://code.google.com/p/django-evolution/ Django Evolution is schema evolution application for Django - that is, a Django application that helps you to update your database schema when you make changes to your Django models. Django

403 errors handler

2007-11-12 Thread eXt
Hi! I'd like to know if there is any method to handle 403 errors and display pretty error pages for them. I need to handle some errors raised by Admin (raised when a user clicks an add symbol but doesn't have the permission to add a new object). In the Admin code I have found add_view