pythonpath on Ubuntu 8.10

2009-03-06 Thread python_fan
Hey, I have an application that I'm running using Django's built-in server on both Windows XP and Ubuntu 8.10. While it is wokring perfectly fine on XP, I get import errors in Ubuntu. When I tried printing pythonpath on Ubuntu, I managed to locate the problem. It seems like if I start the server

Re: pythonpath on Ubuntu 8.10

2009-03-06 Thread python_fan
Seems like I found one solution to that: Add -- pythonpath="path_to_your_app" to the manage.py runserver call. Any better solutions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

File upload with no database - Fantasy or reality?

2008-04-22 Thread python_fan
amp; FileField) requires a database. So, my question is: Is it possible to add file upload functionality (upload file from client to server -> save it on server somewhere -> pass the path to python code on the server) without any underlying databases?

Re: File upload with no database - Fantasy or reality?

2008-04-22 Thread python_fan
t! Thanks! Can I see a working example? I tried various things, and it almost worked (I got a widget on the page, got an upload button, etc), but nothing happens when i press Upload/Submit. python_fan --~--~-~--~~~---~--~~ You received this message because you are subs

Re: File upload with no database - Fantasy or reality?

2008-04-22 Thread python_fan
On Apr 22, 9:41 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 22-Apr-08, at 1:00 PM, python_fan wrote: > > >>> yes - just get the filename and content from request.POST and > >>> save it > >>> wherever you like using ordinary python >

Re: File upload with no database - Fantasy or reality?

2008-04-22 Thread python_fan
On Apr 22, 10:32 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 22-Apr-08, at 1:23 PM, python_fan wrote: > > >>> Can I see a working example? I tried various things, and it almost > >>> worked (I got a widget on the page, got an upload button, etc), bu

Re: File upload with no database - Fantasy or reality?

2008-04-25 Thread python_fan
Hm... I think I'm still missing something. All I get on the web page is 'None'. Any ideas? On Apr 22, 10:51 am, python_fan <[EMAIL PROTECTED]> wrote: > On Apr 22, 10:32 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > > > On 22-Apr-08, at 1:2

Re: File upload with no database - Fantasy or reality?

2008-04-25 Thread python_fan
Hm... seems like I'm still missing something. All I get on the web page is 'None'. Any ideas? Rustam On Apr 22, 10:51 am, python_fan <[EMAIL PROTECTED]> wrote: > On Apr 22, 10:32 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > > > On 22-Apr-08

Re: File upload with no database - Fantasy or reality?

2008-04-26 Thread python_fan
On Apr 26, 3:54 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > or better still, please paste your full current view and template. > Also it would be easier to handle the thread if you did not top post ;-) Ok, will do. :) Here is the code: http://dpaste.com/47029/ Thanks a lot, Kenneth! --~

Re: File upload with no database - Fantasy or reality?

2008-04-26 Thread python_fan
On Apr 26, 8:13 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > upload_form = None > upload_result = '' > > if request.method == 'POST': > upload_form = FileUploadForm(request.POST, request.FILES) > if upload_form.is_valid(): > # get file name and contents from request: >