Re: Problem installing django on windows

2007-09-11 Thread Dean Edridge
Ahik wrote: > Hi, > It seems that 'python' is not in your path. > > Try to locate the the path for python.exe. It might be something like: > C:\Python25\python.exe > In this case you can type the following: > C:\django\testproject>C:\Python25\python.exe manage.py runserver > It should work. > >

Re: Populating a form

2007-09-11 Thread Kenneth Gonsalves
On 12-Sep-07, at 10:41 AM, Ahik wrote: > newforms. you have to create a dictionary of the data you want in the form relating fieldname to the data and bind the form to this - see the bound form docs -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/

Re: Populating a form

2007-09-11 Thread Ahik
newforms. On Sep 12, 4:05 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 11-Sep-07, at 11:45 AM, AniNair wrote: > > >I am trying to learn python and django. Can someone please tell me > > how to populate some fields in a form > > newforms or oldforms? > > -- > > regards >

Re: Problem installing django on windows

2007-09-11 Thread Ahik
Hi, It seems that 'python' is not in your path. Try to locate the the path for python.exe. It might be something like: C:\Python25\python.exe In this case you can type the following: C:\django\testproject>C:\Python25\python.exe manage.py runserver It should work. Later, you can add the python

random Unhandled Exceptions

2007-09-11 Thread Peter Baumgartner
I'm serving a Django site via fcgi with lighttpd. Just recently I've started getting Unhandled Exception errors (on a blank white page, not my Django 500.html page) at seemingly random times. A refresh will fix the problem. I've attached the traceback I see in the lighttpd log below. It looks

Problem installing django on windows

2007-09-11 Thread Dean
Hi I'm having trouble getting jdango working on windows XP. I've been following the tutorial on:http://thinkhole.org/wp/django-on- windows/ I have installed all the latest versions of progams that are mentioned in the tutorial. but have trouble getting the demo page to work. I get to this part:

Re: Linux django_settings_module problem

2007-09-11 Thread Collin Grady
You can also just fix the imports to reference things properly, including the site name :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Ordering of admin form fields when using edit_line?

2007-09-11 Thread Collin Grady
I don't believe that is possible. --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email

Re: 404 Page Help

2007-09-11 Thread Collin Grady
You don't need a custom 404 handler in order to use RequestContext - the default handler already does. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Custom validation for models in admin

2007-09-11 Thread Collin Grady
You need to write a validator and use validator_list in the field attributes to do custom validation in admin. http://www.djangoproject.com/documentation/model-api/#validator-list --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Populating a form

2007-09-11 Thread Kenneth Gonsalves
On 11-Sep-07, at 11:45 AM, AniNair wrote: >I am trying to learn python and django. Can someone please tell me > how to populate some fields in a form newforms or oldforms? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/

Re: django database access with threadpool

2007-09-11 Thread johnny
I can someone tell me how the database connection is handled for threads. Do I have to pass conneciton object to each threads? All I am doing is this: @threadpool(pool) def process(i): print 'threadpool %i enter' % i p = Profile.objects.get(id=i) p.status ="sent" p.save()

newforms SelectDateWidget preventing errors

2007-09-11 Thread Patrick J. Anderson
Hi, I know that this might not belong in the framework, but since this widget is part of the newforms, I thought I could ask this. I was wondering if this widget could be modified so that when rendering an unbound form, the initial values for month, day and year could be set, as to force the

Re: Linux django_settings_module problem

2007-09-11 Thread Graham Dumpleton
Yep. This is also a common problem when people move to mod_python and don't reference through site package name. Thereby needing to add both parent and site directories to PythonPath directive in Apache configuration. Graham On Sep 11, 10:57 pm, johnny <[EMAIL PROTECTED]> wrote: > Only works

Re: SOMETIMES mod_python error

2007-09-11 Thread Graham Dumpleton
On Sep 11, 8:27 pm, Arnold Chen <[EMAIL PROTECTED]> wrote: > Dear all, > > I am experiencing some situation that is very strange. the development > site ishttp://alberta.design97.com > > This site is django-powered, it is up sometimes, on some computers, > you can visit this site for a preview,

User detail page in brand new project

2007-09-11 Thread Rob J Goedman
Hi, Using today's newform-admin (rev 6098) I consistently get the below exception, even with a brand new project initialized with ./manage syncdb, including a superuser. List page shows User, detail page creates exception. Hadn't tried this in a while so I am not sure if it has been there

Re: 404 Page Help

2007-09-11 Thread Ryan K
from django import http from django.template import RequestContext, loader from urls import site_context def display_404(request): custom_dict = {'request_path': request.path} custom_dict.update(site_context) t = loader.get_template('404.html') return

Ordering of admin form fields when using edit_line?

2007-09-11 Thread Ryan Shaw
Hello, I have an admin form with two edit_inline sections. I would like to be able to specify the order in which they appear. How can I do this? Thanks, Ryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: first naive question for a new fresh Django user

2007-09-11 Thread r_f_d
Using the code listed (return render_to_response) is going to cause a page refresh (a synchronous operation), if you are trying to use ajax (asynchronously), you should stick the html from the form and the entry into a json or xml object to return to your javascript callback. This is

Re: first naive question for a new fresh Django user

2007-09-11 Thread Daniel Roseman
On Sep 11, 3:11 pm, garonne <[EMAIL PROTECTED]> wrote: > Hello, > > I 've started playing with Django which seems very well for what i > need but i still can figure out how to implement a very simple ajax > example: > > I would like to have a form with a textarea and after pressing the > button,

Only Simplified Chinese translation not working?

2007-09-11 Thread Ryan K
Hi. I have a few languages I've translated my site into. They all work except Simplified Chinese. Any hints as to why? This is in my settings file: LANGUAGES = ( ('es', ugettext('Spanish')), ('fr', ugettext('French')), ('it', ugettext('Italian')), ('ru', ugettext('Russian')),

Silicon valley veteran engineer looking for django developer

2007-09-11 Thread [EMAIL PROTECTED]
Hi. I am an experienced software engineer, and I have more projects than I can handle. I am looking for a reliable django developer to take a pre-existing web design and implement it on our preexisting django framework. HTML/ CSS/JS templates. Tweaking and expanding of models. Python coding.

django database access with threadpool

2007-09-11 Thread johnny
I am implementing a backend python script that updates the database. It uses threadpool(http://snippets.dzone.com/posts/show/4425#related). Threadpool size is 3. When records are returned, eg. 10 records, 3 threads are created, then the threads update the database, but doesn't seem to do

Custom validation for models in admin

2007-09-11 Thread Mike H
Hi all, I have a model which needs some non-standard checks before it gets saved. The class looks like this : class Page(models.Model): name = models.CharField(maxlength=30) content = models.TextField() start_date = models.DateField() end_date = models.DateField() When I save

ERROR: permission denied for relation

2007-09-11 Thread [EMAIL PROTECTED]
Hi I am getting this error when I try to do this: get_list = some_table.get_list(where=['user_id=%s' % request.user.id]) I get this error: (and assuming the users are logged in) ERROR: permission denied for relation Any Ideas? Thanks --~--~-~--~~~---~--~~

Job: US-NY-NYC: Senior Python Developer

2007-09-11 Thread Tom Morgan
Greetings, One of our clients, a large internet services company in New York City, is seeking a Senior Python Developer to help in application development, integration, automated testing, deployment of applications, publishing structure and QA. Responsibilities will include: * Develop

Re: Extra_context for 404 pages?

2007-09-11 Thread Joe
One way is to create a template tag to access the setting, that way you don't have to pass it in through the context every time you raise a 404. On Sep 10, 6:20 am, Ryan K <[EMAIL PROTECTED]> wrote: > Hi. I have certain settings about the locations of static files (like > CSS files) that I need

Re: Django deployment à lá Capistrano

2007-09-11 Thread Jonas
Before that someone starts working about this, you must consider this: 1. It's already has been created a project with that intention. Its name is capystrano [1] and althought has been not uploaded code -he could be working offline-, it would be best contact with its author to doesn't duplicate

Re: 404 Page Help

2007-09-11 Thread jake elliott
hi ryan, how about a context processor? http://www.djangoproject.com/documentation/templates_python/#writing-your-own-context-processors -jake Ryan K wrote: > Hi. All URLs in my templates are preceded by variables I added to the > settings file so I could easily deploy my site on many

Contact Form not Rendering Properly

2007-09-11 Thread John
I'm trying to render the contact form in Django. When i enter http://127.0.0.1:8000/contacts/ I'm only getting a partial form (NAME AND PHONE INBOX BOX IS DISPLAYED) with a bunch of html code. The html code isn't being rendered properly.The submit button isn't being displayed. The template,

Re: Multi-table lookup ... Pt.2

2007-09-11 Thread Chris Brand
dbee wrote: >When the reminders_list in the 'if' statement below gets assigned, >there doesn't seem to be a problem. But when I reference it at the >bottom of the code segment. I end up with the programming error at the >bottom of the page. > > Do you know which line triggers the error ? It's

Re: Django deployment à lá Capistrano

2007-09-11 Thread Alvaro Mouriño
On 9/11/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > I'll be creating a google code page as soon as we settle down on a name. > I like Djangostrano. Sounds nice. But I'm not sure about anyone crying > out something about "ripping other people's ideas". > I don't think I can help with

Re: Django deployment à lá Capistrano

2007-09-11 Thread Ariel Mauricio Nunez Gomez
Just some names: There is a genre called Jazz Fusion ( http://en.wikipedia.org/wiki/Jazz_fusion) Here's a very long list of names that belong to that category: http://en.wikipedia.org/wiki/List_of_jazz_fusion_artists --~--~-~--~~~---~--~~ You received this

Re: Django deployment à lá Capistrano

2007-09-11 Thread Rob Hudson
On Sep 11, 9:20 am, "Alvaro Mouriño" <[EMAIL PROTECTED]> wrote: > Capistrano is: > * A saint:http://en.wikipedia.org/wiki/Giovanni_da_Capistrano > * An Italian city:http://en.wikipedia.org/wiki/Capistrano_%28VV%29 > * A city in >

Re: Django deployment à lá Capistrano

2007-09-11 Thread Rob Hudson
On Sep 8, 10:47 am, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > This is just to make it a bit more obvious. I've decided to make up a > python application similar to Capistrano, for Django. I'll just echo here that yes, I'd be very interested in this. It's on my queue to learn Capistrano as a

Re: Django deployment à lá Capistrano

2007-09-11 Thread Jon Atkinson
Excellent - I look forward to the URL. --Jon On 9/11/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > I know, I know. Know what? I'll setup a trac site on a domain of mine. > We can always move it somewhere else. > > El mar, 11-09-2007 a las 14:02 +0100, Jon Atkinson escribió: > > I'm not sure

Re: ANN: Screencast - Learn Django: Create a Wiki in 20 minutes

2007-09-11 Thread Przemek Gawronski
Hi Siddhi > Well, I could have done it like that also. In many wikis, the special > pages are treated like normal page URLs but only that some special > action is taken, so I did it this way. Ok, now I understand. >> As for suggestions for next cast, I would be thankful for a cast where >> you

Re: Login issues

2007-09-11 Thread MikeHowarth
Russ Thanks for the reply Russ, I totally missed this. I did wonder whether this was because I was using the email-auth backend. I'll implement your suggestion and see what happens. On Sep 11, 1:50 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 9/10/07, MikeHowarth <[EMAIL

Re: first naive question for a new fresh Django user

2007-09-11 Thread vincent garonne
Hi, I know it was just an illustration... My final idea is to implement a browser for our system which could be represent as a file system. I've found this beautiful interface for SVN : https://xbmcajax.bountysource.com/svn/ This is in Ruby + Ajax but as our application is purely in python i

Make money to share photos

2007-09-11 Thread anky
Make money to share photos Do you want to make money to post photos from internet.then just move on to http://goodtolove.com and start posting.They will pay their 50% adsense revenue with you...Then what are you waiting for just start posting photos in http://goodtolove.com.

Re: first naive question for a new fresh Django user

2007-09-11 Thread MikeHowarth
To be honest I'm not really sure the use of Ajax in printing a piece of text from a field is that necessary. This could easily be acheived using good old javascript. On Sep 11, 3:25 pm, vincent garonne <[EMAIL PROTECTED]> wrote: > * would like > > vincent garonne a écrit : > > > > > Hi, >

Re: first naive question for a new fresh Django user

2007-09-11 Thread vincent garonne
* would like vincent garonne a écrit : > Hi, > > I would to do the same than this example: > > http://www.hackorama.com/ajax/ > > Vince > > MikeHowarth a écrit : > >> I'm not entirely sure I follow your request. >> >> However using Ajax in Django is a fairly simple affair:http://www.b-

Re: first naive question for a new fresh Django user

2007-09-11 Thread vincent garonne
Hi, I would to do the same than this example: http://www.hackorama.com/ajax/ Vince MikeHowarth a écrit : > I'm not entirely sure I follow your request. > > However using Ajax in Django is a fairly simple affair:http://www.b- > list.org/weblog/2006/jul/02/django-and-ajax/ > > > > On Sep 11,

Re: Django deployment à lá Capistrano

2007-09-11 Thread Chris Hoeppner
I know, I know. Know what? I'll setup a trac site on a domain of mine. We can always move it somewhere else. El mar, 11-09-2007 a las 14:02 +0100, Jon Atkinson escribió: > I'm not sure the name is really as important as working code. > > --Jon > > On 9/11/07, Chris Hoeppner <[EMAIL PROTECTED]>

first naive question for a new fresh Django user

2007-09-11 Thread garonne
Hello, I 've started playing with Django which seems very well for what i need but i still can figure out how to implement a very simple ajax example: I would like to have a form with a textarea and after pressing the button, i wish to see the form and the text print below. For some reason i'm

Re: first naive question for a new fresh Django user

2007-09-11 Thread MikeHowarth
I'm not entirely sure I follow your request. However using Ajax in Django is a fairly simple affair:http://www.b- list.org/weblog/2006/jul/02/django-and-ajax/ On Sep 11, 3:11 pm, garonne <[EMAIL PROTECTED]> wrote: > Hello, > > I 've started playing with Django which seems very well for what i

Re: SOMETIMES mod_python error

2007-09-11 Thread Arnold Chen
Yes, the server has been restarted many times On 9月11日, 下午6時54分, Ryan K <[EMAIL PROTECTED]> wrote: > Have you tried restarting the web server? > > Arnold Chen wrote: > > Dear all, > > > I am experiencing some situation that is very strange. the development > > site ishttp://alberta.design97.com

Re: Django deployment à lá Capistrano

2007-09-11 Thread Jon Atkinson
I'm not sure the name is really as important as working code. --Jon On 9/11/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > I'll be creating a google code page as soon as we settle down on a name. > I like Djangostrano. Sounds nice. But I'm not sure about anyone crying > out something about

Re: Django deployment à lá Capistrano

2007-09-11 Thread Chris Hoeppner
I'll be creating a google code page as soon as we settle down on a name. I like Djangostrano. Sounds nice. But I'm not sure about anyone crying out something about "ripping other people's ideas". El mar, 11-09-2007 a las 11:45 +0100, Jon Atkinson escribió: > Are you going to create a wiki and

Re: Linux django_settings_module problem

2007-09-11 Thread johnny
Only works when I put my actual project folder (/home/bobby/dev/ workspace/mysite) into to the $PYTHONPATH and $PATH. All my django code, I never do: from mysite.apps.whatever import just: from apps.whatever import So in this case, I guess you have to put in the project folder into the

Re: Django deployment à lá Capistrano

2007-09-11 Thread qwerty
Here we are doing just a brainstorm, wiki comes later ;) 2007/9/11, Jon Atkinson <[EMAIL PROTECTED]>: > > Are you going to create a wiki and repository for this project any > time soon? It would be a much more effective means of collaboration > than the mailing list. > > --Jon > > On 9/11/07,

Re: django-rendertext released

2007-09-11 Thread AndyB
For SEO (and accessibility) reasons. I would like to see this using an image replacement technique. I've used SIFR on a Django site and rather liked it but if you want an image rather than SWF based solution then there are several approaches with varying merits. (rather too many as a quick

Multi-table lookup ... Pt.2

2007-09-11 Thread dbee
I posted this here before a few days ago but I couldn't get a conclusive answer, so I thought I'd try again. I'm pretty much stuck on this one and I'm getting a weird error that I don't really understand. When the reminders_list in the 'if' statement below gets assigned, there doesn't seem to be

404 Page Help

2007-09-11 Thread Ryan K
Hi. All URLs in my templates are preceded by variables I added to the settings file so I could easily deploy my site on many different URLs, this includes CSS file URLs. When the custom error 404 page comes up, there is obviously no style because I can't pass the setting to it. Is there a way to

Re: SOMETIMES mod_python error

2007-09-11 Thread Ryan K
Have you tried restarting the web server? Arnold Chen wrote: > Dear all, > > I am experiencing some situation that is very strange. the development > site is http://alberta.design97.com > > This site is django-powered, it is up sometimes, on some computers, > you can visit this site for a

Re: When 1.0 ?

2007-09-11 Thread Peter Melvyn
On 9/10/07, est <[EMAIL PROTECTED]> wrote: > Hi I am a new web developer in django. Could anyone tell me when will > django go to 1.0? Will django support py3k? Is django worth learning > compared with other web frameworks like turbogears, RoR? At the end of thread bellow are opinions I tend

Re: Issue with regroup and sorting with foreign keys

2007-09-11 Thread Nicolas Steinmetz
Samuel Adam a écrit : > I have had similar issues while sorting with foreignkeys, try > specifying the sort like this : > > {% regroup techskill.name.all|dictsort:"domain.id" by > domain as grouped %} Right ! You already told me about this a long long time ago. I just forgot. Thanks samuel !

Re: Django deployment à lá Capistrano

2007-09-11 Thread Chris Hoeppner
> > I think db schema migration should wait until django has some > > feature that supports it, a limited set of scripting (python itself > > of course) should be allowed in the "recipes" I will take note of that. I thought that I'd leave that bit for the end anyways. The bit about the

Re: Issue with regroup and sorting with foreign keys

2007-09-11 Thread Samuel Adam
I have had similar issues while sorting with foreignkeys, try specifying the sort like this : {% regroup techskill.name.all|dictsort:"domain.id" by domain as grouped %} On Sep 11, 11:04 am, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > Hello, > > Below my model with which I have an issue : > >

Issue with regroup and sorting with foreign keys

2007-09-11 Thread Nicolas Steinmetz
Hello, Below my model with which I have an issue : """ Technicat skills """ class DomainTechSkill(models.Model): name = models.CharField('Domaine de compétence technique', Maxlength=100, core=True) class Techskill(models.Model): who = models.ForeignKey(User,

Re: django-rendertext released

2007-09-11 Thread Ole Laursen
On 11 Sep., 10:06, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > Yep, sorry : > > Ah, see, I knew that one. No, as far as I understand things typogrify modifies the HTML and CSS in

Re: django-rendertext released

2007-09-11 Thread Nicolas Steinmetz
Ole Laursen a écrit : > There might be? I've never heard of that project and can't seem to > find it on Google. Do you have a URL? Yep, sorry : Nicolas

django-rendertext released

2007-09-11 Thread Ole Laursen
Hi! We've just released django-rendertext 0.1, a Django app for using custom fonts on a web page for headings and the like. It works by dynamically creating images out of text snippets with a template tag, e.g. {{ "Hello world!"|rendertext:"gentium"}}. The images are cached in the file system

Re: Populating a form

2007-09-11 Thread MikeHowarth
You'll need to load an instance of the model, which will pre-populate the data: http://www.djangoproject.com/documentation/newforms/#form-for-instance On Sep 11, 7:15 am, AniNair <[EMAIL PROTECTED]> wrote: > Hi... >I am trying to learn python and django. Can someone please tell me > how to

Re: django-rendertext released

2007-09-11 Thread Ole Laursen
On 11 Sep., 09:56, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > what is the difference with django-tipografy ? I admit I did not look at > the links you give yet, but at a first view, it seems there is an > overlap between the two apps... There might be? I've never heard of that project and

Re: django-rendertext released

2007-09-11 Thread Nicolas Steinmetz
Ole Laursen a écrit : > We've just released django-rendertext 0.1, a Django app for using > custom fonts on a web page for headings and the like. It works by > dynamically creating images out of text snippets with a template tag, > e.g. {{ "Hello world!"|rendertext:"gentium"}}. The images are

Re: Overriding Admin templates on a per-app and per-model basis

2007-09-11 Thread AndyB
I just tried this against trunk and got the same results. >From a quick perusal of the admin code I can't see any special code for template loading. Where is this functionality supposed to reside? --~--~-~--~~~---~--~~ You received this message because you are

Re: Email as username in django auth framework

2007-09-11 Thread Jarek Zgoda
cesco napisał(a): >> I'm using this snippet which works fine. > > Which snippet? The one OP mentioned in his post. http://www.djangosnippets.org/snippets/74/ -- Jarek Zgoda Skype: jzgoda | GTalk: [EMAIL PROTECTED] | voice: +48228430101 "We read Knuth so you don't have to." (Tim Peters)

Check it out:download free,stock information,knowledge base,hot videos,hot games and hot tickets...

2007-09-11 Thread my god
Check it out:download free,stock information,knowledge base,hot videos,hot games and hot tickets... http://groups.google.com/group/all-good-things/web/very-useful-websites --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Populating a form

2007-09-11 Thread AniNair
Hi... I am trying to learn python and django. Can someone please tell me how to populate some fields in a form? I want to have certain values present in CharField or Textfield . (Eg:For editing a profile: the data previously entered needs to be present in the resp fields...) Please help.

Re: Creating an archive navigation for date_based.archive_month

2007-09-11 Thread Max Romantschuk
> Hope this helps, > Chris It did indeed! I suspected a tag was the way to go, but I hadn't had time to properly introduce myself to writing tags. I shamelessly nicked your code, and now I have what I need: http://max.romantschuk.fi/blog/ (See the left sidebar. Note: DNS just started pointing to