Re: Interesting problem importing

2007-04-07 Thread Michael Newman
You're right. Thank you that works. So I am sure that wasn't problem. Thanks for the help. On Apr 7, 2:34 pm, "Jorge Gajon" <[EMAIL PROTECTED]> wrote: > On 4/7/07, Michael Newman <[EMAIL PROTECTED]> wrote: > > > > > In the manage.py shell an error when I do the export > > File "", line 1 > >

Re: Smartest way to display help messages per view

2007-04-07 Thread TaMeR
Well I guess it depence on your situation. For example I have a 2000 members motorcycle website and help for that site must be detailed. In that case what I would do is create a FAQ module give it categories and display the appropriate categories questions only in the sidebar. So whats he

Re: New contribution announcement: RESTful model views.

2007-04-07 Thread johnny
I am python newb. But I came across this thread. It sound like someone has attempted it and it's in google source. http://groups.google.com/group/django-users/browse_thread/thread/2f2840572fc99fc3/e045e3ef43b2a607?lnk=gst=raw_post_data=2# --~--~-~--~~~---~--~~

Re: Recieving XML Documents over HTTP

2007-04-07 Thread johnny
I am doing REST, xml over http (sending and receiving xml documents), which is simpler for me than XML-RPC. I am having problem with receiving xml documents. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: running into wall doing templates part of tutorial

2007-04-07 Thread drackett
thanks, that did it. The line above was indented with spaces, and the line below with a tab. That seems to have fixed it. On Apr 7, 4:43 pm, "Ian Clelland" <[EMAIL PROTECTED]> wrote: > On 4/7/07, drackett <[EMAIL PROTECTED]> wrote: > > > I have the following code in my view: > > [1] > from

Re: running into wall doing templates part of tutorial

2007-04-07 Thread Ian Clelland
On 4/7/07, drackett <[EMAIL PROTECTED]> wrote: > > I have the following code in my view: > [1] > from django.shortcuts import render_to_response [2] > from warner.actions.models import ActionItem [3] > [4] > def index(request): [5] > action_list =

running into wall doing templates part of tutorial

2007-04-07 Thread drackett
I have the following code in my view: from django.shortcuts import render_to_response from warner.actions.models import ActionItem def index(request): action_list = ActionItem.objects.all().order_by('-start_date') return render_to_response('actions/index.html', {'action_list':

Re: Flatpages with images

2007-04-07 Thread Frankie Robertson
On 07/04/07, Alessandro Ronchi <[EMAIL PROTECTED]> wrote: > > Is it possible to add images to flatpages with a wysiwyg editor, > uploading them to a folder and using them into the page? There's a rather dated, but probably still working (until newforms-admin at least, which'll probably make it a

Re: Django IDE

2007-04-07 Thread Ian
Greg: Command-` from within X application. On Apr 5, 6:24 pm, "Greg Donald" <[EMAIL PROTECTED]> wrote: > On 4/5/07, John Goodleaf <[EMAIL PROTECTED]> wrote: > > > > > Wing IDE. > > It looks really nice but then I discovered I would have to run an > Xserver to run it on my Mac. That's not a

Re: Interesting problem importing

2007-04-07 Thread Jorge Gajon
On 4/7/07, Michael Newman <[EMAIL PROTECTED]> wrote: > > In the manage.py shell an error when I do the export > File "", line 1 > export DJANGO_SETTINGS_MODULE = speakeasy.settings > ^(arrow is under the E) > SyntaxError: invalid syntax > Hi Michael, I probably

Re: Recieving XML Documents over HTTP

2007-04-07 Thread Paul Childs
Not sure if this is what you are looking for, but this might be a place to start... http://code.djangoproject.com/wiki/XML-RPC On Apr 6, 8:19 pm, "johnny" <[EMAIL PROTECTED]> wrote: > This may be stupid question for an expert. But stupidity is in not > asking. > > How do I access the XML

Recommended Developer Tools

2007-04-07 Thread chasfs
After banging my head against the wall for too long, a friend suggested that I get a copy of several Firefox add-ons. Web Developer toolbar - does everything a web developer needs including css, cookie information... https://addons.mozilla.org/en-US/firefox/addon/60 Firebug - javascript

Re: Interesting problem importing

2007-04-07 Thread Michael Newman
> Jorge's suggestion is correct for troubleshooting the > DJANGO_SETTINGS_MODULE error, but it is almost certainly unrelated to > the problems you're having using nesh. In the manage.py shell an error when I do the export File "", line 1 export DJANGO_SETTINGS_MODULE = speakeasy.settings

newforms & existing project

2007-04-07 Thread Robert
Hi, I am maintaining a project (a kind of exchange) written using an oldforms library. It's compatible with Django 0.96. Now I need to add some new functionality, where many forms will be used, and I am wondering If I should use newforms partly, rewrite oldforms, or use oldforms for everything

Fwd: Ship Parts UnderWater - MOre...

2007-04-07 Thread Kooooool forwords
[image: CRUISE , VACATION DEALS , NATIONAL TOUR, GETAWAY DEALS] [image: CRUISE , VACATION DEALS , NATIONAL TOUR, GETAWAY DEALS] [image:

Re: runserver detection

2007-04-07 Thread [EMAIL PROTECTED]
Hi gordy, Allowing the webserver to intercept static content urls is a good and viable option. But (as the Chinese saying goes "to pick bones from an egg"), why add to urlpatterns entries that will never be used (in production)? I will use Malcolm's suggestion of adding another "flag" in

Re: runserver detection

2007-04-07 Thread [EMAIL PROTECTED]
On Apr 7, 1:43 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Running under the development server usually means you have a different > settings file to when you are in production. I tend to add an extra > variable to that, something like DEVELOPMENT=True, and test for that > setting in my

Re: Wholesale dog clothes ,dog collars,dog chothing

2007-04-07 Thread postweb123
( http://www.dogstoreol.com ) is a professional dealer and exporter of Dog clothes, Dog collars, Dog leashes,Dog harnesses, muzzles, retractable leashes, Dog toys, ID tags and pet bowls. Our products have leather, nylon, plastic, PU and stamped series. We are proud of being equipped with

Re: Flatpages with images

2007-04-07 Thread Ramdas S
I make a static page with images and just cut and paste the HTML from FrontPage or Dreamweaver. The images need to be stored on a server that can server images viz Apache. Ramdas On Apr 7, 6:09 pm, "Alessandro Ronchi" <[EMAIL PROTECTED]> wrote: > Is it possible to add images to flatpages with a

Re: runserver detection

2007-04-07 Thread gordyt
Hi chacs66, If you do you setup right you don't have to worry about it. Here is an example. Suppose you have an app called myapp and in the myapp folder you have a urls.py that contains this: urlpatterns += patterns( '', (r'^static_media/(?P.*)$', 'django.views.static.serve',

Re: get a setting from templates

2007-04-07 Thread gordyt
Howdy Alessandro, This is no problem. You can write a simple context processor that will do what you want. Here is an example: Suppose your app is called myapp and you have a file in your myapp directorory called context_processors.py file with this function: def media_url(request):

Re: Screen resolution

2007-04-07 Thread Baurzhan Ismagulov
On Sat, Apr 07, 2007 at 06:04:19AM -0700, Pythoni wrote: > I need to allow users to choose their own website background.A user > can choose whatever image he wants.But if a picture is large I need to > make it smaller to fit his screen. > So, I thought that I will find out the screen resolution

Re: Screen resolution

2007-04-07 Thread Tim Chase
> For my Django application I need to detect user's screen resolution. > So, I have the script in Javascript > > function resolution() > { > var winX = screen.width; > var winY = screen.height; > > } > I call the script like this > > > This script finds the resolution but I need to pass the

get a setting from templates

2007-04-07 Thread Alessandro Ronchi
It it possible to import a setting into my templates? I need it to use, for example, default file directories and the site URL. Thanks in advance. -- Alessandro Ronchi Skype: aronchi - Wengo: aleronchi http://www.alessandroronchi.net - Il mio sito personale http://www.soasi.com - Sviluppo

Flatpages with images

2007-04-07 Thread Alessandro Ronchi
Is it possible to add images to flatpages with a wysiwyg editor, uploading them to a folder and using them into the page? Thanks in advance. -- Alessandro Ronchi Skype: aronchi - Wengo: aleronchi http://www.alessandroronchi.net - Il mio sito personale http://www.soasi.com - Sviluppo Software e

Re: Problem with form caching data

2007-04-07 Thread Malcolm Tredinnick
On Sat, 2007-04-07 at 12:58 +, ladamiak wrote: > Hi everyone... > > I'm having an strange behavior with a form. > > It's a simple sign-up form. > > When I call the page using the url http://xxx/membro/cadastro/3/ the > form show the data for de mebro.id=3, so after that, if I call the >

Re: Screen resolution

2007-04-07 Thread Pythoni
On Apr 7, 1:55 pm, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote: > Hello Pythoni, > > On Sat, Apr 07, 2007 at 03:56:21AM -0700, Pythoni wrote: > > This script finds the resolution but I need to pass the screen > > resolution values to my Django application for further processing. How > > can it

Problem with form caching data

2007-04-07 Thread ladamiak
Hi everyone... I'm having an strange behavior with a form. It's a simple sign-up form. When I call the page using the url http://xxx/membro/cadastro/3/ the form show the data for de mebro.id=3, so after that, if I call the page using the url http://xxx/membro/cadastro/ the form should not show

Re: how to save a dictionary in database

2007-04-07 Thread Steven Armstrong
Paul Rauch wrote on 04/07/07 12:28: > Hello, > >> test = bla(rights={'bla':'blupp'}) >> test.save() >> Traceback (most recent call last): >> File "", line 1, in >> File "/usr/lib64/python2.5/site-packages/django/db/models/base.py", >> line 242, in save >>','.join(placeholders)),

Re: how to save a dictionary in database

2007-04-07 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Malcolm Tredinnick schrieb: > > Presumably you realise why this fails now: a TextField only stores text, > not Python object. > > So turn your Python object into a string: look at the Pickle and cPickle > modules in the standard Python library. >

Re: Screen resolution

2007-04-07 Thread Baurzhan Ismagulov
Hello Pythoni, On Sat, Apr 07, 2007 at 03:56:21AM -0700, Pythoni wrote: > This script finds the resolution but I need to pass the screen > resolution values to my Django application for further processing. How > can it be done? > Or is it a better way than using Javascript? What about letting

Re: how to save a dictionary in database

2007-04-07 Thread Malcolm Tredinnick
On Sat, 2007-04-07 at 12:28 +0200, Paul Rauch wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello, > > >test = bla(rights={'bla':'blupp'}) > >test.save() > >Traceback (most recent call last): > > File "", line 1, in > > File

Screen resolution

2007-04-07 Thread Pythoni
For my Django application I need to detect user's screen resolution. So, I have the script in Javascript function resolution() { var winX = screen.width; var winY = screen.height; } I call the script like this This script finds the resolution but I need to pass the screen resolution values to

how to save a dictionary in database

2007-04-07 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, >test = bla(rights={'bla':'blupp'}) >test.save() >Traceback (most recent call last): > File "", line 1, in > File "/usr/lib64/python2.5/site-packages/django/db/models/base.py", >line 242, in save >','.join(placeholders)), db_values) >

FileFiled and save_FIELD_file()

2007-04-07 Thread yourabi
I was thinking about implementing a custom Field that extended from FileField, specifically to override the save_FIELD_file() function to store the files in a way I need, in a directory structure that depends on the request. I'm trying to get a feel from the community if this is the appropriate

newform and errors

2007-04-07 Thread TaMeR
I am falling in love with Django but it is quite challenging to lern django and python at the same time. I am not quite getting this. 1) I know I can do new_form.errors and I can see the errors in a shell but how do they go back to the template? 2) When I do PeopleOrgUser.objects.get(user_id =