Re: mod_python can't find settings

2007-08-10 Thread george
Oh and sorry I meant "Malcolm" that second "l" is a killer... On Aug 10, 11:48 pm, george <[EMAIL PROTECTED]> wrote: > Malcom -- Thanks for the quick reply. > > I believe the files are set correctly: > > ls -l /home/george/testing yields: > drwxrwxr-x 6 george george 4096 Aug 10 19:14 myapp > dr

Re: mod_python can't find settings

2007-08-10 Thread george
Malcom -- Thanks for the quick reply. I believe the files are set correctly: ls -l /home/george/testing yields: drwxrwxr-x 6 george george 4096 Aug 10 19:14 myapp drwxrwxr-x 2 george george 4096 Aug 10 17:13 document_root drwxrwxr-x 3 george george 4096 Aug 10 17:14 templates and ls -l /home

Re: django app for managing sending email to users...

2007-08-10 Thread Andrew
James - I'm so happy that you've taken the initiaive with this. I'm happy to help code -- just let me know how. One thing to think about: how does the communication between the email- app and the main app work? On Fluther right now we're running our django mailer on a different thread because in

Re: mod_python can't find settings

2007-08-10 Thread Malcolm Tredinnick
On Sat, 2007-08-11 at 06:32 +, george wrote: > I have seen previous posts regarding this issue, and I'm pretty sure > that I'm not running into similar issues that others have faced. I'm > a bit stuck as to where to go. > > I'm running Apache2, python2.3, mod_python, latest django and CentOS

mod_python can't find settings

2007-08-10 Thread george
I have seen previous posts regarding this issue, and I'm pretty sure that I'm not running into similar issues that others have faced. I'm a bit stuck as to where to go. I'm running Apache2, python2.3, mod_python, latest django and CentOS 4.5. I've got a django project located at: /home/george/

Re: Thumbnail - django-utils - Google Code

2007-08-10 Thread Greg
Ok, I downloaded the svn by typing 'svn co svn://trac.studioquattro.biz/django-utils/trunk/nesh' into my command prompt at the directory C:/pyhton24/Lib/site- packages. So now nesh and django and in the same directory. I then edited my settings file for my project located at c:/django/mysite/.

Don't Repeat Yourself!

2007-08-10 Thread sago
I was delivering some Django training this week, and it occurred to me there is a huge DRY-violation in the Django feed system. Django has a comprehensive and (in my opinion) superb URL routing mechanism. You route urls to views. In many cases you can route a number of urls to the same view, addi

Re: Thumbnail - django-utils - Google Code

2007-08-10 Thread Greg
Lisa, Very Interesting. How would I go about getting the module 'nesh.thumbnail.field'? Do I need to get the latest revision of django? Thanks On Aug 10, 5:56 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hey all, > > I'm new to the group, but I thought you guys might find this little >

Re: How to make a field that can be inserted but not updated?

2007-08-10 Thread r_f_d
I realized after I posted this that I did not explain it well, so here goes try number two. The editable=false affects the admin interface and I believe the newforms module and perhaps the old manipulator framework. You can simply create your own form, particularly with a model this simple, and d

Re: Saving a copy of a model

2007-08-10 Thread r_f_d
I also forgot to mention two things, the model documentation states that each model subclasses django.db.models.Model, and I believe it will not work to subclass a model. I believe I tried this when I first started with Django last year and it would not work. Secondly, based on your coment that y

Re: Saving a copy of a model

2007-08-10 Thread r_f_d
I am not sure I understand, I think you want to archive a model instance? or put another way, when the model is no longer active or useful to the user, you would essentially like to treat that database record differently than other records. In that case, you could simply change the archived field

Support for macros in templates

2007-08-10 Thread Michal Ludvig
Hi all, This is a little announcement of a tag library for {% macro %} support in Django templates. I have been using TAL template engine in my previous project and got used to the concept of "macros" as building blocks of the final HTML output. Now in Django I realised the missing support for "

Re: How to make a field that can be inserted but not updated?

2007-08-10 Thread r_f_d
If I am not mistaken, editable=False is only applicable to the admin- forms. Simply create a view that checks to see if the user is a superuser and then give them a form to add an email address. peace, -r On Aug 10, 7:59 pm, Russell Blau <[EMAIL PROTECTED]> wrote: > I am working on an applicati

return html snippet via XHR with simplejson

2007-08-10 Thread r_f_d
I was wondering what people are doing to format html snippets returned via XHR. I am currently using code like: response_dict = {} t = ModelObject.objects.all() html_table = render_to_response('table_template.html', {'table': t}) response_dict.update({'table': html_table}) return HttpRespon

Re: newforms + multiple sister forms submitted/processed in one user action

2007-08-10 Thread Doug B
> --- > > If I have 8 people, how should bind POST data to a form object in the > view? You can use the 'prefix' option when instantiating the forms. Prefix the form with the corresponding form 'number' or other unique identifie

Re: How to make a field that can be inserted but not updated?

2007-08-10 Thread Kai Kuehne
Hi, On 8/11/07, Russell Blau <[EMAIL PROTECTED]> wrote: > Basically, I want to keep track of every email address that has ever > been registered with my app, to prevent duplication. By overriding > delete(), I prevent any address from being removed from the database, > but I also have to prevent

How to make a field that can be inserted but not updated?

2007-08-10 Thread Russell Blau
I am working on an application that includes the following in models.py: class UserEmail(models.Model): email = models.EmailField("email address", unique=True, editable=False) user = models.ForeignKey(UserRegistration) # an email address can only be associated with on

Saving a copy of a model

2007-08-10 Thread Carlos Hanson
Greetings, I have a model which I would like to archive. My thought was to extend that model with one additional DateTimeField called archived. But I am having difficulty saving an instance of the archived object based on an existing object. class Assessment(models.Model): student = models.

Admin methods in any project

2007-08-10 Thread Mario Gonzalez
We know that every project needs to save data and usually the time that we've got to write templates is a lot. The question is: how can I improve the time I use to write those templates? Maybe I'm doing something wrong because if I need to enter data to different classes, ex 10 classes, in dif

Re: Launchpad - Community for free projects

2007-08-10 Thread Jonas
On 10 ago, 22:16, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > On 8/10/07, Jonas <[EMAIL PROTECTED]> wrote: > > > I posted it here bacause I have been that there are many projects > > based on Python/Django hosted on Google Code and as found a better > > service where the community can integ

Thumbnail - django-utils - Google Code

2007-08-10 Thread [EMAIL PROTECTED]
Hey all, I'm new to the group, but I thought you guys might find this little guy interesting... http://code.google.com/p/django-utils/wiki/Thumbnail If this a repost, many apologies Cheers, Lisa --~--~-~--~~~---~--~~ You received this message because you are

Re: newforms + multiple sister forms submitted/processed in one user action

2007-08-10 Thread Patrick Anderson
On Fri, 10 Aug 2007 13:32:32 -0700, Collin Grady wrote: > One method is to include a hidden input somewhere that indicates the > number of forms present. Then you can just use a for loop from 1 to that > number in the view to build the right number of forms again. > > > This is the raw html fo

Re: Launchpad - Community for free projects

2007-08-10 Thread Jacob Kaplan-Moss
On 8/10/07, Jonas <[EMAIL PROTECTED]> wrote: > I posted it here bacause I have been that there are many projects > based on Python/Django hosted on Google Code and as found a better > service where the community can integrate and participate better then > I said it. Fair enough; I'm just *extreme

Syncing microformat data with generic views

2007-08-10 Thread [EMAIL PROTECTED]
If anyone's interested, I posted how I'm creating vcard and ical data with generic views so people can just click a link or button to sync things up with their calendar or address book. I suspect it's riddled with errors and bad advice, so be kind: http://thebitterpill.com --~--~-~--~---

Re: Multi field validation with clean method

2007-08-10 Thread jeffhg58
I was finally able to figure it out as I saw on another post. Instead, of using the RaiseValidation error I did the following: self.errors.update(annotation=ErrorList([u'You must enter an Annotation Type.'])) Thanks for all your help, Jeff -- Original message -- From:

Google Checkout w/out a shopping cart?

2007-08-10 Thread [EMAIL PROTECTED]
I'm trying to build a very simple ecommerce page using Google Checkout without the use of a shopping cart. Here are my models: class Team(models.Model): name = models.CharField(maxlength=30, unique=True) def __str__(self): return self.name class Meta:

Re: urlconf for multiple page slugs

2007-08-10 Thread Peter Baumgartner
> > > Collin's suggestion may sound daunting, but it's really quite easy: Thanks guys. I took your advice. Here is my solution: http://www.djangosnippets.org/snippets/362/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Rails-like Flash in Django

2007-08-10 Thread Brian Morton
Django also makes use of "messages" in the django.contrib.auth module for this purpose. Of course, that only applies if you are using users and authentication for your site. I think you can use them with anonymous users though, so I think they will still work for you. http://www.djangoproject.c

Feed question

2007-08-10 Thread [EMAIL PROTECTED]
I have an events model, and a feed for it - shows all events Events has a foreign key relationship with Club. What I'd like to do is have a feed for each club, but I'm not sure how to get that into a feed without explicitly defining it for each club. Say I have two clubs, Foo and Bar, I want som

Fix Your WINDOWS XP

2007-08-10 Thread John Travolta
Repair your installation and fix all errors in your operating system http://windowsxpsp2pro.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: Multi field validation with clean method

2007-08-10 Thread rskm1
On Aug 9, 7:34 pm, [EMAIL PROTECTED] wrote: > So, if I use clean_annotationvalue to do both how would I be able to put an > error > message on the annotation type ... I think you were on the right track the first time. Philosophically, the Form's clean() method is where you're supposed to be do

Re: urlconf for multiple page slugs

2007-08-10 Thread Tim Chase
> About the only way to do that is just grab (.*) from the url, and > parse it in your view, looking up slugs as needed Collin's suggestion may sound daunting, but it's really quite easy: your urls.py can have something like r"^(?P(?:[-\w]+/)*[-\w]+)/?$" and then in your view: def my_view(re

Re: newforms - form for multiple models

2007-08-10 Thread Collin Grady
Do you need validation that ties between fields in both models? If not, just pass each form into the template individually. A newforms form will only pay attention to POST keys that match its own fields, so the others will just be ignored, and everything just works :) --~--~-~--~~-

Re: Rails-like Flash in Django

2007-08-10 Thread Collin Grady
http://code.djangoproject.com/ticket/4604 --~--~-~--~~~---~--~~ 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

Re: newforms + multiple sister forms submitted/processed in one user action

2007-08-10 Thread Collin Grady
One method is to include a hidden input somewhere that indicates the number of forms present. Then you can just use a for loop from 1 to that number in the view to build the right number of forms again. --~--~-~--~~~---~--~~ You received this message because you a

Re: how to define a User?

2007-08-10 Thread Collin Grady
To fkey to User, you should be importing it, not typing out a full path like that (unless you're doing "import django" but that's a bit unwieldy) You cannot set the fkey to the current user in save(), as request is not available. You also can't do it in admin because of that. It's very easy in a

Re: Rails-like Flash in Django

2007-08-10 Thread James Bennett
On 8/10/07, sagi s <[EMAIL PROTECTED]> wrote: > In Rails, flash is a way to display a message in the next page. It is > extremely useful to provide lightweight feedback to user operations. > For examples when the user, say, submits a new article and after > clicking on the "Submit" button, then is

Re: editing newforms field

2007-08-10 Thread Collin Grady
Yes, you can do something like form.fields['fieldname'].widget = forms.TextInput() or whatever --~--~-~--~~~---~--~~ 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@

Re: urlconf for multiple page slugs

2007-08-10 Thread Collin Grady
About the only way to do that is just grab (.*) from the url, and parse it in your view, looking up slugs as needed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

urlconf for multiple page slugs

2007-08-10 Thread Peter Baumgartner
I'm building a site where pages can have parent pages in the form: * Grandparent 1 * Grandparent 2 ** Parent 1 *** Child 1 *** Child 2 ** Parent 2 I'd like the url to contain each parent. For example, 'child 2' would be at /grandparent-2/parent-1/child-2/ I'm not sure how to implement this in my

Re: MediaWiki Port in Django - Project Interest?

2007-08-10 Thread Ramdas S
There is something called Diamanda. http://code.google.com/p/diamanda/ We had customized it for a community web site, though the project is not live yet. Yes, I am interested. RS On 8/11/07, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote: > > > > > > On Fri, Aug 10, 2007 at 03:59:07PM -, [EM

Re: Multilingual site best practices

2007-08-10 Thread Francis
1. You should use a quick description and then write the full text in the po file. 2. You are better of using english in the {%trans%} bloc because gettext don't support UTF-8 or character outside the limited ascii. no clue for 3. Francis On Aug 10, 11:42 am, Vincent Foley <[EMAIL PROTECTED]

Re: Fwd: Proposal for the Web User Interface of the OSSEC HIDS

2007-08-10 Thread RajeshD
> > -- Forwarded message -- > From: Ian Scott Speirs <[EMAIL PROTECTED]> > Date: 10 ago, 14:27 > Subject: Proposal for the Web User Interface > To: ossec-list > > Jonas wrote: > > > On 9 ago, 23:33, Jeff Schroeder <[EMAIL PROTECTED]> wrote: > >> In opensource, proposing something

Re: MediaWiki Port in Django - Project Interest?

2007-08-10 Thread Baurzhan Ismagulov
On Fri, Aug 10, 2007 at 03:59:07PM -, [EMAIL PROTECTED] wrote: > Would anyone be interested in using it if it was released as a contrib > app? Yes. With kind regards, -- Baurzhan Ismagulov http://www.kz-easy.com/ --~--~-~--~~~---~--~~ You received this messa

newforms - form for multiple models

2007-08-10 Thread sagi s
I am trying to create a form for a couple of models: PubForm = forms.form_for_model(Publication) CopyForm = forms.form_for_model(Copy) class PubCopyForm(PubForm, CopyForm): pass I would expect to see a combination of the Copy and Publication fields in the form but I only see Publicatio

Re: about templates tags

2007-08-10 Thread rskm1
On Aug 9, 11:23 am, "Lic. José M. Rodriguez Bacallao" <[EMAIL PROTECTED]> wrote: > can I include more than one template tag definition in a single template tag > file? Right now I was trying to do that and I can't. I'm still a novice, but I know you can define multiple filters in one .py file,

Rails-like Flash in Django

2007-08-10 Thread sagi s
In Rails, flash is a way to display a message in the next page. It is extremely useful to provide lightweight feedback to user operations. For examples when the user, say, submits a new article and after clicking on the "Submit" button, then is redirected to the front page, you want to let him kno

Re: Multilingual site best practices

2007-08-10 Thread Vincent Foley
There's django-multilingual for that. On Aug 10, 1:05 pm, Grupo Django <[EMAIL PROTECTED]> wrote: > Vincent Foley ha escrito: > > > > > Hello, > > > I work for a company who develops web sites and web applications for > > clients in Quebec. People in Quebec mainly speak french, but there > > are

newforms + multiple sister forms submitted/processed in one user action

2007-08-10 Thread Patrick Anderson
This is a simplified PersonForm I've created with newforms library: class PersonForm(forms.Form): name = forms.CharField() first_name = forms.CharField() middle_name = forms.CharField(required = False) last_name = forms.CharField() The problem I have is that I need to update

Car Air Conditioning

2007-08-10 Thread knjaz milos
All the informations about car air conditioners can be found on this website... http://car-air-conditioning.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Fwd: Proposal for the Web User Interface of the OSSEC HIDS

2007-08-10 Thread Jonas
OSSEC is a HIDS (Host Intrusion Detection System) and as they are beginning to developing a web interface (in PHP) because I proposed the use of Django. I forwarded this post here because has been very interesting, it's commenting about the security in web frameworks. -- Forwarded messag

Re: Presentations about Django?

2007-08-10 Thread Horst Gutmann
Jacob Kaplan-Moss wrote: > > See http://www.djangoproject.com/community/logos/ -- that page has > downloadable high-res logos, along with some pretty simple usage > guidlines. In general, as long as you're using the Django logo to > promote Django itself (and not some other project/product), nobo

Re: Testing/Fixtures/Production/TestRunner

2007-08-10 Thread Chris Green
On Aug 9, 7:55 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 8/9/07, Chris Green <[EMAIL PROTECTED]> wrote: > > 1) initial_data has bitten me not realizing it was synced in > > production each time. > There is an argument to be made that initial_data for a model should > only be lo

Re: Launchpad - Community for free projects

2007-08-10 Thread Horst Gutmann
Jonas wrote: > > > On 10 ago, 14:15, Horst Gutmann <[EMAIL PROTECTED]> wrote: >> Launchpad is definitely a nice service with a nice community esp. since >> their integration of a translation service, but it also has some quite >> strange limitations currently like that you can't effectively remo

Re: Launchpad - Community for free projects

2007-08-10 Thread Jonas
On 10 ago, 14:15, Horst Gutmann <[EMAIL PROTECTED]> wrote: > Launchpad is definitely a nice service with a nice community esp. since > their integration of a translation service, but it also has some quite > strange limitations currently like that you can't effectively remove > branches, which w

Re: Launchpad - Community for free projects

2007-08-10 Thread Jonas
On 10 ago, 17:43, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > I'm not entirely clean why you posted this here -- are you proposing > that Django switch to Launchpad (hint: don't). Of course that not. I posted it here bacause I have been that there are many projects based on Python/Django h

Re: Multilingual site best practices

2007-08-10 Thread Grupo Django
Vincent Foley ha escrito: > Hello, > > I work for a company who develops web sites and web applications for > clients in Quebec. People in Quebec mainly speak french, but there > are english speaking people too. Most sites we make eventually want > to have a french and english version with fren

Re: Launchpad - Community for free projects

2007-08-10 Thread Jacob Kaplan-Moss
On 8/10/07, Jonas <[EMAIL PROTECTED]> wrote: > I found a great service to hosting free projects of software that let > a great relation with the community and integration with Bazaar > control version. Its name is launchpad.net, and the company behind is > Canonical, the Ubuntu's creator. I'm not

Re: Presentations about Django?

2007-08-10 Thread Jacob Kaplan-Moss
On 8/10/07, Vincent Foley <[EMAIL PROTECTED]> wrote: > Has your "Django Master Class" at OSCON 07 been taped? It wasn't, but the handouts contain nearly all the info, and you can find 'em here: http://toys.jacobian.org/presentations/2007/oscon/tutorial/ Jacob --~--~-~--~~---

MediaWiki Port in Django - Project Interest?

2007-08-10 Thread [EMAIL PROTECTED]
I've got a project where I need to build a public wiki for some community websites. The main requirement is that the functionality be similar to Mediawiki since many people are familiar with the way that software works. Does anyone know if a project like this has been undertaken? Would anyone be

Re: Presentations about Django?

2007-08-10 Thread Vincent Foley
Has your "Django Master Class" at OSCON 07 been taped? Vincent On Aug 10, 11:12 am, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > On 8/10/07, Brian Rosner <[EMAIL PROTECTED]> wrote: > > > I saw the video of you presenting Django to Google at one of their Tech > > Talks and I am not sure if I

Re: Using Filter on a list of objects?

2007-08-10 Thread Greg
RajeshD, Tim, and Nis, We'll I think I got it working. I changed the following line: Style.objects.filter(sandp__choice__in=choice_ids).distinct() to Style.objects.filter(sandp__in=choice_ids).distinct() That brought back the correct records. / Also, the problem with: y =

Multilingual site best practices

2007-08-10 Thread Vincent Foley
Hello, I work for a company who develops web sites and web applications for clients in Quebec. People in Quebec mainly speak french, but there are english speaking people too. Most sites we make eventually want to have a french and english version with french being the "main" version. I would

Re: Presentations about Django?

2007-08-10 Thread Jacob Kaplan-Moss
On 8/10/07, Brian Rosner <[EMAIL PROTECTED]> wrote: > I saw the video of you presenting Django to Google at one of their Tech > Talks and I am not sure if I read/heard this somewhere, but is that > presentation freely available under the Creative Commons license or > something? It's at http://vid

Re: basic testing procedure?

2007-08-10 Thread Tim Chase
> if you have an app named "tests" and you add it to your INSTALLED_APPS > (which I guess is necessary) - does django create any tables or any > content (e.g., additional content-types) outside the test-database? I would proffer that unless there's a pressing reason to name your app "tests" (suc

Re: Presentations about Django?

2007-08-10 Thread Brian Rosner
On 2007-08-10 08:21:59 -0600, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> said: > > Hi Horst -- > > See http://www.djangoproject.com/community/logos/ -- that page has > downloadable high-res logos, along with some pretty simple usage > guidlines. In general, as long as you're using the Django logo

Re: databrowse, coercing to Unicode:

2007-08-10 Thread paulh
Here is the stack: TypeError at /databrowse/ coercing to Unicode: need string or buffer, __proxy__ found Request Method: GET Request URL:http://pan.dynalias.com/databrowse/ Exception Type: TypeError Exception Value:coercing to Unicode: need string or buffer, __proxy__

Re: basic testing procedure?

2007-08-10 Thread patrickk
thanks tim. that´s very useful. one additional question: if you have an app named "tests" and you add it to your INSTALLED_APPS (which I guess is necessary) - does django create any tables or any content (e.g., additional content-types) outside the test-database? patrick. On Aug 10, 2:19 pm, Ti

Re: Presentations about Django?

2007-08-10 Thread Jacob Kaplan-Moss
Hi Horst -- See http://www.djangoproject.com/community/logos/ -- that page has downloadable high-res logos, along with some pretty simple usage guidlines. In general, as long as you're using the Django logo to promote Django itself (and not some other project/product), nobody's going to come down

how to define a User?

2007-08-10 Thread tit4
Hi, I want to store a User who modify or create the Object: class Object(models.Model): ... user = models.ForeignKey(django.contrib.auth.models.User, editable=False) ... the question is: how can I define User who save/create particular object inside save() method? --~--~-

Re: Generating charts with ReportLab

2007-08-10 Thread [EMAIL PROTECTED]
This library looks pretty nice too... for graphs... if you decide not to go the reportlab route. I haven't fiddled with it any, but was looking over the docs and it looks promising: http://nullcube.com/software/pygdchart2.html On Aug 6, 4:12 am, "Ben Ford" <[EMAIL PROTECTED]> wrote: > Hi Carole,

Re: url styling

2007-08-10 Thread Filipe Correia
>From a REST perspective, I think the best would be to make the action part of the query string. However, I also know not everyone agrees with this, so don't take my word for it. -- Filipe On Aug 10, 6:21 am, james_027 <[EMAIL PROTECTED]> wrote: > hi, > > is there any advantage or disadvantage o

Re: django built-in web server

2007-08-10 Thread Justin Johnson
I did spend some time looking at a third option - py2exe. In general this works really well and means you can package up with a single install. The only snag is that django has lots of dynamic imports which means you have to have a source file somewhere that imports statically. I ran out o

Re: Using Filter on a list of objects?

2007-08-10 Thread RajeshD
Hi Greg, Please see some notes below. > def searchresult(request): > if request.method == 'POST': > NOT_PICKED = "---" > y = Choice.objects.all() > if ('price' in request.POST and request.POST['price'] <> > NOT_PICKED): You cou

Re: databrowse, coercing to Unicode:

2007-08-10 Thread Michael Radziej
On Fri, Aug 10, paulh wrote: > > I have tried the databrowse app on a couple of projects, but it fails > on both with the same error. I wondered whether anyone else has seen > this error message: > > coercing to Unicode: need string or buffer, __proxy__ found > > If you need the whole stack, l

Re: Django on Linux, MS SQL on Windoz

2007-08-10 Thread Peter Bailey
Thanks Florian. Guess I better have a look at SQLAlchemey - too bad that branch of django does not seem to be advancing much either!. Thanks for your help. Peter On 8/10/07, Florian Apolloner <[EMAIL PROTECTED]> wrote: > > > Hi, > There is currently no fully working backend for mssql, but someon

Re: django built-in web server

2007-08-10 Thread TheMaTrIx
You could use something like XAMPP if your really unconfortable setting up apache and mysql by hand. Xampp's base install gives you apache and mysql preconfigured and there is a python addon thats also preconfigured. And if you can install and develop python/django apps, don't be to afraid of in

Re: Launchpad - Community for free projects

2007-08-10 Thread Horst Gutmann
Jonas wrote: > I found a great service to hosting free projects of software that let > a great relation with the community and integration with Bazaar > control version. Its name is launchpad.net, and the company behind is > Canonical, the Ubuntu's creator. > > I have remained very impressed sinc

Re: folder security

2007-08-10 Thread hiddenhippo
thanks so much. it's amazing how you spend hours sifting through endless material only to find the answer was there all along. I'll take a look at the online documentation. thanks again. On Aug 10, 1:37 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > > My problem is that the application requires pri

Launchpad - Community for free projects

2007-08-10 Thread Jonas
I found a great service to hosting free projects of software that let a great relation with the community and integration with Bazaar control version. Its name is launchpad.net, and the company behind is Canonical, the Ubuntu's creator. I have remained very impressed since I saw the tour [2], and

Re: folder security

2007-08-10 Thread Tim Chase
> My problem is that the application requires private folders > for all the logged in users to store their content, and hence > my problem. I know that you can password protect folders > using both apache and litehttpd however their methods don't > seem suitable. I need to dynamically add users

Re: basic testing procedure?

2007-08-10 Thread Tim Chase
> 1. where to define the testing? in models.py or in tests.py? I´d like > to seperate the testing from models.py, so how can I write doctests > in a seperate file (the example in the django documentation only > explains seperate unit-testing)? my understanding is that doctests can only be (

Re: Error from URLs with non-ascii characters and that need login

2007-08-10 Thread web-junkie
Okay, after further investigation the error appears for me too, not just googlebot. When I browse the site as anonymous user and click a link with encoded Unicode in URL, and if that links needs login, I get an error. Seems to be a bug in the checklogin decorator. On Aug 8, 3:34 pm, web-junkie <[

Re: Django on Linux, MS SQL on Windoz

2007-08-10 Thread Jeremy Dunck
On 8/10/07, Florian Apolloner <[EMAIL PROTECTED]> wrote: > > Hi, > There is currently no fully working backend for mssql, but someone is > working on it already (and I am sure he will need some testers). > If I am not mistaken there is also http://pymssql.sourceforge.net/ The new effort for SQL S

databrowse, coercing to Unicode:

2007-08-10 Thread paulh
I have tried the databrowse app on a couple of projects, but it fails on both with the same error. I wondered whether anyone else has seen this error message: coercing to Unicode: need string or buffer, __proxy__ found If you need the whole stack, let me know. Paul Hide --~--~-~--~---

Re: django built-in web server

2007-08-10 Thread Jay Parlar
On 8/10/07, james_027 <[EMAIL PROTECTED]> wrote: > > hi, > > Can I use the django's built in web server in an intranet enviroment > where the maximum users could be not more than 50 users? I am just > asking this for the purpose for easy deployment :). I am very newbie, > and trying to avoid apach

Presentations about Django?

2007-08-10 Thread Horst Gutmann
Hi :-) I'm currently thinking about doing a small presentation of Django at a BarCamp in Vienna this fall - nothing big, probably just a short intro of what you need to get it running with some small hints for Dreamhost and perhaps a small demo app - and I wanted to know, if there are any rules I

Re: scheduling job

2007-08-10 Thread Kresimir Sojat
Here is example how to create django cron job: http://slowchop.com/index.php/2006/09/17/creating-a-django-cron-job/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: django built-in web server

2007-08-10 Thread John Lee
I'm having a similar situation now. The requirement is to pack my web app so that an average user without programming or network administration background can easily install it on windows. I'm considering: 1) pack the whole apache with default conf + sqlite + python + django + my project as a w

folder security

2007-08-10 Thread hiddenhippo
This may be posted in the wrong place, which if it is then please accept my apologies. Tt the moment I'm designing a web application powered by Django using either apache or litehttpd as the web server and postgres as the database. My problem is that the application requires private folders for

Re: OperationalError 1054 Unknown column

2007-08-10 Thread AnaReis
Hum... I thought that to be an AutoField it was mandatory that "_id" would have to be added to the name of the field... Apparently not! :) Thanks. Ana On Aug 9, 6:57 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > Why did you add _id to your model definition for levelID ? The column > does not hav

Re: OperationalError 1054 Unknown column

2007-08-10 Thread AnaReis
Hum... I thought that to be an AutoField it was mandatory that "_id" would have to be added to the name of the field... Apparently not! :) Thanks. Ana On Aug 9, 6:57 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > Why did you add _id to your model definition for levelID ? The column > does not hav

basic testing procedure?

2007-08-10 Thread patrickk
I´ve been reading the slides for "Django Master Class" and the django documentation on testing, but I´m still not sure how to actually do some testing. here are a couple of questions: 1. where to define the testing? in models.py or in tests.py? I´d like to seperate the testing from models.p

Re: django built-in web server

2007-08-10 Thread Justin Johnson
Apache is the easiest and most documented route. It is pretty easy to set-up and config so don't let that put you off. However, I had a situation where I needed a single self-contained install for deployment. On that occasion I used CherryPy3 + WSGI and ran the whole thing as a windows serv

Re: pagination for search result ...

2007-08-10 Thread LaundroMat
request["filter"] is a session variable, that's why it works :) On Aug 10, 5:25 am, "Kai Kuehne" <[EMAIL PROTECTED]> wrote: > On 8/10/07, james_027 <[EMAIL PROTECTED]> wrote: > > > > > > > hi, > > > > def list_filter(request): > > > """Update session filter""" > > > # request['filter'] is

inconsistent timesince behavior

2007-08-10 Thread omat
When using the "timesince" template filter, I experience weird behavior. When I refresh a page, + 8 hours is added to the output of "timesince" **randomly**. That is, one time I get the correct output, the other time it is 8 hours added to the correct time. This is so strange that I do not even

Re: url styling

2007-08-10 Thread Nicola Larosa
[RESTafarian zealotry follows: you have been warned. ;-) ] james_027 wrote: > is there any advantage or disadvantage or best practices in forming > urls? Yes, there is. By following web architecture principles, as formalized in the REST (REpresentational State Transfer) methodology, you gain ben

Re: editing newforms field

2007-08-10 Thread james_027
Hi, On Aug 10, 4:12 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > Yes, just edit the fields in form.fields :) I am sorry, I didn't make it clear, I mean changing it like in views? james --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: editing newforms field

2007-08-10 Thread Collin Grady
Yes, just edit the fields in form.fields :) --~--~-~--~~~---~--~~ 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, se

editing newforms field

2007-08-10 Thread james_027
hi, is it possible to edit the newforms field like required from true to false? or editing the widget property? Thanks james --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

  1   2   >