Re: I'm so confused...

2006-09-25 Thread iain duncan
On Tue, 2006-26-09 at 07:50 +0530, Kenneth Gonsalves wrote: > > On 26-Sep-06, at 2:20 AM, Julio Nobrega wrote: > > > committed, and learn 2 programming languages, Javascript and Python, > > plus HTML. > > and SQL and CSS If you are new to coding, I would suggest that you focus on the python st

Re: Confused about generic.create_update

2006-09-25 Thread Russell Keith-Magee
On 9/26/06, froke <[EMAIL PROTECTED]> wrote: > When I submit the form, I get the following in errors > (update_object.errors): > 'user': ['This field is required.'] When you submit your form, you are using create_object/update_object to create/update your UserProfile instance, based upon the form

[SLIGHTLY OT] Adrian to speak at Web Directions North

2006-09-25 Thread Paulo
Apologies if this has been posted to the list already but I just learned about this. It looks like Adrian will be speaking at Web Directions North in Vancouver next Feb. 6-10 < http://north.webdirections.org/detail/speakers/#holovaty >. Pretty damn cool! --~--~-~--~~~-

Re: I'm so confused...

2006-09-25 Thread Alan Green
On 9/26/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 26-Sep-06, at 2:20 AM, Julio Nobrega wrote: > > > committed, and learn 2 programming languages, Javascript and Python, > > plus HTML. > > and SQL and CSS And let's not forget configuring your web server and database of choice. Ala

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

2006-09-25 Thread mamcxyz
Ok... The problem is that i don't be able to compile PIL, I'm getting this error and behaviour: http://www.mail-archive.com/image-sig@python.org/msg00859.html However the instrucctions not fix the problem... --~--~-~--~~~---~--~~ You received this message becau

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

2006-09-25 Thread [EMAIL PROTECTED]
Thanks to all who offered their suggestions. I'll document what worked for me: With a single installation of Python 2.4, I purposely did not symlink or install Django in the site-packages folder. I took out all references to PYTHONPATH and PYTHONBIN from my .bash_login file. I created a shell s

Re: Re: I'm so confused...

2006-09-25 Thread Brandon Aaron
Completely off-topic but wanted to say, right on with jQuery! I'm also learning Python and can't wait to get my hands dirty with Django. On 9/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Great replies! > > Yes I am a web designer by trade and I am fluent in XHTML and CSS. > > I'm learn

Re: autoreload files stored on SMB share

2006-09-25 Thread Malcolm Tredinnick
On Mon, 2006-09-25 at 23:12 +, Steve M wrote: > 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 cause

Re: I'm so confused...

2006-09-25 Thread Kenneth Gonsalves
On 26-Sep-06, at 2:20 AM, Julio Nobrega wrote: > committed, and learn 2 programming languages, Javascript and Python, > plus HTML. and SQL and CSS -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received

Re: urls.py error

2006-09-25 Thread brad
Thanks Shaun Li. I just figured that out, but thank you because I very well could have still been stumped until you posted. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Template For Loops

2006-09-25 Thread Malcolm Tredinnick
On Mon, 2006-09-25 at 17:25 -0700, brad wrote: > 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'

Re: urls.py error

2006-09-25 Thread brad
Opps. I posted before I treid all that I could try. I found my error thanks to you help Don Arbow and everybody's help on my last post. Thanks you all. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: urls.py error

2006-09-25 Thread Shaun Li
Just add ',' after ')' when only one note that tuple needed:(r'^select/$', 'mysite.polls.views.select'),-- Shaun Li --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: generic views : how i'd like to have it

2006-09-25 Thread Malcolm Tredinnick
On Mon, 2006-09-25 at 07:22 -0700, xaranduu wrote: > 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 . > >

Re: urls.py error

2006-09-25 Thread brad
from django.conf.urls.defaults import * urlpatterns = patterns('', # Example: # (r'^mysite/', include('mysite.apps.foo.urls.foo')), (r'^polls/$', 'mysite.polls.views.select'), (r'^polls/(?P\d+)/$', 'mysite.polls.views.detail'), (r'^polls/(?P\d+)/results/$', 'mysite.polls.views

Re: urls.py error

2006-09-25 Thread Don Arbow
On Sep 25, 2006, at 5:48 PM, brad wrote: > > 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.sel

Re: Project Layout When Using Multiple Sites, Revisited

2006-09-25 Thread Waylan Limberg
On 9/25/06, Scott McCracken <[EMAIL PROTECTED]> wrote: > > 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 sett

ManyToMany select widget vs. Internet Explorer

2006-09-25 Thread Hancock, David (DHANCOCK)
Title: ManyToMany select widget vs. Internet Explorer The users of the little Django system I build LOVE the _javascript_ widget to make multiple selections more straightforward. I’ve noted a difference in behavior of the widget between Firefox and IE. It behaves properly in Firefox (I can’t s

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

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

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

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

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: 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: 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: 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') --~--~-~

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

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

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

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

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

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

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

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

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

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

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

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

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

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 [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"

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

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

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

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

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

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

[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

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

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

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

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

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

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

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

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

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

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

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

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

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,

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

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

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

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

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 "

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

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

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

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

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

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

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

  1   2   >