Re: ManyToMany with a "through" attribute in the admin profile

2009-05-04 Thread nbv4
On May 4, 12:03 am, George Song wrote: > On 5/3/2009 8:17 PM, nbv4 wrote: > > > > > On May 3, 3:51 pm, Ramiro Morales wrote: > >> On Sun, May 3, 2009 at 4:26 PM, nbv4 wrote: > > >>> Everything is fine and dandy, except for when I want

Re: Flatpages only works when settings.DEBUG = True

2009-05-04 Thread Ronghui Yu
Yes, 404.html and 500.html are there. But they extend from base.html, which depends on some context variables. I will change them to a simple one and see if the problem still there.Thanks On Tue, May 5, 2009 at 12:06 AM, Brian Neal wrote: > > On May 4, 10:28 am, Ronghui Yu

Re: Flatpages only works when settings.DEBUG = True

2009-05-04 Thread Ronghui Yu
That's something I didn't try. It is a good idea to figure out what the problem is.Thanks On Tue, May 5, 2009 at 12:01 AM, Masklinn wrote: > > On 4 May 2009, at 17:28 , Ronghui Yu wrote: > > I don't quite understand why this happens, and how to solve it. > > Has anybody

Re: tinymce not displaying on admin template

2009-05-04 Thread Zain Memon
Your TINYMCE_JS_URL is .../site_media/js/tiny_mce/tiny_mce.js while the file apparently is at .../site_media/tiny_mce/tiny_mce.js. Zain On Mon, May 4, 2009 at 9:59 AM, Jesse wrote: > > Hello, > > I'm trying to implement django-cms. The CMS pages in admin display, > but not

Re: Problem with cookie on development server

2009-05-04 Thread Malcolm Tredinnick
On Mon, 2009-05-04 at 15:47 -0700, Andrew Se. Fefelov wrote: > Hello guys! > > I'v got such problem with development server. I run any app on my dev > server and it is stuck on Set Cookie response: Define "stuck". What happens? The request and response headers you posted look reasonable to me,

Problem with cookie on development server

2009-05-04 Thread Andrew Se. Fefelov
Hello guys! I'v got such problem with development server. I run any app on my dev server and it is stuck on Set Cookie response: GET / HTTP/1.0 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms- powerpoint, */*

how to redirect a user to a website.

2009-05-04 Thread Aaron
ok, here is what I am working on . I am a noob at this. I am trying to make a link counter. I have a ad rotation system. The ads will have a tag. when a user clicks on the ad it would direct them to the url for the views.py that handels that function. I also have a form that has hidden

django CommaSeparatedStringField component

2009-05-04 Thread Joshua Partogi
Dear all, Does anybody know a good CommaSeparatedStringField for django? The one that I expect is sort of like the CommanSeparatedIntegerField that comes with django, but for String. Thank you very much in advance. -- If you can't believe in God the chances are your God is too small. Read my

Re: How to handle view/url situation (Newbie)

2009-05-04 Thread Masklinn
On 4 mai 09, at 23:36, Malcolm Tredinnick wrote: > On Mon, 2009-05-04 at 15:41 +0200, Masklinn wrote: >> On 4 May 2009, at 14:55 , pbzRPA wrote: >>> On May 4, 1:24 pm, Masklinn wrote: > > [...] > FWIW the `'app.views.showItems'` isn't even

Re: How to handle view/url situation (Newbie)

2009-05-04 Thread Masklinn
On 4 mai 09, at 23:36, Malcolm Tredinnick wrote: > On Mon, 2009-05-04 at 15:41 +0200, Masklinn wrote: >> On 4 May 2009, at 14:55 , pbzRPA wrote: >>> On May 4, 1:24 pm, Masklinn wrote: > > [...] > FWIW the `'app.views.showItems'` isn't even

Re: How to add non-model field in admin

2009-05-04 Thread Malcolm Tredinnick
On Mon, 2009-05-04 at 12:07 -0700, Tomáš Ehrlich wrote: > Hi there, > I wonder if is there any way to add extra input field in admin, which > I don't want to define in model. > > For example, I want to import external files. I have simple blog model > (title, content, pub_date), but in admin I

How to add non-model field in admin

2009-05-04 Thread Tomáš Ehrlich
Hi there, I wonder if is there any way to add extra input field in admin, which I don't want to define in model. For example, I want to import external files. I have simple blog model (title, content, pub_date), but in admin I want to also have file input field, to import files. Then I can: 1)

Re: How to handle view/url situation (Newbie)

2009-05-04 Thread Malcolm Tredinnick
On Mon, 2009-05-04 at 15:41 +0200, Masklinn wrote: > On 4 May 2009, at 14:55 , pbzRPA wrote: > > On May 4, 1:24 pm, Masklinn wrote: [...] > >> FWIW the `'app.views.showItems'` isn't even necessary, you can just > >> pass the view function and reverse will figure out the

Re: Enable request timeout?

2009-05-04 Thread Graham Dumpleton
On May 5, 3:36 am, Shadow wrote: > Hi, > > I'm developing my site at the moment (locally) and it has an infinite > loop somewhere. But my requests aren't timing out. The apache > processes just get larger and larger, till I have to kill apache. > > I'm guessing I

Re: fail silently: "NoneType object has no attribute...." errors?

2009-05-04 Thread hotani
Thanks Malcolm - getattr() is the one I knew had to be there but couldn't remember or find it anywhere. And I'm pretty sure I've even used it before. sheesh. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Separation of apps

2009-05-04 Thread Malcolm Tredinnick
On Mon, 2009-05-04 at 12:51 -0700, eric.frederich wrote: > Thanks for the reply. > > You're right that auth.User is not a replacement for a profile. > Maybe I will make the training app require only that a profile model > exists and has a particular set of fields like cost-center, manager's >

Re: Separation of apps

2009-05-04 Thread eric.frederich
Thanks for the reply. You're right that auth.User is not a replacement for a profile. Maybe I will make the training app require only that a profile model exists and has a particular set of fields like cost-center, manager's e-mail, etc. This way at least it wouldn't be tied to a particular

Re: fail silently: "NoneType object has no attribute...." errors?

2009-05-04 Thread Malcolm Tredinnick
On Mon, 2009-05-04 at 11:52 -0700, hotani wrote: > Most of the errors I'm seeing these days in my application are of the > "NoneType object has no attribute" variety. While this may be > helpful on occasion on the development server, I really don't want it > creeping up on production. > >

Re: data too long in a CharField column

2009-05-04 Thread Malcolm Tredinnick
On Mon, 2009-05-04 at 08:46 -0700, MS wrote: > Hi, > > I have a problem with django+postgresql: > I have a model with a CharField(max_length=255) field, and I'm > assigning some much longer value to this field, like: > > m = MyModel() > m.myfield = 'very long text - say 400 chars' > m.save() >

Re: Separation of apps

2009-05-04 Thread Malcolm Tredinnick
On Mon, 2009-05-04 at 11:35 -0700, eric.frederich wrote: > I wrote an app that consist of an authentication backend and a single > model "Profile" (extension of auth.User). It also has a function > which queries ldap to get user information like their manager. We'll > call this app

Re: Custom SQL with a variable issue.

2009-05-04 Thread Malcolm Tredinnick
On Mon, 2009-05-04 at 10:31 -0700, MikeL wrote: > I figured it out. I had to run cursor.execute for the SET and the > SELECT line and it managed to remember the @row being 0 between them. > Though it would be nice if a django solution exists. You found the Django solution already: use

Re: Custom SQL with a variable issue.

2009-05-04 Thread Malcolm Tredinnick
On Mon, 2009-05-04 at 11:31 -0700, pbzRPA wrote: > Hi, > > Could you provide the code of your model and why you would want to use > a custom sql instead of the django model object. For the type of query that Mike is asking about, custom SQL is a reasonable solution. Django cannot really provide

Re: ManyToManyField and Manager.exclude()

2009-05-04 Thread Malcolm Tredinnick
On Mon, 2009-05-04 at 09:18 -0700, Riccardo Pelizzi wrote: > Hello, > > I have a model which looks kinda like this: > > class Host(model): > ip = IPAddressField() > > class Domain(model): > hosts = ManyToManyField(Host) > > If i want to get all the domains without hosts: >

fail silently: "NoneType object has no attribute...." errors?

2009-05-04 Thread hotani
Most of the errors I'm seeing these days in my application are of the "NoneType object has no attribute" variety. While this may be helpful on occasion on the development server, I really don't want it creeping up on production. "Well fix them!" you say. Actually there is nothing to fix.

Re: data too long in a CharField column

2009-05-04 Thread pbzRPA
Hi, I am not sure if truncating the data is a good solution as the user will be under the impression that all the text was saved whereas only the first 255 was really saved. You can add a max_length to your form or modelform field which will block the user from typing more then the max length.

xlrd and UploadedFile error

2009-05-04 Thread James Smagala
Hey All, Can anyone tell me how to read a Djano UploadedFile .xls file with xlrd without resorting to explicitly saving the file to the hard drive? If I attempt to pass my_file.read() directly to xlrd, the error I get is: file() argument 1 must be (encoded string without NULL bytes), not str

Separation of apps

2009-05-04 Thread eric.frederich
I wrote an app that consist of an authentication backend and a single model "Profile" (extension of auth.User). It also has a function which queries ldap to get user information like their manager. We'll call this app my_custom_backend. The reason the Profile and authentication are in the same

Re: Custom SQL with a variable issue.

2009-05-04 Thread pbzRPA
Hi, Could you provide the code of your model and why you would want to use a custom sql instead of the django model object. Regards Pbzrpa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: i've looked at other discussions regarding the error ?unable to open database file?

2009-05-04 Thread Mike Ramirez
On Monday 04 May 2009 10:17:09 am Phil Mocek wrote: > On Mon, May 04, 2009 at 08:31:34AM -0700, Mike Ramirez wrote: > > I forgot to mention that sqlite3 expects a file to be there, it > > can't create one on it's own, using ./manage.py syncdb. > > I think you are mistaken. Can you site some

Enable request timeout?

2009-05-04 Thread Shadow
Hi, I'm developing my site at the moment (locally) and it has an infinite loop somewhere. But my requests aren't timing out. The apache processes just get larger and larger, till I have to kill apache. I'm guessing I need to set a timeout setting, but I don't know where. Apache? mod_python?

Re: Custom SQL with a variable issue.

2009-05-04 Thread MikeL
I figured it out. I had to run cursor.execute for the SET and the SELECT line and it managed to remember the @row being 0 between them. Though it would be nice if a django solution exists. Regardless, MikeL On May 4, 10:15 am, MikeL wrote: > I'm trying to make a query

form elements css changes on errors

2009-05-04 Thread joeygartin
Disclaimer: I am new to Django and not the greatest programmer. I would like to add a css class to form elements if there is an error in the form. Not sure the BEST/EASIEST way to do this. I would only want the attribute added if there was an error and I would like to do this in the cleanest

Re: How to handle view/url situation (Newbie)

2009-05-04 Thread scott212
I'm not saying that the original OP code didn't work, just that it felt sloppy to have this lists/delete/item1 url lingering out there. Just looking for a better way. :) John Crawford-14 wrote: > > > Okay, I'm not sure why the OP code didn't work - it seems like going > to the URL

Re: i've looked at other discussions regarding the error ?unable to open database file?

2009-05-04 Thread Phil Mocek
On Mon, May 04, 2009 at 08:31:34AM -0700, Mike Ramirez wrote: > I forgot to mention that sqlite3 expects a file to be there, it > can't create one on it's own, using ./manage.py syncdb. I think you are mistaken. Can you site some documentation to back this claim? I'm using Django 1.0,

Re: How to handle view/url situation (Newbie)

2009-05-04 Thread John Crawford
Okay, I'm not sure why the OP code didn't work - it seems like going to the URL 'lists/show', with the updated list, would work. So my *guess* is that since it's a page the browser already saw and cached, that the page just isn't getting refreshed. In other words, if he hit the browser-refresh

Custom SQL with a variable issue.

2009-05-04 Thread MikeL
I'm trying to make a query which lists the top 5 rated users along with the rating (and rank) of the current user. The top 5 was easy, but I'm having a problem getting the rank of the current user. I know the sql needed to calculate the rank, but it requires a variable. SET @row=0; SELECT rank

tinymce not displaying on admin template

2009-05-04 Thread Jesse
Hello, I'm trying to implement django-cms. The CMS pages in admin display, but not with the editing someone without html knowledge will be able to use. I see no tinymce options. I've placed tinymce in several places hoping somehow it would display where I need it. Using this statement in a

Re: Anyone else having issues with filter_horizontal in trunk?

2009-05-04 Thread Brandon Taylor
I was modifying the form submission with some Ajax code that busted the filter_horizontal apparently. Preventing the default action of the form with jQuery is not a good idea :) On May 4, 10:41 am, Brandon Taylor wrote: > Hi George, > > I wonder what the deal is then.

Re: i've looked at other discussions regarding the error ?unable to open database file?

2009-05-04 Thread bconnors
touch worked for me. thanks On May 4, 11:31 am, Mike Ramirez wrote: > I forgot to mention that sqlite3 expects a file to be there, it can't create > one on it's own, using ./manage.py syncdb.  To do so I use touch, tho you can > also do the same thing with vi, if you save

Re: Error loading sqlite3

2009-05-04 Thread Gonzalo Petersen
I found a post that supposedly fixes the broken sqlite3 package. " adding sqlite-devel to BuildRequires fixes the problem " could someone help me do that?? here is the link to the post. https://bugzilla.novell.com/show_bug.cgi?id=228733#c7 thanks!

Re: offline population of django auth user table

2009-05-04 Thread Jeff
Thanks to both of you, both of these answers were very helpful. Jeff On May 2, 10:26 am, Malcolm Tredinnick wrote: > There are a couple of different solutions to this problem. Ultimately, > it comes down to providing the necessary information so that Django can > use

ManyToManyField and Manager.exclude()

2009-05-04 Thread Riccardo Pelizzi
Hello, I have a model which looks kinda like this: class Host(model): ip = IPAddressField() class Domain(model): hosts = ManyToManyField(Host) If i want to get all the domains without hosts: Domain.objects.filter(hosts=None) works. Later on in my script i need to get the opposite, all

Re: Flatpages only works when settings.DEBUG = True

2009-05-04 Thread Brian Neal
On May 4, 10:28 am, Ronghui Yu wrote: > Hi,All, > > I am going to use Flatpages app for those simple pages. And everything > works fine when settings.DEBUG is True, but when it is turned to False, > a URL not configured in urlpatterns will trigger 500, not 404. Do you have a

Re: Flatpages only works when settings.DEBUG = True

2009-05-04 Thread Masklinn
On 4 May 2009, at 17:28 , Ronghui Yu wrote: > I don't quite understand why this happens, and how to solve it. > Has anybody ever met this problem? And any suggestions? > > Thanks in advance. > Setup a local smtp sink and activate the "mail on 500" thing, to see why it's erroring out?

Re: data too long in a CharField column

2009-05-04 Thread George Song
On 5/4/2009 8:46 AM, MS wrote: > I have a problem with django+postgresql: > I have a model with a CharField(max_length=255) field, and I'm > assigning some much longer value to this field, like: > > m = MyModel() > m.myfield = 'very long text - say 400 chars' > m.save() > > In save() I'm

Flatpages only works when settings.DEBUG = True

2009-05-04 Thread Ronghui Yu
Hi,All, I am going to use Flatpages app for those simple pages. And everything works fine when settings.DEBUG is True, but when it is turned to False, a URL not configured in urlpatterns will trigger 500, not 404. This happens on both Apache2 and the Django native testing server. Here is some

data too long in a CharField column

2009-05-04 Thread MS
Hi, I have a problem with django+postgresql: I have a model with a CharField(max_length=255) field, and I'm assigning some much longer value to this field, like: m = MyModel() m.myfield = 'very long text - say 400 chars' m.save() In save() I'm getting an error "ERROR: value too long for type

Re: Anyone else having issues with filter_horizontal in trunk?

2009-05-04 Thread Brandon Taylor
Hi George, I wonder what the deal is then. I've noticed this issue on two apps I'm working on. The only thing those apps have in common is that I'm also leveraging jQuery and overriding the change_form.html template. I guess I'll just make a new app and start adding things until it breaks. On

Re: django setting problem on windows

2009-05-04 Thread zayatzz
Posting because i just set up httpd.conf on linux computer few days ago and it took me a while to get it working as i wanted to. If i just compare the way how i set it up and how you did it Then the difference is that you have no pythonpath like Malcolm said and location should be either "/web/"

Re: i've looked at other discussions regarding the error ?unable to open database file?

2009-05-04 Thread Mike Ramirez
I forgot to mention that sqlite3 expects a file to be there, it can't create one on it's own, using ./manage.py syncdb. To do so I use touch, tho you can also do the same thing with vi, if you save it as an empty file (just tested it). echo "" > testing.db might work also. [gufym...@sylia

Re: Anyone else having issues with filter_horizontal in trunk?

2009-05-04 Thread George Song
On 5/4/2009 8:24 AM, Brandon Taylor wrote: > filter_vertical also appears to be suffering the same problem. > > On May 4, 10:23 am, Brandon Taylor wrote: >> Hi everyone, >> >> When I specify filter_horizontal for any ManyToMany field on a model >> using Django trunk,

Re: i've looked at other discussions regarding the error ?unable to open database file?

2009-05-04 Thread Mike Ramirez
On Monday 04 May 2009 08:16:58 am bconnors wrote: > I deleted the file and > When I do python manage.py syncdb and the message ends up with: You should be using touch, vi might work, if you save it as an empty file, but touch is the best. example: [gufym...@sylia testing]$ ls __init__.py

Re: Anyone else having issues with filter_horizontal in trunk?

2009-05-04 Thread Brandon Taylor
filter_vertical also appears to be suffering the same problem. On May 4, 10:23 am, Brandon Taylor wrote: > Hi everyone, > > When I specify filter_horizontal for any ManyToMany field on a model > using Django trunk, and that field is required, admin will not allow > me

Anyone else having issues with filter_horizontal in trunk?

2009-05-04 Thread Brandon Taylor
Hi everyone, When I specify filter_horizontal for any ManyToMany field on a model using Django trunk, and that field is required, admin will not allow me to save the choice(s). it will tell me the field is required, no matter how many choices I select. If I remove the filter_horizontal, and I

Re: How to handle view/url situation (Newbie)

2009-05-04 Thread scott212
You guys are awesome, it's always great to find a great new framework and then find out it has a great community as well. I can't wait to try this tonight. Thanks again! Masklinn wrote: > > > On 4 May 2009, at 14:55 , pbzRPA wrote: >> On May 4, 1:24 pm, Masklinn

Re: i've looked at other discussions regarding the error ?unable to open database file?

2009-05-04 Thread bconnors
I deleted the file and When I do python manage.py syncdb and the message ends up with: File "/usr/lib/python2.5/site-packages/django/core/management/ __init__.py", li ne 304, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File

Re: Easy display of table of data without a backing model

2009-05-04 Thread JL
Another hack would be to make your data structure look 'enough' like a Django model such that the generic views would work for you. Remember that Python follows duck-typing principles so if your data structures looks enough like querysets and data models, then you could use the generic views. I

Re: i've looked at other discussions regarding the error ?unable to open database file?

2009-05-04 Thread Phil Mocek
On Mon, May 04, 2009 at 05:33:05AM -0700, bconnors wrote: > I created a mysite.db in my directory by vi. It's highly unlikely that you will be able to create a valid SQLite database using a text editor. You should delete that file, then expect it to be created when you run the 'syncdb' command.

Recommendation of wiki plugin

2009-05-04 Thread Ben Lau
Hi, I am building a website that will hold on google app engine. The website need a wiki module, but there have few django wiki module available. Could somebody recommend a one for use? That is my requirements: - Able to upload file - No anonymous editing - History tracking. Able to check who

Re: How to handle view/url situation (Newbie)

2009-05-04 Thread Masklinn
On 4 May 2009, at 14:55 , pbzRPA wrote: > On May 4, 1:24 pm, Masklinn wrote: >> On 4 May 2009, at 12:47 , pbzRPA wrote: >> >>> I would do the following. >> >>> from django.http import HttpResponseRedirect >>> from django.core.urlresolvers import reverse >> >>> def

Re: How do I set a foreign key as a primary key?

2009-05-04 Thread pbzRPA
On May 4, 3:07 pm, pbzRPA wrote: > On May 3, 6:52 pm, Malcolm Tredinnick > wrote: > > > > > On Sun, 2009-05-03 at 09:03 -0700, Thierry wrote: > > > I have the following model: > > > > class Person(models.Model): > > >     person =

Re: How do I set a foreign key as a primary key?

2009-05-04 Thread pbzRPA
On May 3, 6:52 pm, Malcolm Tredinnick wrote: > On Sun, 2009-05-03 at 09:03 -0700, Thierry wrote: > > I have the following model: > > > class Person(models.Model): > >     person = models.ForeignKey(User) > >     age = models.IntegerField() > > > How can I set the

Re: How to handle view/url situation (Newbie)

2009-05-04 Thread pbzRPA
On May 4, 1:24 pm, Masklinn wrote: > On 4 May 2009, at 12:47 , pbzRPA wrote: > > > I would do the following. > > > from django.http import HttpResponseRedirect > > from django.core.urlresolvers import reverse > > > def deleteItems(request, item): > > >    return

Re: Sequence number generation

2009-05-04 Thread mettwoch
Read, re-read and then ask a question ;-). So I'm answering my question myself: Use the TransactionMiddleware to tie together the two updates. On Apr 29, 3:20 pm, mettwoch wrote: > Hi, > > I'm rather new to Django (and webapp development) and I'd appreciate > any advice on the

Re: i've looked at other discussions regarding the error “unable to open database file”

2009-05-04 Thread bconnors
pubu...@pubuntu:~/django-trunk/build/lib/django/bin/mysite$ DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'my sql', 'sqlite3' or 'ado_mssql'. DATABASE_NAME = '/django-trunk/build/lib/django/bin/mysite/mysite/ mysite.db' # Or path to database file if using

i've looked at other discussions regarding the error “unable to open database file”

2009-05-04 Thread bconnors
I’m getting the error “unable to open database file” I have sqlite3: pubu...@pubuntu:~/django-trunk/build/lib/django/bin/mysite$ python Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more

Re: annotation and grouping

2009-05-04 Thread omat * gezgin.com
Thanks for the detailed reply Russ. I added a boolean field to the model to specify the most current entry for the user, updated with save(), thus letting me to fetch records of the most current entries with a simple query. I think de-normalization and avoiding expensive complex aggregate

Re: How to handle view/url situation (Newbie)

2009-05-04 Thread Masklinn
On 4 May 2009, at 12:47 , pbzRPA wrote: > I would do the following. > > from django.http import HttpResponseRedirect > from django.core.urlresolvers import reverse > > def deleteItems(request, item): > >return HttpResponseRedirect(reverse('app.views.showItems')) FWIW the

Re: How to handle view/url situation (Newbie)

2009-05-04 Thread pbzRPA
I would do the following. from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse def deleteItems(request, item): return HttpResponseRedirect(reverse('app.views.showItems')) --~--~-~--~~~---~--~~ You received this message

Re: Databrowse

2009-05-04 Thread Russell Keith-Magee
On Mon, May 4, 2009 at 3:58 PM, skyl wrote: > > Who is working on databrowse?  What is the status?  Does anyone have > links where I can trac this app? django.contrib.databrowse is part of the Django core. This means that it is part of the normal Django development

Django custom operators DB Backend

2009-05-04 Thread pbzRPA
I would like to know if anyone knows how to create custom operators for querysets. Currently you can do something like: foo.objects.filter(myfield__icontains = x) I would like to add my own operator so I can do something like: foo.objects.filter(myfield__converttext = x) where "converttext"

Re: Unhandled Exception

2009-05-04 Thread Jarek Zgoda
Wiadomość napisana w dniu 2009-05-04, o godz. 11:04, przez Raashid: > An unhandled exception was thrown by the application. > I m getting this error on form submit even though same code is working > fine locally. I m using django and cherokee web server . This is caused by error thrown by flup

Unhandled Exception

2009-05-04 Thread Raashid
An unhandled exception was thrown by the application. I m getting this error on form submit even though same code is working fine locally. I m using django and cherokee web server . Thanks in anticipation Raashid Malik --~--~-~--~~~---~--~~ You received this

Re: models.py general help

2009-05-04 Thread sanket agarwal
The solution to the problem was to extend the Python's save method... here's a snippet of the following: def save(self, force_insert=False, force_update=False): """Update the size field and save the record""" if self.filepath:

Databrowse

2009-05-04 Thread skyl
Who is working on databrowse? What is the status? Does anyone have links where I can trac this app? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: How to handle view/url situation (Newbie)

2009-05-04 Thread Masklinn
On 4 mai 09, at 06:54, scott212 wrote: > I'm reading through the djangobook and trying to build a small app as > I go. The app is just a list that I can add to and delete entries > from. Deleting is easy, but I'm not sure how the url/view portion > should be handled. > >