InspectDB showing up error

2008-02-12 Thread Sairam Krishnamurthy
Hi, I created a postgres db and tried to create model.py file using inspectdb. I showed me the following error. from django.db import models class AuthMessage(models.Model): Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File

Re: GeoDjango developers

2008-02-12 Thread tlp
You should take a look here. http://djangopeople.net/skills/geodjango/ Cheers, Travis On Feb 8, 9:55 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Are there many/any coders available for hire with extensive GeoDjango > experience? I have a rather large project in mind that for which it

Re: SQL Join

2008-02-12 Thread Alex Ezell
This doesn't answer your question directly, but wouldn't many-to-many fields help a bit here? http://www.djangoproject.com/documentation/model-api/#many-to-many-relationships Sorry if you've already thought about this and dismissed it. /alex On Feb 12, 2008 11:41 PM, Gus <[EMAIL PROTECTED]>

SQL Join

2008-02-12 Thread Gus
Hi all, I have something like: Class User id Class Group id Class Membership id group fk user fk type char1 Class Message id group fk user fk I'm a little confused about how to do this join from the django db api: select message.* from message, membership where message.group_id =

newforms admin and Django registration

2008-02-12 Thread Michael Newman
It took a couple of days, but I finally got all my projects switched to new forms admin. It is so powerful. I cannot wait to see wait to see what kinds of things I will be ablt to accomplish. That being said, of course, I need to switch some of the snippets of code that I barrowed from people

Re: Import error in settings.py

2008-02-12 Thread Julien
Great! Thanks a lot, it worked! Here's a little function that I made and that is quite helpful: def get_class(class_path): i = class_path.rfind('.') module_path, class_name = class_path[:i], class_path[i+1:] module = __import__(module_path, globals(), locals(), [class_name])

Re: Import error in settings.py

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 18:30 -0800, Julien wrote: > Hello, > > The module was not compiled, because it was the __import__ function > itself that raised an exception and so didn't have the chance to do > the compilation. > > As you've suggested, I tried: > > klass = __import__("myapp", {}, {},

Django Success Story

2008-02-12 Thread Ben
If you'd like to read about the recent success of a summer project involving Django, read on. I've been playing with django in my spare time for a couple years. I've written a simple blog app, and have half-finished a few sizeable apps, one of which will be put on a vps by the end of the

Re: Import error in settings.py

2008-02-12 Thread Julien
Hello, The module was not compiled, because it was the __import__ function itself that raised an exception and so didn't have the chance to do the compilation. As you've suggested, I tried: klass = __import__("myapp", {}, {}, ['']) -> Works, returns klass = __import__("myapp.forms", {}, {},

Re: How popular is Django ?

2008-02-12 Thread James Bennett
On Feb 12, 2008 5:00 AM, tom <[EMAIL PROTECTED]> wrote: > How popular is Django among other Python Web Frameworks (TurboGears, > Pylons, Webware, CherryPy...) ? More popular than rotting meat. Not as popular as sliced bread. Beyond that, hard to narrow down. -- "Bureaucrat Conrad, you are

Re: Import error in settings.py

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 17:41 -0800, Julien wrote: > Hi! > > I can't try this out at the moment as I don't have access to the code. > But I just thought I'd add the fact that forms.py is never compiled > (no trace of a forms.pyc). Should the __import__ function force the > compilation of a module

Re: Import error in settings.py

2008-02-12 Thread Julien
Hi! I can't try this out at the moment as I don't have access to the code. But I just thought I'd add the fact that forms.py is never compiled (no trace of a forms.pyc). Should the __import__ function force the compilation of a module when it's imported, or does it require that module to be

Re: Template Question - What if...

2008-02-12 Thread Peter
Cool, thanks for the tip. I took your latter suggestion and below is a rewrite of the django.template.loader.get_template method. The only additional requirement is the FS_DIR constant that I import from my settings file (which I was already using in settings.py to clean up my TEMPLATE_DIR path

Re: Import error in settings.py

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 14:12 -0800, Julien wrote: > Hi, > > Thanks for the tip. However I still get an ImportError: "No module > name MyModel". > > I tried the following: > klass = __import__(settings.MY_MODEL_FORM, {}, {}, '') > klass = __import__(settings.MY_MODEL_FORM, {}, {}, ['']) > klass

Re: Weird caching issue

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 13:40 -0800, [EMAIL PROTECTED] wrote: > I gave locmem a quick whirl, and it blew up too. At least it returned > an error on the external page: > Mod_python error: "PythonHandler django.core.handlers.modpython" > > Traceback (most recent call last): [...] > > TypeError:

Re: Raising exception when a template objects is not present or raise s exception.

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 13:11 -0800, Jeff wrote: > You can't raise an exception from a template short of writing a custom > template tag that would raise an uncaught exception. It is a better > practice to put that kind of logic in your model or view. To give a bit more information to the

Re: template UnicodeDecodeError at / 'utf8' codec can't decode byte 0xa9 in position 1393: unexpected code byte

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 16:18 -0800, Steve wrote: > Hi, > I get this error: > UnicodeDecodeError at / 'utf8' codec can't decode byte 0xa9 in > position 1393: unexpected code byte > The string that could not be encoded/decoded was: ight � 2006 > > The part of the static template it is complaining

Re: How popular is Django ?

2008-02-12 Thread Kenneth Gonsalves
On 12-Feb-08, at 6:22 PM, Hanne Moa wrote: >> http://www.therightsoft.com/softwaretechnologies/webframeworks > > Where's Drupal on this list? Drupal is not a web framework - it is a CMS. -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ Foss Conference for the

Re: template UnicodeDecodeError at / 'utf8' codec can't decode byte 0xa9 in position 1393: unexpected code byte

2008-02-12 Thread Julien
Hey, Try with "" like this: Copyright 2006-2008 .. On Feb 13, 11:18 am, Steve <[EMAIL PROTECTED]> wrote: > Hi, > I get this error: > UnicodeDecodeError at / 'utf8' codec can't decode byte 0xa9 in > position 1393: unexpected code byte > The string that could not be encoded/decoded was:

template UnicodeDecodeError at / 'utf8' codec can't decode byte 0xa9 in position 1393: unexpected code byte

2008-02-12 Thread Steve
Hi, I get this error: UnicodeDecodeError at / 'utf8' codec can't decode byte 0xa9 in position 1393: unexpected code byte The string that could not be encoded/decoded was: ight � 2006 The part of the static template it is complaining about is the © character: Copyright © 2006-2008 .. How

Re: Sharing session data between PHP and Django

2008-02-12 Thread Wes Winham
Alex, Wow. I guess today is definitely my lucky day. That Python serialization class you linked is perfect and the code samples are really helping me understand where I need to be tinkering. Like you, I'm still not sure how I'll go about integrating the authentication systems specifically. This

Re: Sharing session data between PHP and Django

2008-02-12 Thread Alex Ezell
I realize that I didn't talk too much about getting your Django authentication stuff specifically. I'm still working on that bit, but have moved ahead for right now. Our initial thoughts are to just call a Django login method from PHP after the PHP login. Since they are sharing a session

Re: Sharing session data between PHP and Django

2008-02-12 Thread Alex Ezell
Hi Wes, It's fortuitous that you ask this question today. I spent last Friday working all this out for our application. The overview is to setup Django to use a file-based session system and point it to the same files that PHP is using. Then override some methods to help Python read and write

Re: Django cannot be used by large web sites?

2008-02-12 Thread [EMAIL PROTECTED]
('^cart/', include('mysite.cart.urls')), On Feb 12, 8:12 am, Roboto <[EMAIL PROTECTED]> wrote: > ... I'm going to assume that they did that if they're building a > commercial website, otherwise it would have been pointless to bring > django in. > That being said, maybe they setup the urls to

Sharing session data between PHP and Django

2008-02-12 Thread Wes Winham
Hello, I'm in the process of switching my new development over to Django (goodbye PHP + my horribly mediocre custom framework). The only real tough problem to solve in getting the two sides of the application to play nice with eachother (for me) is session management. When I log in a user

transaction.commit_manually

2008-02-12 Thread Jeremy Dunck
Are people using the transaction.commit_manually decorator? I thought I understood it, but just learned that I don't. I'm using the transaction middleware and that's good for most of my purposes. I have another function called from lots of different views, and within that function, I wanted to

Re: Import error in settings.py

2008-02-12 Thread Julien
Hi, Thanks for the tip. However I still get an ImportError: "No module name MyModel". I tried the following: klass = __import__(settings.MY_MODEL_FORM, {}, {}, '') klass = __import__(settings.MY_MODEL_FORM, {}, {}, ['']) klass = __import__(settings.MY_MODEL_FORM, globals(), locals(), ['']) I

Re: Weird caching issue

2008-02-12 Thread [EMAIL PROTECTED]
I gave locmem a quick whirl, and it blew up too. At least it returned an error on the external page: Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "/usr/local/lib/python2.5/site-packages/mod_python/apache.py", line 299, in

Re: using mod_python to host several django apps on the same vhost?

2008-02-12 Thread [EMAIL PROTECTED]
Are your mod_python application servers behind another apache running mod_proxy? I solved the problem for my applications with middleware and a context processor. I have the front-end mod_proxy apache set a request header based on a Location directive and its then available to use in templates:

Re: exclude issue with M2M Field

2008-02-12 Thread Albert Hopkins
On Tue, 2008-02-12 at 13:55 -0600, James Bennett wrote: > On Feb 12, 2008 1:46 PM, Albert Hopkins <[EMAIL PROTECTED]> wrote: > > It seems that 'exclude'ing on a M2M field does not have the effect I > > anticipated. Am I doing something wrong? Basically I have the > > following models > > The

Re: How popular is Django ?

2008-02-12 Thread Jeff
Django is so popular that it barely even notices me. It walks right by me and sits with the popular kids in the lunch room. It even sits at the back of the bus. Yesterday, Django took my lunch money. On Feb 12, 6:00 am, tom <[EMAIL PROTECTED]> wrote: > How popular is Django among other Python

Re: Raising exception when a template objects is not present or raise s exception.

2008-02-12 Thread Jeff
You can't raise an exception from a template short of writing a custom template tag that would raise an uncaught exception. It is a better practice to put that kind of logic in your model or view. On Feb 12, 2:40 pm, shabda <[EMAIL PROTECTED]> wrote: > I want my template to raise exception,

Re: Weird caching issue

2008-02-12 Thread Jeff
Does it happen with all cache backends? On Feb 12, 3:14 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Upon further investigation, it appears the feeds framework is not the > involved. Even getting a plain page I hit the same problem. As soon as > I make the call from the external site the

Re: Weird caching issue

2008-02-12 Thread [EMAIL PROTECTED]
Upon further investigation, it appears the feeds framework is not the involved. Even getting a plain page I hit the same problem. As soon as I make the call from the external site the django site freaks out when caching is turned on through memcache. On Feb 12, 12:08 pm, "[EMAIL PROTECTED]"

Re: How to make a simple employee attendance management system using Django?

2008-02-12 Thread [EMAIL PROTECTED]
How do you intend to capture the in time and out time for each employee? If you can collect that and get that (and the employees) into a database, reports over a period and for a particular employee aren't tough. On Feb 12, 8:53 am, "shashi.net" <[EMAIL PROTECTED]> wrote: > hey guys... i have

Re: exclude issue with M2M Field

2008-02-12 Thread James Bennett
On Feb 12, 2008 1:46 PM, Albert Hopkins <[EMAIL PROTECTED]> wrote: > It seems that 'exclude'ing on a M2M field does not have the effect I > anticipated. Am I doing something wrong? Basically I have the > following models The real problem is that the SQL necessary to do an exclude() and have it

exclude issue with M2M Field

2008-02-12 Thread Albert Hopkins
It seems that 'exclude'ing on a M2M field does not have the effect I anticipated. Am I doing something wrong? Basically I have the following models == class Platform(models.Model): name = models.Charfield(..., unique=True) class Release(models.Model): ... platforms =

Raising exception when a template objects is not present or raise s exception.

2008-02-12 Thread shabda
I want my template to raise exception, when an object is not preset or raises a exception. I am sure there is a setting for it, I just cant figure out where. Help? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Weird caching issue

2008-02-12 Thread [EMAIL PROTECTED]
So I'm attempting to implementent caching with memcached today -- yeah, yeah, I know, long overdue -- and am hitting a snag. The problem isn't with memcached, which webfaction so pleasantly has installed for me, or with setting up the caching in django, which seems to have gone pretty easily. I'm

Aishwariya Rai Latest Wallpapers

2008-02-12 Thread Zahoor
Donwload Latest Audio Video Songs, Watch Online Movies, Cool Wallpapers, and Lot More fun only on http://WallpaperSongs.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

[resolved] OperationalError from sqlite3 (was Re: On nginx+fastcgi server site works except for /admin/ Unhandled Exception)

2008-02-12 Thread Dave Dash
Hi Jarek, Modifying django.core.servers.fastcgi.py was just what I needed to find out where my "traffic jam" was. I had an OperationalError from my sqlite3 database. I not only had to update the permissions on sqlite3, but also on its containing directory. Worked like a charm. Hope this

Re: Django cannot be used by large web sites?

2008-02-12 Thread Brett Parker
On 12 Feb 06:12, Roboto wrote: > > ... I'm going to assume that they did that if they're building a > commercial website, otherwise it would have been pointless to bring > django in. > That being said, maybe they setup the urls to mimic RoR url system? > /cart/edit > /cart/save >

How to make a simple employee attendance management system using Django?

2008-02-12 Thread shashi.net
hey guys... i have been asked to make a simple application that stores the "in-time" and "out-time" of employees everyday, and the application should also have the features to show the reports such as details of a particular employee, activity during a stated period and so on... till now i have

Re: User.get_profile() behaviour questions

2008-02-12 Thread Roboto
lol sorry.. yes you're right malcom. it's user.get_profile without parenthesis in templates =P Thanks for your assistance On Feb 12, 9:22 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-02-12 at 06:06 -0800, Roboto wrote: > > Hey all, > > > I guess I'm lazy with sql queries,

Re: Is this a OneToOne or something else?

2008-02-12 Thread Hanne Moa
On Feb 12, 2008 2:58 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-02-12 at 14:51 +0100, Hanne Moa wrote: > > On Feb 12, 2008 2:23 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Tue, 2008-02-12 at 14:13 +0100, Hanne Moa wrote: > > > > 1. how do I get "Region:

Re: User.get_profile() behaviour questions

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 06:06 -0800, Roboto wrote: > Hey all, > > I guess I'm lazy with sql queries, so I've got a quick question. I > just pulled a set of results from a table that foreign_keys the User > table. > > But at the same time I'd like to access the get_profile data for each > one of

Re: Strange AttributeError when import'ing twitter

2008-02-12 Thread gmacgregor
On Feb 11, 11:47 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > Don't suppose you called your project or app 'twitter' also? Or any > other file on pythonpath? Nope. Nothing but the twitter module goes by that name... Greg --~--~-~--~~~---~--~~ You received this

Re: Import error in settings.py

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 06:08 -0800, Julien wrote: > Oh, I see!! Thanks for the explanation. > > So, what I'm trying to achieve is to specify a model class as a > setting that can be used in some views. > > As you've said, doing "from myapp.forms import MyModelForm" is not > possible, so I

Re: Django cannot be used by large web sites?

2008-02-12 Thread Roboto
... I'm going to assume that they did that if they're building a commercial website, otherwise it would have been pointless to bring django in. That being said, maybe they setup the urls to mimic RoR url system? /cart/edit /cart/save /cart/details/item/qty/save =P haha yea, I'm reaching here on

Re: Import error in settings.py

2008-02-12 Thread Julien
Oh, I see!! Thanks for the explanation. So, what I'm trying to achieve is to specify a model class as a setting that can be used in some views. As you've said, doing "from myapp.forms import MyModelForm" is not possible, so I tried: MY_MODEL_FORM = 'myapp.forms.MyModelForm' And then, in some

User.get_profile() behaviour questions

2008-02-12 Thread Roboto
Hey all, I guess I'm lazy with sql queries, so I've got a quick question. I just pulled a set of results from a table that foreign_keys the User table. But at the same time I'd like to access the get_profile data for each one of the users. I know that if you do: print e.blog #hits the

Re: Is this a OneToOne or something else?

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 14:51 +0100, Hanne Moa wrote: > On Feb 12, 2008 2:23 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Tue, 2008-02-12 at 14:13 +0100, Hanne Moa wrote: > > > 1. how do I get "Region: 'someregion (somelocation)'" in the admin > > > interface instead of "Region:

Re: Is this a OneToOne or something else?

2008-02-12 Thread Hanne Moa
On Feb 12, 2008 2:23 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-02-12 at 14:13 +0100, Hanne Moa wrote: > > 1. how do I get "Region: 'someregion (somelocation)'" in the admin > > interface instead of "Region: '-'"? > > I don't know why this is happening. ForeignKeys

Re: Import error in settings.py

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 05:35 -0800, Julien wrote: > Hi there, > > I'm trying import a class definition in settings.py with: > from myapp.models import MyModel Oh, don't do that. Very bad. :-( Importing models means they start to get registered with the app_cache (to track reverse relations,

Import error in settings.py

2008-02-12 Thread Julien
Hi there, I'm trying import a class definition in settings.py with: from myapp.models import MyModel But the compilation fails and I get the following error in the console: "Error: Can't find the file 'settings.py' in the directory containing 'E:\\workspace\\myproject\\manage.py'. It appears

Re: Is this a OneToOne or something else?

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 14:13 +0100, Hanne Moa wrote: > On Feb 12, 2008 1:56 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Tue, 2008-02-12 at 13:36 +0100, Hanne Moa wrote: > > > class Region(models.Model): > > > id = models.IntegerField(unique=True, primary_key=True) > > >

Re: Is this a OneToOne or something else?

2008-02-12 Thread Hanne Moa
On Feb 12, 2008 1:56 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-02-12 at 13:36 +0100, Hanne Moa wrote: > > class Region(models.Model): > > id = models.IntegerField(unique=True, primary_key=True) > > region = models.CharField(maxlength=32) > > location =

Introducing myself

2008-02-12 Thread jfricci
Hello, My name is John Ricci and I run a startup networking organization in Silicon Valley (basnorg) as well as an investor group (usangelinvestorscom). I am always interested in looking at new deals (preferably but not necessarily local) and talking to new private investors, great

Re: Is this a OneToOne or something else?

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 13:36 +0100, Hanne Moa wrote: > On Feb 12, 2008 12:51 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Tue, 2008-02-12 at 12:44 +0100, Hanne Moa wrote: > > > On Feb 12, 2008 12:16 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > On Tue, 2008-02-12 at 12:11

Re: How popular is Django ?

2008-02-12 Thread Hanne Moa
On Feb 12, 2008 12:00 PM, tom <[EMAIL PROTECTED]> wrote: > How popular is Django among other Python Web Frameworks (TurboGears, > Pylons, Webware, CherryPy...) ? > > I found a link on the subject : > > http://www.therightsoft.com/softwaretechnologies/webframeworks Where's Drupal on this list?

Re: Is this a OneToOne or something else?

2008-02-12 Thread Hanne Moa
On Feb 12, 2008 12:51 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-02-12 at 12:44 +0100, Hanne Moa wrote: > > On Feb 12, 2008 12:16 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Tue, 2008-02-12 at 12:11 +0100, Hanne Moa wrote: > > > > Each org only has a single

newforms-admin: howto define custom ModelForm for usage in admin interface

2008-02-12 Thread lowshoe
hi, i'm trying to use a custom form for one of my models inside the admin interface . i need this to do custom validation. so far, i have created a DocumentForm that inherits from newforms.ModelForm and define my Model as model attribute inside the Meta class (as seen at

Re: Is this a OneToOne or something else?

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 12:44 +0100, Hanne Moa wrote: > On Feb 12, 2008 12:16 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Tue, 2008-02-12 at 12:11 +0100, Hanne Moa wrote: > > > Each org only has a single region, and in the old web-interface the > > > region-data is shown as a

Re: Is this a OneToOne or something else?

2008-02-12 Thread Hanne Moa
On Feb 12, 2008 12:16 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-02-12 at 12:11 +0100, Hanne Moa wrote: > > Each org only has a single region, and in the old web-interface the > > region-data is shown as a drop-down-list () where you can > > choose one and only one. So:

Re: How popular is Django ?

2008-02-12 Thread Kenneth Gonsalves
On 12-Feb-08, at 4:30 PM, tom wrote: > How popular is Django among other Python Web Frameworks (TurboGears, > Pylons, Webware, CherryPy...) ? one statistic - read what you want into it. members in IRC: August 2005: Django 45, TG 45, ROR 400 February2008: django 339 and growing, TG 52, ROR

Re: Is this a OneToOne or something else?

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 12:11 +0100, Hanne Moa wrote: > Just starting out with Django here... > > In an existing database whose existing table-structure must remain > unchanged by django, I have several cases of what looks like a > OneToOne, for instance: > > The table/class org has a field

Re: How popular is Django ?

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 03:00 -0800, tom wrote: > How popular is Django among other Python Web Frameworks (TurboGears, > Pylons, Webware, CherryPy...) ? > > I found a link on the subject : > > http://www.therightsoft.com/softwaretechnologies/webframeworks There's no mention at all at that site

Is this a OneToOne or something else?

2008-02-12 Thread Hanne Moa
Just starting out with Django here... In an existing database whose existing table-structure must remain unchanged by django, I have several cases of what looks like a OneToOne, for instance: The table/class org has a field region which points to the id on the table/class region (dump from

Re: How popular is Django ?

2008-02-12 Thread Jarek Zgoda
tom napisał(a): > How popular is Django among other Python Web Frameworks (TurboGears, > Pylons, Webware, CherryPy...) ? > > I found a link on the subject : > > http://www.therightsoft.com/softwaretechnologies/webframeworks > > ...but I'm am looking for further resources. Thanks in advance

How popular is Django ?

2008-02-12 Thread tom
How popular is Django among other Python Web Frameworks (TurboGears, Pylons, Webware, CherryPy...) ? I found a link on the subject : http://www.therightsoft.com/softwaretechnologies/webframeworks ...but I'm am looking for further resources. Thanks in advance for your posts !

Re: Issue on joining objects/table

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 11:13 +0100, Nicolas Steinmetz wrote: > Malcolm Tredinnick a écrit : [...] > > > > > {% for item in user_skill %} > >{% ifchanged %} > > {% ifnotequal forloop.counter 1 %} > > > > {% endifnotequal %}

Re: Issue on joining objects/table

2008-02-12 Thread Nicolas Steinmetz
Malcolm Tredinnick a écrit : > Ah, ok. So one solution is to twist your initial template a little bit. > Normally, whenever you insert the outer "li" element (the headings), you > really want to insert "New Heading" -- closing the > previous inner section, displaying a heading and then starting

Re: Issue on joining objects/table

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 09:40 +0100, Nicolas Steinmetz wrote: > Malcolm Tredinnick a écrit : > > > You don't mention which of the "ul" elements is coming out empty, but I > > guess this happens in the case where user_skill is empty. So wrap that > > section in an {% if user_skill %} template tag

Re: OR lookups

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 00:56 -0800, Julien wrote: > Thanks a lot for the tips! I think I'll go for the custom merging in > Python. > > One stupid question. Is there any estimation as to when queryset- > refactor might be merged to trunk? I know it's hard to answer, but > should it be more like 1

Re: OR lookups

2008-02-12 Thread Julien
Thanks a lot for the tips! I think I'll go for the custom merging in Python. One stupid question. Is there any estimation as to when queryset- refactor might be merged to trunk? I know it's hard to answer, but should it be more like 1 month, 6 month, 1 year away? :) The wiki says it's pretty

Re: Issue on joining objects/table

2008-02-12 Thread Nicolas Steinmetz
Malcolm Tredinnick a écrit : > You don't mention which of the "ul" elements is coming out empty, but I > guess this happens in the case where user_skill is empty. So wrap that > section in an {% if user_skill %} template tag (wrap it around the > and close it after the closing ). Oups I was

Re: On nginx+fastcgi server site works except for /admin/ Unhandled Exception

2008-02-12 Thread Jarek Zgoda
Malcolm Tredinnick napisał(a): > Secondly, any application that throws an UnhandledException must surely > be logging the details somewhere (or the maintainer should be taken out > for a quick conversation with some of the more hefty participants at the > next conference he attends). So look in

Re: On nginx+fastcgi server site works except for /admin/ Unhandled Exception

2008-02-12 Thread Malcolm Tredinnick
On Tue, 2008-02-12 at 00:02 -0800, Dave Dash wrote: > I'm getting the dreaded: > > Unhandled Exception > > An unhandled exception was thrown by the application. > > > Whenever I try to access /admin on my app under nginx+fastcgi. > > To be sure, I tried the development server on the same

Re: On nginx+fastcgi server site works except for /admin/ Unhandled Exception

2008-02-12 Thread Jarek Zgoda
Dave Dash napisał(a): > I'm getting the dreaded: > > Unhandled Exception > > An unhandled exception was thrown by the application. > > > Whenever I try to access /admin on my app under nginx+fastcgi. > > To be sure, I tried the development server on the same machine and / > admin/ gave me

On nginx+fastcgi server site works except for /admin/ Unhandled Exception

2008-02-12 Thread Dave Dash
I'm getting the dreaded: Unhandled Exception An unhandled exception was thrown by the application. Whenever I try to access /admin on my app under nginx+fastcgi. To be sure, I tried the development server on the same machine and / admin/ gave me the django admin prompt as expected. I'm