Re: Fast hosting for Django

2006-09-25 Thread David Sissitka
With a VPS you could install mod_python, either building Apache with it or by loading it dynamically. For more information, see the documentation: http://www.modpython.org/live/current/doc-html/installation.htmlI know for a fact that KnownHost would help you get things up and running if you're not

Re: Fast hosting for Django

2006-09-25 Thread iain duncan
On Mon, 2006-25-09 at 03:01 -0400, David Sissitka wrote: > With a VPS you could install mod_python, either building Apache with it or by > loading it dynamically. For more information, see the documentation: > > http://www.modpython.org/live/current/doc-html/installation.html > > I know for a f

Re: Error in formatting:can't adapt

2006-09-25 Thread [EMAIL PROTECTED]
Malcolm Tredinnick wrote: > It looks like you can drop the filter(...) call there and just use the > get(..) call on it's own. The user_id will be enough to get the unique > User, if it's valid. Thanks Malcolm, that fixed the problem. I misunderstood the db API docs, that's why i was using filt

Re: Passing context information through a HttpResponseRedirect

2006-09-25 Thread Laundro
I fixed the problem by having each view pass context, request and template data to a Main() view. def Main(request, context, template): # Main does what it has to do with the request information (login info, search strings, session vars...) return render_to_response(context, template) (This is f

Re: Login crazyness...

2006-09-25 Thread Laundro
Be sure to always pass the request information from one view to another. The request object holds session information and the user object (amongst others). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Re: The Holy Grail of Web Development

2006-09-25 Thread Daniel Roseman
Tom Smith wrote: > Komodo is a much bigger beast of an IDE. It can let me send args to > manage.py, it doesn't foul up indentation, it is a much more well- > tested and reliable tool AND it runs on most platforms ( I guess > something like Eclipse could do this but for me that is way too

Does raising 404 makes use django's auth system?

2006-09-25 Thread Filipe
Raising an HTTP 404 while having DEBUG = False in settings.py makes a webpage show up with nothing but a traceback with the following error: [...] File "/usr/lib/python2.4/site-packages/django/core/context_processors.py", line 17, in auth return { AttributeError: 'ModPythonRequest' object

Re: The Holy Grail of Web Development

2006-09-25 Thread Holger Schurig
> knock-on errors)... and lastly... ScrIDE doesn't let me run > manage.py with arguments. It let's you. You can modify manage.py, and then you can change the values in sys.argv to your pleasure. I, for example, do this: if __name__ == "__main__": # Shut up the initial syncdb im

Re: Does raising 404 makes use django's auth system?

2006-09-25 Thread Malcolm Tredinnick
On Mon, 2006-09-25 at 09:14 +, Filipe wrote: > Raising an HTTP 404 while having DEBUG = False in settings.py makes a > webpage show up with nothing but a traceback with the following error: > > [...] > File > "/usr/lib/python2.4/site-packages/django/core/context_processors.py", > line 17, i

Re: Does raising 404 makes use django's auth system?

2006-09-25 Thread Filipe
I'm running django on linux, and using the latest trunk. When I got this particular traceback I was using mod_python, but the same happens using the built-in webserver (only, "ModPythonRequest" is replaced with "WSGIRequest" in that case). The full traceback follows: ___

Re: Does raising 404 makes use django's auth system?

2006-09-25 Thread Malcolm Tredinnick
On Mon, 2006-09-25 at 10:28 +, Filipe wrote: > I'm running django on linux, and using the latest trunk. > When I got this particular traceback I was using mod_python, but the > same happens using the built-in webserver (only, "ModPythonRequest" is > replaced with "WSGIRequest" in that case). >

Re: problem with custom validator and booleanfields

2006-09-25 Thread Malcolm Tredinnick
On Sun, 2006-09-24 at 15:13 +, simon101 wrote: > Hi > > I have a model with a boolean field which has a custom validator > defined in the validator_list parameter. The validator has to run > whenever the form is submitted, whether the checkbox is ticked or not. > I have set the 'always_test'

Re: Re: One-To-Many doesn't return a list.

2006-09-25 Thread Malcolm Tredinnick
On Sun, 2006-09-24 at 13:40 -0300, Ramiro Morales wrote: > Hi guys, > > On 9/24/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: [...] > > That said, looking a the code over which Jay has thrown a spotlight, > > it looks suspiciously like some pre-magic-removal code has been left > > behind - s

Re: Fast hosting for Django

2006-09-25 Thread Guest007
÷ ÓÏÏÂÝÅÎÉÉ ÏÔ 25 ÓÅÎÔÑÂÒÑ 2006 02:20 iain duncan ÎÁÐÉÓÁÌ(a): > I know this has been asked many times, but as new hosting solutions pop > up continually, just wanted to check on recommendations for good fast > shared hosting that is Django friendly and reliable for business > clients. How about dj

Re: Does raising 404 makes use django's auth system?

2006-09-25 Thread Michael Radziej
Malcolm Tredinnick schrieb: > OK, this is the problem line: RequestContext tries to access "user". The > reason we are using RequestContext is because of ticket #688 (which is > quite a reasonable change). However, we have to conditionally avoid this > user requirement. Well, as a work around, i

Re: automatically fill in some fields of a form, storing authenticated user

2006-09-25 Thread Andres Luga
Hi, the following are the suggestions of a Python and Django newbie, so take with a load of salt. Also the examples are not direct copy-paste and therefore might not work directly. On 9/22/06, Benedict Verheyen <[EMAIL PROTECTED]> wrote: > then data is looked up in another database and some of th

Simple Template Syntax Question: ljust

2006-09-25 Thread Tom Smith
Can someone show me how to get x number of chars from a variable in a template please... I've tried... {{product.title | ljust 40}} and other formats but can't get it to work... thanks --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Simple Template Syntax Question: ljust

2006-09-25 Thread Tim Shaffer
It should be {{ product.title|ljust:"40" }} --~--~-~--~~~---~--~~ 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, s

Re: Simple Template Syntax Question: ljust

2006-09-25 Thread Martin Glueck
> I've tried... > > {{product.title | ljust 40}} > > and other formats but can't get it to work... You can use the slice filter: {{product.title | slice:":40" }} or if you what the to truncate only at workbrakes, you can use the truncatewaords filter: {{product.title | truncate:"5" }} Marti

Re: Re: Re: One-To-Many doesn't return a list.

2006-09-25 Thread Russell Keith-Magee
On 9/25/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > For when somebody gets to have a look at this (I might get time in the > next couple of days), some other related tickets are #1816 and #2262. #1816 and #2243 are this bug; #2751 is already marked as a duplicate; #2262 is slightly diff

generic views : how i'd like to have it

2006-09-25 Thread xaranduu
I want to build a generic view for all of my objects and according to the documentation (http://www.djangoproject.com/documentation/url_dispatch/#captured-parameters) it is possible to capture a parameter and forward it to the view . Target is to get completely automated generic views, without ha

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

Re: Fast hosting for Django

2006-09-25 Thread Remi
Just a few comments about WebFaction. > I am a WebFaction customer, definitely not a bad company. A few thoughts > about WebFaction: > > 1) It's a one man show, at least, support is. WebFaction started with just 3 people but we're growing quite rapidly right now so expect to see more people soon

Template inclusion with UTF-8 BOM (bug?)

2006-09-25 Thread Enrico
Hi, I noticed that when a call a template encoded with UTF-8 with BOM using an inclusion tag the BOM gets printed and sometimes can mess with the layout. It took me some time to find out that the extra BOM's were resulting in an extra margin. Maybe the BOM should be kept only on the first (base

Unknown column error when I add a field

2006-09-25 Thread Tool69
Hi, I'm totally new to django, I've made a little blog application and my original template is like this one: class News(models.Model): title = models.CharField(maxlength=255, verbose_name="Titre du billet") text = models.TextField(verbose_name="Contenu") keywords = models.CharField(m

Tutorial for including content across all pages

2006-09-25 Thread keukaman
Is there a tutorial that shows a step-by-step description of how to include content from one application in all pages on a site? I'm building a site that will have 5 headlines in a "left nav" area of the site. Those headlines will carry through all pages. Each headline will link to a story in a "

booleanField as Core=True for deleting inline edited objects

2006-09-25 Thread littleswo
Hi everyone, i would like to have foreignkey related objects to be deletable in the admin via a simple checkbox. Can i do so via setting a boolean field to core=True in the related object or is that not supported as a boolean field is never empty? Greetings, vb --~--~-~--~~---

Django HTML class

2006-09-25 Thread gkelly
My apologies if this is in the documentation somewhere, I have not been able to find it. Is there a django HTML class that I can import in my views? Basically, I have a database table with columns for describing an HTML form element. So an entry might look like: label=Name, type=text, maxlength=6

Help me see the big picture

2006-09-25 Thread trond
I first read about Django 3 days ago. Now I try to make myself a blog. I want to show data from different apps and sql-tables on the same page. My frontpage should show a blog, my friends birthdays and qoutes. With Generic-views I have made a simple blog, but on the same page, I want to show my f

QuerySet filters & AJAX

2006-09-25 Thread Robert
Hi, I've managed to implement the Changelist class from the Admin in my own view. I needed to get the list_filter in my own view. Changed filters display from lists to selects. Now I have my model listed in a table, and can sort/filter by some records. I also implemented a jumpTo() javascript, s

Request member availability in model managers or models

2006-09-25 Thread PoBK
Hi, I've just spent the last few hours looking around Django site, and google and the mailing lists for any hints on the following problem. I need to implement functionality similar to that of the django.contrib.sites module, the difference being that value of what would be the SITE_ID setting,

show_all_rows = False returns db error message

2006-09-25 Thread schotm
Hi i am trying to use the RowLevelPermissions and after creating the table(using syncdb) i set show_all_rows = False this resulted in the follow message: "Database error Something's wrong with your database installation. Make sure the appropriate database tables have been created, and make sure

Errors in model validation

2006-09-25 Thread Lorenzo Bolognini
Hi all, I have a problem with the app below (SVN repo with read access) and i tried everything to fix it. Probably u guys can help. It seems to me some problem with namespace import, particularly the *order* in which the names are imported. The code in the repo is already broken but u can "fix i

Login form on every page, and dealing with test cookie

2006-09-25 Thread Cashman Andrus
I'm building a site with a username/password login form on ever page. (You know, up in the top right corner, and the form gets replaced with "Welcome username, options, logout" links when logged in.) Pretty straightforward, except for an issue with test cookies. When using this embedded form, in

error when deleting model with ManyToManyField

2006-09-25 Thread zenx
TypeError at /admin/artistas/artista/asdf/delete/ getattr(): attribute name must be string this is the many to many field. when I delete it from the model everything works well but when that field is in the model i get the type error. artistas_relacionados = models.ManyToManyField('self',bla

Validation models error

2006-09-25 Thread [EMAIL PROTECTED]
Hi there, I have a problem with a project (svn repo below) and i tried everything to fix it. Probably u guys can help. It seems to me some problem with namespace import, particularly the *order* in which the names are imported. The code in the repo is already broken but u can "fix it" by comment

Admin site: verbose_name not used in list_display for a foreign key

2006-09-25 Thread gkelly
I think this may be a bug (or feature request). If I define a ForeignKey field 'my_field' in a class and set Meta.list_display = ('my_field','other_field') and Meta.verbose_name = 'My Verbose Field' then in the Admin site, the heading for 'my_field' doesn't use the verbose_name, but rather the p

Interesting experiment with fcgi, apache2 and django-0.95

2006-09-25 Thread Art Vodolazsky
Hi to all! Experiment is to create online realtime game with flash+ajax on the client side and something like web service based on django (django is used for example because of its good python ORM) on the server side. Now its just experiment and is on the tech testing stage =) So, we start small

validator_list with checkboxes

2006-09-25 Thread simon101
My first post, so hi everybody. I have a model that has a checkbox field called storage_Required. The field has a custom generator defined in the validator_list parameter. The validator needs to be run whenever the form is submitted, whether the checkbox is ticked or not. Unfortunately the v

Error always when deleting objects with ManyToMany (self) relationships

2006-09-25 Thread zenx
Hi, I get always the following error when deleting objects with ManyToMany(self) relationships in the admin. Have tried with different models and always getting the same error. Doesn't the admin interface support ManyToMany relationships with the same table? TypeError at /admin/person/person/2/de

Running Multiple Versions of Django (91 and trunk) on the same machine

2006-09-25 Thread [EMAIL PROTECTED]
I'm trying to run multiple versions of Django on OS X to support applications written under different code. After searching ad nauseum, I think I'm very close, but I can't get it working. I'd like to be able to choose the Django version, either through the development web server, or through mod_py

Re: Unknown column error when I add a field

2006-09-25 Thread James Punteney
When you add a new field to a model you currently have to manually add the field to the database as well. With webfaction this is easiest to do by using the MysqlAdmin through their control panel. If you aren't sure what type of field it needs to be you can run the manage.py sql to get an output

Re: Unknown column error when I add a field

2006-09-25 Thread James Bennett
On 9/20/06, Tool69 <[EMAIL PROTECTED]> wrote: > But now, I received an error message saying : > (1054, "Unknown column 'news_news.supplementary_image' in 'field > list'") When you change your model, you also have to make changes to your database to correspond. Django does not currently offer any

Re: Unknown column error when I add a field

2006-09-25 Thread Andy Dustman
On 9/20/06, Tool69 <[EMAIL PROTECTED]> wrote: > > Hi, > I'm totally new to django, I've made a little blog application and my > original template is like this one: > > class News(models.Model): > title = models.CharField(maxlength=255, verbose_name="Titre du > billet") > text = models.TextF

Re: Login crazyness...

2006-09-25 Thread John M
Thanks for the feedback... Karen Tracey wrote: > Shots in the dark -- you are passing a RequestContext, not a regular > old Context, into your main template? Karen how would I know that? I'm not passing anything into my templatles except the call by except whatever the Render_to_Response does.

Re: Errors in model validation

2006-09-25 Thread [EMAIL PROTECTED]
You can disregard this thread. This was a problem of circular references that i fixed over the weekend (before the message was moderated) by passing the ForeignKey the string of the Model name instead of the object (as per Django documentation!) Also please disregard other messages like these (s

Re: automatically fill in some fields of a form, storing authenticated user

2006-09-25 Thread Holger Schurig
> I think ajax tech will very suit for these things. Because you Recently there where browser exploits that utilized JavaScript. So it *CAN* happen that some people will turn JavaScript off. In this case your Ajax method doesn't work anymore. --~--~-~--~~~---~--~---

Re: MacPorts package

2006-09-25 Thread Jay Parlar
On 9/26/06, Jon Atkinson <[EMAIL PROTECTED]> wrote: > > 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 el

Re: Login crazyness...

2006-09-25 Thread Karen Tracey
John M wrote: > I'm not passing anything into my > templatles except ... whatever the Render_to_Response > does. ... You need to pass a RequestContext as the 2nd argument to render_to_response. See: http://www.djangoproject.com/documentation/templates_python/ (Search for RequestContext, it's

Re: Tutorial for including content across all pages

2006-09-25 Thread Rob Hudson
I think what you want is this: http://www.djangoproject.com/documentation/templates_python/#writing-custom-template-tags --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: show_all_rows = False returns db error message

2006-09-25 Thread Jay Parlar
On 9/20/06, schotm <[EMAIL PROTECTED]> wrote: > > Hi i am trying to use the RowLevelPermissions and after creating the > table(using syncdb) i set show_all_rows = False this resulted in the > follow message: > > "Database error > > Something's wrong with your database installation. Make sure the >

Re: Unknown column error when I add a field

2006-09-25 Thread Tool69
Thanks to all, I'm sorry for the late, but I cannot see my post before. I solved the problem with your help, see you, 6TooL9 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Re: Fast hosting for Django

2006-09-25 Thread David Sissitka
In case anyone is wondering, that is Remi from WebFaction, and that's also why I am a WebFaction customer. :)On 9/25/06, Remi < [EMAIL PROTECTED]> wrote: Just a few comments about WebFaction.> I am a WebFaction customer, definitely not a bad company. A few thoughts> about WebFaction:>> 1) It's a on

unique argumennt for models.BooleanField

2006-09-25 Thread david83
Hi, "unique=True" for models.BooleanField do not return error in admin interface. Any idea ? David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django

[OT] Python based syntax highlighter for HTML?

2006-09-25 Thread Rob Hudson
Geshi is written in PHP... Is there a Python equivalent? http://geshi.org/ --~--~-~--~~~---~--~~ 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

Re: Running Multiple Versions of Django (91 and trunk) on the same machine

2006-09-25 Thread Maximillian Dornseif
To test different versions of Python packages I usually use a brute-force approach: HAving 2 complete python installations. On a Mac there is one default python 2.3 installation at /usr/bin/python. Since I prefer 2.4 I have used Darwinpoorts to install a second Python Instance living at /opt/l

Template For Loops

2006-09-25 Thread brad
Hello. I am having a little trouble retreiving data from my models so that I can use the data in my templates to create a html select. The template creates the html select, but the select is not populated with any options, like I want it to. Thanks in advanced for any and all ideas to get this tem

A general place for a request.POST handler across all pages?

2006-09-25 Thread Rob Hudson
I'm building an app that is going to have many types of forms for user data (think surveys, little questions here and there, hidden forms, etc.) What I'd like to do is come up with a naming scheme for the field names so I can place a request.POST handler in one place that can parse the field n

Re: Template For Loops

2006-09-25 Thread Rob Hudson
In your view are you passing game_name into the template context? For more info: http://www.djangoproject.com/documentation/templates_python/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: [OT] Python based syntax highlighter for HTML?

2006-09-25 Thread Waylan Limberg
On 9/25/06, Rob Hudson <[EMAIL PROTECTED]> wrote: > > Geshi is written in PHP... Is there a Python equivalent? > http://geshi.org/ > I recently looked into this and wasn't very impressed with what I saw, unless all you want to do is highlight python code. Python is very self aware and py2html [1]

Re: Help me see the big picture

2006-09-25 Thread Jay Parlar
On 9/19/06, trond <[EMAIL PROTECTED]> wrote: > > I first read about Django 3 days ago. Now I try to make myself a blog. > > I want to show data from different apps and sql-tables on the same > page. My frontpage should show a blog, my friends birthdays and qoutes. > With Generic-views I have made

Re: Fast hosting for Django

2006-09-25 Thread ian
David Sissitka wrote: > In case anyone is wondering, that is Remi from WebFaction, and that's > also why I am a WebFaction customer. :) > > On 9/25/06, *Remi* < [EMAIL PROTECTED] > wrote: > > > Just a few comments about WebFaction. > > > I am a WebFaction custome

I'm so confused...

2006-09-25 Thread [EMAIL PROTECTED]
Ok, I decided that I don't want to spend $1,000s on other people coding my databases etc so I thought Django looked pretty good. I read some of the code and it seems pretty intuitive (with a lot of hard work!) Now my problem is understanding just what the hell is being said in all these setup tu

Re: Python based syntax highlighter for HTML?

2006-09-25 Thread Rob Hudson
Hmmm... I wonder how hard it would be to create a template filter for Django using SilverCity. It looks like SilverCity is the preferred highlighter for Trac: http://trac.edgewall.org/wiki/TracSyntaxColoring Though you say you've heard bad things. I'll have to do some deeper digging. Thanks,

Re: I'm so confused...

2006-09-25 Thread charles sibbald
Here is a brilliant intro to Djangohttp://www-128.ibm.com/developerworks/linux/library/l-django/?ca=dgr-btw01DjangoAndPythonand here is a brilliant intro to pythonhttp://www.greenteapress.com/thinkpython/"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: Ok,I decided that I don't want to spend $1,000s

Re: I'm so confused...

2006-09-25 Thread iain duncan
On Mon, 2006-25-09 at 20:20 +, [EMAIL PROTECTED] wrote: > Ok, > > I decided that I don't want to spend $1,000s on other people coding my > databases etc so I thought Django looked pretty good. I read some of > the code and it seems pretty intuitive (with a lot of hard work!) > > Now my probl

Re: I'm so confused...

2006-09-25 Thread [EMAIL PROTECTED]
Well Iain perhaps I should shut up and try it first! I've set up a laptop to try a clean install of python without corrupting my current webdev setup. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Project Layout When Using Multiple Sites, Revisited

2006-09-25 Thread Scott McCracken
I have a few questions regarding a past topic which is now closed to comments after 30 days of inactivity: http://groups.google.com/group/django-users/browse_thread/thread/ca0485ca0ce4da56/4cb89ff5aa5dcb5d?lnk=gst&q=sites&rnum=1#4cb89ff5aa5dcb5d My questions revolve around trying to have multiple

Re: I'm so confused...

2006-09-25 Thread Julio Nobrega
Ok Steven :) First of all, Django is not a "command line language". Django is a framework, a collection of practices and codes and data and functions that facilitate web development. Python is the programming language. It's what we use to open files, loop, add numbers, etc... It's a *ve

Re: I'm so confused...

2006-09-25 Thread iain duncan
On Mon, 2006-25-09 at 20:44 +, [EMAIL PROTECTED] wrote: > Well Iain perhaps I should shut up and try it first! > > I've set up a laptop to try a clean install of python without > corrupting my current webdev setup. If you're willing to try it, more power to you! I'd recommend picking up a co

Extending an existing model?

2006-09-25 Thread Edward A. Muller
What's the best way to extend an existing model in a new model/app? For instance I need to extend the existing user class to also include additional contact information. Although I could just write a seperate model that forms a one to one relationship with django.contrib.auth.User -- In

Re: Extending an existing model?

2006-09-25 Thread Scott McCracken
Edward A. Muller wrote: > What's the best way to extend an existing model in a new model/app? Edward, this is a common problem that has a variable solution depending on your needs. If you don't mind clearing your existing user data, you can use the reset command on your model: manage.py reset ap

Re: show_all_rows = False returns db error message

2006-09-25 Thread Chris Long
Try updating to the latest revision, there was a bug I fixed a few days ago that was causing this error for a lot of people. If it still doesn't work, please pastebin your model, and let us know the database system you are using and the steps taken. Chris --~--~-~--~~~--

Re: I'm so confused...

2006-09-25 Thread charles sibbald
the book from http://www.greenteapress.com/thinkpython/ is the best introduction to python and programming around.The book is free and downloadable, and if you like it buy a copy.I have just about every python book printed by major publishers, and this is the only one that actually teaches you to p

Re: I'm so confused...

2006-09-25 Thread Matt Howell
I'd qualify the above advice with a different POV: If you're not a web developer, and you are setting up this site for a real business, you should seriously consider hiring someone with experience to set up your database and website. I don't want to dampen others' encouragement and enthusiasm, b

Re: Extending an existing model?

2006-09-25 Thread Edward A. Muller
I don't think I've explained myself well enough. I'm working on a new app. I need to extend the django.contrib.auth.User model to include additional fields. What's the best way to do that? One to One relationships? I read http://code.djangoproject.com/wiki/ModelInheritance, which is in develop

Re: I'm so confused...

2006-09-25 Thread [EMAIL PROTECTED]
Great replies! Yes I am a web designer by trade and I am fluent in XHTML and CSS. I'm learning jQuery and I thought it was about time I learnt how to code a CMS. If I get in any bother I'll post again! --~--~-~--~~~---~--~~ You received this message because you

Re: What I lost if run django under Python 2.3?

2006-09-25 Thread mamcxyz
What kind of bugs? My main trouble is PIL, simply I don't can install it under CentOS 3... --~--~-~--~~~---~--~~ 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: Extending an existing model?

2006-09-25 Thread Scott McCracken
Sorry for the misunderstanding the first time around! James Bennett wrote an amazing article about extending Django's built-in user and authentication system which may be of some help to you: http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model Hope it helps. --~--~---

Confused about generic.create_update

2006-09-25 Thread froke
Please look at http://pastebin.ca/182266 for my code. I'm trying to extend the User model (by using a ForeignKey) to a UserProfile. I have a template with a form to update some of the fields (all except: user, updated). When I submit the form, I get the following in errors (update_object.errors

Looking for models or apps for tutorials

2006-09-25 Thread Milan Andric
Hello, I'm planning to write something simliar to http://diveintopython.org/toc/index.html that works with django and the admin app. I figure I should try to leverage existing code since a tutorial/documentation application seems pretty typical for organizations. Does something like this exist

Job offer Python developer

2006-09-25 Thread Axandra
Hello, We're looking for a software developer Python/PHP/Ajax/MySQL for web applications (full time job). Maybe someone in this group might be interested in this job. Further information can be found here: About the job: http://www.Axandra.de/python About us: http://www.Axandra.de/company We'r

How tune fastcgi for django?

2006-09-25 Thread mamcxyz
I have a Centos 3 server with 128 MB of RAM and a limit of 30 processes... I'm using lighttpd + FastCGI When I start the server for first time I get 18 process. When later I need to run some change or restart or something, I get a error with fork, because the process limit is exhausted. How cal

Re: Running Multiple Versions of Django (91 and trunk) on the same machine

2006-09-25 Thread Eric Walstad
[EMAIL PROTECTED] wrote: > I put this in my .bash_login: > > export PYTHONPATH="/code/django91_src/django" > export PYTHONBIN="/code/django91_src/django/bin" > export > PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:$PYTHONBIN:$PATH" I use a couple bash

A new educational program written in django

2006-09-25 Thread [EMAIL PROTECTED]
I would like to announce a new project based on django. its a simulation / game used as an aid in teaching a introduction to broadcast class. " Philonet is a Multi-player on-line role-playing simulation (MORPG) of the tensions between art and commerce in electronic media industries. Named in ho

autoreload files stored on SMB share

2006-09-25 Thread Steve M
Hi, I have my Django project source files on a SMB share (it is a Linux file server). I am running the development server on a different Linux computer, which has the SMB share mounted (with smbfs). The autoreload feature causes the server to restart every second whether or not I have modified

Re: Template For Loops

2006-09-25 Thread Alan Green
On 9/26/06, brad <[EMAIL PROTECTED]> wrote: > > Hello. I am having a little trouble retreiving data from my models so > that I can use the data in my templates to create a html select. The > template creates the html select, but the select is not populated with > any options, like I want it to. Th

Re: Django HTML class

2006-09-25 Thread Malcolm Tredinnick
On Mon, 2006-09-18 at 22:08 +, gkelly wrote: > My apologies if this is in the documentation somewhere, I have not been > able to find it. > > Is there a django HTML class that I can import in my views? Basically, > I have a database table with columns for describing an HTML form > element. So

Re: Project Layout When Using Multiple Sites, Revisited

2006-09-25 Thread Scott McCracken
In continuing to diagnose this problem I have re-read the DJANGO_SETTINGS documentation. Under the section for Default Settings it says: "A Django settings file doesn't have to define any settings if it doesn't need to. Each setting has a sensible default value. These defaults live in the file dj

Re: Admin site: verbose_name not used in list_display for a foreign key

2006-09-25 Thread Malcolm Tredinnick
On Tue, 2006-09-19 at 20:54 +, gkelly wrote: > I think this may be a bug (or feature request). > > If I define a ForeignKey field 'my_field' in a class and set > Meta.list_display = ('my_field','other_field') and Meta.verbose_name = > 'My Verbose Field' > > then in the Admin site, the headin

Primary Key for auth_user is User.__str__() ??

2006-09-25 Thread gkelly
I have the following model and view: http://pastebin.ca/182428 If I manually edit /usr/local/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/contrib/auth/models.py and change User.__str__(self) to return a string like 'TEST'+self.username, then 'testuser' above will become 'TESTtestuser

Re: Template For Loops

2006-09-25 Thread brad
Now I am getting an error of: Exception Type: TypeError Exception Value:'tuple' object is not callable Exception Location: E:\dp1\mysite\..\mysite\urls.py in ?, line 10 And line ten of 'urls.py' is the following: (r'^select/$', 'mysite.polls.views.select') --~--~-~

Re: Template inclusion with UTF-8 BOM (bug?)

2006-09-25 Thread Malcolm Tredinnick
On Wed, 2006-09-20 at 02:52 +, Enrico wrote: > Hi, > > I noticed that when a call a template encoded with UTF-8 with BOM using > an inclusion tag the BOM gets printed and sometimes can mess with the > layout. > > It took me some time to find out that the extra BOM's were resulting in > an ex

Re: Request member availability in model managers or models

2006-09-25 Thread Malcolm Tredinnick
On Wed, 2006-09-20 at 12:18 -0700, PoBK wrote: > Hi, > > I've just spent the last few hours looking around Django site, and > google and the mailing lists for any hints on the following problem. > > I need to implement functionality similar to that of the > django.contrib.sites module, the diffe

Re: Running Multiple Versions of Django (91 and trunk) on the same machine

2006-09-25 Thread Graham Dumpleton
[EMAIL PROTECTED] wrote: > I'm trying to run multiple versions of Django on OS X to support > applications written under different code. After searching ad nauseum, > I think I'm very close, but I can't get it working. I'd like to be able > to choose the Django version, either through the developm

Re: Tutorial for including content across all pages

2006-09-25 Thread Malcolm Tredinnick
On Thu, 2006-09-21 at 02:43 +, keukaman wrote: > Is there a tutorial that shows a step-by-step description of how to > include content from one application in all pages on a site? > > I'm building a site that will have 5 headlines in a "left nav" area of > the site. Those headlines will carry

urls.py error

2006-09-25 Thread brad
Hello. I have recently received help on a related post that can be found here: http://groups.google.com/group/django-users/browse_thread/thread/272b01561e0eb43d But, I am getting an error now when I try to access my templates. Here's the error & thanks for all of the help that I may receive. Than

Re: What I lost if run django under Python 2.3?

2006-09-25 Thread Malcolm Tredinnick
On Mon, 2006-09-25 at 14:32 -0700, mamcxyz wrote: > What kind of bugs? > > My main trouble is PIL, simply I don't can install it under CentOS 3... You originally said you were using CentOS 4, but anyway. PIL works with Python 2.3, so it's a matter of either finding an RPM or building from source

Re: Error always when deleting objects with ManyToMany (self) relationships

2006-09-25 Thread Malcolm Tredinnick
On Sun, 2006-09-24 at 14:58 +, zenx wrote: > Hi, > I get always the following error when deleting objects with > ManyToMany(self) relationships in the admin. Have tried with different > models and always getting the same error. Doesn't the admin interface > support ManyToMany relationships wit

Django Forums

2006-09-25 Thread Cerberus
I decided to start up some forums for anyone that wants to join. I know many like google but these forums might be of use as well. Thanks. http://djangoforums.org/index.php --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

  1   2   >