syncdb for INSTALLED_APPS throws errors

2009-10-28 Thread sridharpandu
Hi, I ran the syncdb command to create the tables for INSTALLED_APPS. I get the errors as shown in the output below. Can someone tell me what's wrong. I am using a laptop that runs Django as well as the MySQL database . srid...@sridhar:~/finch/chennaicard$ python manage.py syncdb Traceback (most

Using django form

2009-10-28 Thread Denis Bahati
Hi all, I've gone through and successfully made the poll application and I've begun to play around and tried to change a few things. The first thing I would like to do is have the user vote without login to django admin. ie creating my own form where users can vote and update the database without u

Re: models.py

2009-10-28 Thread Vincent Jones
where would you suggest is a good basic learning site or book so i can become proficient? On Wed, Oct 28, 2009 at 1:05 PM, Karen Tracey wrote: > On Wed, Oct 28, 2009 at 12:50 PM, Vincent Jones wrote: > >> Thats what i don't understand.i am trying to learn django >> using"Learning Website dev

fabric autocompletion

2009-10-28 Thread Enrico
If anyone is interested, I've created a script for fabric autocompletion. http://github.com/ricobl/dotfiles/blob/master/bin/fab_bash_completion Extremelly lazy, I know! =) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Error with admin site while deploying Django on Apache

2009-10-28 Thread Piotr Górski
Yes, changing directory permissions helped. Thanks. 2009/10/29 Graham Dumpleton > > > > On Oct 29, 10:21 am, Christophe Pettus wrote: > > On Oct 28, 2009, at 4:01 PM, Piotr Górski wrote: > > > > > [Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] File "/ > > > usr/lib/python2.6/site-p

Re: Error with admin site while deploying Django on Apache

2009-10-28 Thread Piotr Górski
Yes, I must have overlooked that. Changing permissions helped. I really appreciate your help. Thanks. 2009/10/29 Christophe Pettus > > > On Oct 28, 2009, at 4:01 PM, Piotr Górski wrote: > > [Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] File "/ > > usr/lib/python2.6/site-packages/dj

Re: Error with admin site while deploying Django on Apache

2009-10-28 Thread Graham Dumpleton
On Oct 29, 10:21 am, Christophe Pettus wrote: > On Oct 28, 2009, at 4:01 PM, Piotr Górski wrote: > > > [Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32]   File "/ > > usr/lib/python2.6/site-packages/django/db/backends/sqlite3/base.py",   > > line 193, in execute > > [Wed Oct 28 23:58:42

Re: Error with admin site while deploying Django on Apache

2009-10-28 Thread Christophe Pettus
On Oct 28, 2009, at 4:01 PM, Piotr Górski wrote: > [Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] File "/ > usr/lib/python2.6/site-packages/django/db/backends/sqlite3/base.py", > line 193, in execute > [Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] return > Databa

Re: Error with admin site while deploying Django on Apache

2009-10-28 Thread Piotr Górski
On attempt to visit http://localhost/meth/admin/ I get the following in the Apache error log: [Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] mod_wsgi (pid=2655): Exception occurred processing WSGI script '/var/www/meth/apache/django.wsgi'. [Wed Oct 28 23:58:42 2009] [error] [client 85.2

Re: Error with admin site while deploying Django on Apache

2009-10-28 Thread Christophe Pettus
On Oct 28, 2009, at 3:44 PM, Piotr Górski wrote: > When I try to go to admin site, I get 500 internal > server error (admin site works perfectly well on development server). Is there anything interesting in the Apache error log? -- -- Christophe Pettus x...@thebuild.com --~--~-~--~

Re: I got stuck when modelling.

2009-10-28 Thread Javier Guerra
On Wed, Oct 28, 2009 at 5:19 PM, Wim De Hul wrote: > > Hi all, > > I'm trying to build a web application to keep track of my firewall > requests. > I want to keep track of hosts and hostgroups, but I got stuck in > creating the model. The problem is the following: > ...snip... > Now, a hostgroup

Error with admin site while deploying Django on Apache

2009-10-28 Thread Piotr Górski
I have a small Django website which I am trying to run on an Apache 2.2 HTTP-Server. The application is running fine using "python manage.py runserver". It is also running fine on Apache, except for the admin site. When I try to go to admin site, I get 500 internal server error (admin site works p

need help with saving/updating model record via admin interface

2009-10-28 Thread Andrew
Hello, I am pretty new to django and python and stuck with admin interface functionality. I have a model which represents a product, and I want to have functionality to add product via admin interface with picture and later to have possibility to update it using the same admin interface. The pr

I got stuck when modelling.

2009-10-28 Thread Wim De Hul
Hi all, I'm trying to build a web application to keep track of my firewall requests. I want to keep track of hosts and hostgroups, but I got stuck in creating the model. The problem is the following: I have 3 tables: Host -- id (Primary key) name ipaddress netmask creation_date Hostgroup -

Re: Replicating Google Groups in Django

2009-10-28 Thread Kai
Hi Julien and all, Better integration of mailing lists with Django has also been on my mind, and seeing this thread prompted two points: 1) The Satchmo app for Django has Mailman 2 integration already, here: http://bitbucket.org/chris1610/satchmo/src/tip/satchmo/apps/satchmo_ext/newsletter/mailm

Re: {% url in templates

2009-10-28 Thread Umapathy S
On Wed, Oct 28, 2009 at 8:03 PM, Gabriel . wrote: > > On Wed, Oct 28, 2009 at 4:16 PM, Umapathy S wrote: > > view_xyz is the view function. No arguments. > > > > exps is the application. pams is project. > > > > pams/urls.py > > > > urlpatterns = patterns('', > > # Example: > > # (r'^p

Re: {% url in templates

2009-10-28 Thread Gabriel .
On Wed, Oct 28, 2009 at 4:16 PM, Umapathy S wrote: > view_xyz is the view function.  No arguments. > > exps is the application.  pams is project. > > pams/urls.py > > urlpatterns = patterns('', >     # Example: >     # (r'^pams/', include('pams.foo.urls')), >     (r'pams/', include('pams.exps.url

Re: {% url in templates

2009-10-28 Thread Umapathy S
view_xyz is the view function. No arguments. exps is the application. pams is project. pams/urls.py urlpatterns = patterns('', # Example: # (r'^pams/', include('pams.foo.urls')), (r'pams/', include('pams.exps.urls')), pams/exps.urls.py from django.conf.urls.defaults import * fro

Re: {% url in templates

2009-10-28 Thread Gabriel .
On Wed, Oct 28, 2009 at 3:55 PM, Umapathy S wrote: > > Hello there, > > I am developing a page which has a left side menu.  This menu is a seperate > html and gets includes in the base.html template. > > To make it less vulnerable to url changes, I am trying to implement the {% > url %} > > in

Re: {% url in templates

2009-10-28 Thread David Zhou
What's your 'view_xyz'? Are you sure that view_xyz is accessible through an URL without any arguments? -- dz On Wed, Oct 28, 2009 at 2:55 PM, Umapathy S wrote: > Hello there, > > I am developing a page which has a left side menu. This menu is a seperate > html and gets includes in the base.h

{% url in templates

2009-10-28 Thread Umapathy S
Hello there, I am developing a page which has a left side menu. This menu is a seperate html and gets includes in the base.html template. To make it less vulnerable to url changes, I am trying to implement the {% url %} in lhsmenu.html view {% url exps.view_xyz as viewxyzurl

Re: Starting a daemon thread from Django view

2009-10-28 Thread Jumpfroggy
I'm in the same boat here. My plan is similar. >From views.py, record the job in the DB. Start the daemon thread. Return a "Processing..." response to the browser. When the daemon thread is done, it records it in the DB. The browser page uses AJAX to query the DB and update the status. When the

poll question

2009-10-28 Thread Ross
I've gone through and successfully made the poll application and I've begun to play around and tried to change a few things. The first thing I would like to do is have the poll such that the index view still displays the name of all the different polls, but the detail view displays a field where u

Re: models.py

2009-10-28 Thread Karen Tracey
On Wed, Oct 28, 2009 at 12:50 PM, Vincent Jones wrote: > Thats what i don't understand.i am trying to learn django > using"Learning Website development with django" when i get to the step of > using models it gives me the second script below and says to insert the top > script and after i typ

Re: models.py

2009-10-28 Thread Vincent Jones
Thats what i don't understand.i am trying to learn django using"Learning Website development with django" when i get to the step of using models it gives me the second script below and says to insert the top script and after i type ' python manage.py syncdb i get an *NameError : name 'models' i

Re: inspectdb Oracle

2009-10-28 Thread gillengam
Thank you very much. On 26 Ott, 15:03, "Mark (Nosrednakram)" wrote: > On Oct 26, 4:43 am, gillengam wrote: > > > Hi, I must develop an application that use Oracle database. The Oracle > > connection user is the owner of some tables, but he can only read two > > views (he is not the owner). I us

Re: FF3 src error in django admin calendar

2009-10-28 Thread Dan Ward
I've had the issue myself, and noticed a bug has been reported on the part of Django's DateTimeShortcuts.js script relying on the DOM to fetch the admin_media_prefix. A milestone of 1.2 has also been set by Jacob on the ticket, so fingers-crossed, other than the patch, an upcoming update will reso

Re: Versionable Models?

2009-10-28 Thread hcarvalhoalves
On Oct 27, 4:54 pm, Todd Blanchard wrote: > Total django noob here.  Rails/PHP/WebObjects refugee here. > > I'm starting a project where some models need to be fully versioned. > > IOW, record update is forbidden - every save to a changed model should   > result in a new record with a new version

Re: Haystack/Whoosh problem

2009-10-28 Thread nausikaa
Ok, looks like I found a solution: svn co http://svn.whoosh.ca/projects/whoosh/trunk/ whoosh cd whoosh sudo python setup.py install The site here suggests a patch but I think it's not up to date anymore: http://haystacksearch.org/docs/installing_engines.html On Oct 28, 4:10 pm, nausikaa wrot

My CKEditor Integration Pattern

2009-10-28 Thread Johan
I've outlined how I am currently integrating CKEditor into my admin site (http://tinyurl.com/ylfjumo) . This way obviously work very nicely for me. Is there any reason to go the more advanced route of creating a custom widget? --~--~-~--~~~---~--~~ You received this

Haystack/Whoosh problem

2009-10-28 Thread nausikaa
Hi there I've been trying to use haystack with the whoosh backend in my django app. I've installed whoosh and haystack using pip install Whoosh pip install django-haystack Then I added 'haystack' to my INSTALLED_APPS in settings.py and when trying to run python manage.py runserver it would say

My CKEditor Integration Pattern

2009-10-28 Thread Johan
I've outlined how I am currently integrating CKEditor into my admin site (http://johansdevblog.blogspot.com/2009/10/adding-ckeditor-to- django-admin.html ) . This way obviously work very nicely for me. Isthere any reason to go the more advanced route of creating a custom widget? --~--~-~--

My CKEditor Integration Pattern

2009-10-28 Thread Johan
I've outlined how I am currently integrating CKEditor into my admin site (http://johansdevblog.blogspot.com/2009/10/adding-ckeditor-to- django-admin.html) . This way obviously work very nicely for me. Is there any reason to go the more advanced route of creating a custom widget? --~--~-~-

Re: manage.py syncdb over web?

2009-10-28 Thread zayatzz
Can i also somehow capture the output, so i could see what actually was done? Alan. On Oct 28, 11:39 am, Daniel Roseman wrote: > On Oct 28, 8:45 am, zayatzz wrote: > > > Hi. > > > I have a problem with django project that is beeing hosting in a > > server where i have no shell access... so how

Re: Filtering on model methods

2009-10-28 Thread Mikhail Korobov
I think if your methods are really complex then the best you can do is to denormalise your DB. Make your calculated fields real fields in a table and update them in model's save method or using signals. Another way is to make them calculated by DB using triggers or DB views but I would prefer den

Re: Why does Django think my browser doesn't except cookies?

2009-10-28 Thread philip.bar...@impaerospace.com
Starting with that premise, I looked into what circumstances lead to IE rejecting cookies unread. As it turned out, the VM System clock was six weeks behind the times and IE was throwing out what appeared to be six week old cookies. After adjusting the VM system clock the problem went away. Than

Re: Filtering on model methods

2009-10-28 Thread pbzRPA
I think my problem is both 1 and 2. What happens when you want to use python modules to analyse the extra field? For Example: Database table History: id | Ordered | Delivered | Invoiced | 1 10 15 5 2 553 c

Re: upload problems

2009-10-28 Thread bax...@gretschpages.com
Thanks Karen. It was the path inconsistency. They were uploading, just not where I was expecting them to be. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Re: upload problems

2009-10-28 Thread Karen Tracey
On Wed, Oct 28, 2009 at 9:03 AM, bax...@gretschpages.com < mail.bax...@gmail.com> wrote: > > No, it's not that I can't see them on the site. They're not in the > filesystem. They're not there, anywhere, as far as I can see. > > I'm pretty sure you'd get an error in the admin if it had any trouble

Re: Filtering on model methods

2009-10-28 Thread Mikhail Korobov
Maybe I wrote a reply without undersanding what you need. You have 2 separate issues: 1. Want to sort and filter by calculated field 2. Want to create calculated field that is calculated in python Am I correct? 1) can be acheived using ".extra" method or aggregations http://docs.djangoproject

Re: If your on Dreamhost, vote for Django support

2009-10-28 Thread Mark Stahler
Good Luck. I have a Dreamhost account for my blog (Tried a dreamhost vps for a week and a half) and now I have a Linode slice for my Django/ Rails stuff. Quasi-democratic system as in you have the illusion of some kind of voice. On Oct 28, 1:17 am, Richard Jeong wrote: > Thanks to Daniels help,

Re: upload problems

2009-10-28 Thread bax...@gretschpages.com
On Oct 27, 8:39 pm, Karen Tracey wrote: > On Tue, Oct 27, 2009 at 5:57 PM, bax...@gretschpages.com < > > > > > > mail.bax...@gmail.com> wrote: > > > Not sure what's going on, but my images aren't uploading. > > > Have you changed ADMIN_MEDIA_PREFIX > (http://docs.djangoproject.com/en/dev/ref/s

inline model admin with generic relation (not exactly)

2009-10-28 Thread Viktor
hi, I have three models Blog: author Post: blog = foreignKey Attachments: content_type object_id Clearly, an Attachment might be related to a Post. Now I would like to have an admin page for Blog with Posts inlined, but allowing an easy editing of the attachments. It's important that the pag

Re: Versionable Models?

2009-10-28 Thread David De La Harpe Golden
Tim Chase wrote: > Back to the topic on hand, there are several ways to do > model-versioning. I'm partial to having a FooHistory table that > mirrors the parent table's fields but has a timestamp associated > with it. The most recent one is always the Foo object, but > before a Foo is sav

navigation

2009-10-28 Thread elminio
Hi, I use generic view on updating objects. How to create button with cancel that will always redirect me to the previous page ? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: Filtering on model methods

2009-10-28 Thread pbzRPA
Thanks for you reply Mikhail, I do use model managers but more often to get a certain defined queryset back. Could you maybe show me a simple example of how to implement your suggestion? I imagine it looking something like this. class PersonManager(models.Manager): def get_query_set(self):

Re: manage.py syncdb over web?

2009-10-28 Thread Daniel Roseman
On Oct 28, 8:45 am, zayatzz wrote: > Hi. > > I have a problem with django project that is beeing hosting in a > server where i have no shell access... so how can i do syncdb there. > doing mysql dumps in development db and updating hosting mysql is > kinda slow.. > > Is it possible do this run sy

manage.py syncdb over web?

2009-10-28 Thread zayatzz
Hi. I have a problem with django project that is beeing hosting in a server where i have no shell access... so how can i do syncdb there. doing mysql dumps in development db and updating hosting mysql is kinda slow.. Is it possible do this run syncdb script over web? Alan --~--~-~--~---

Re: models.py

2009-10-28 Thread David
can you explain a bit better? where do you want to insert? On 28 Okt., 00:46, Vman wrote: > how do i insert this: > > from django.contrib.auth.models import User > class Bookmark(models.Model): > title = models.CharField(maxlength=200) > user = models.ForeignKey(User) > link = models.ForeignKey(

Re: ANNOUNCE:- ibm_db_django-0.1.4 IBM Dataservers backend support for Django 1.1 Released

2009-10-28 Thread Tarun Pasrija
Mistakably I have missed the What's New section so here is goes:- What's New?? - This version has added support for the following- - ZOS support included - ibm_db google code issue no - 25 Implementation change for sequence_reset_sql in operations.py. Thanks and Regards

Re: Versionable Models?

2009-10-28 Thread David
Is there a big advantage of MartyAlchin Historization over the django- reversion project? Has anybody compared the two approaches in detail. >From what i could understood on the django-revsion site it seems to me more complete, as it inclueds i.e. file-reversion. Plus it is easier to use as it is