Re: user env needed in apache with mod_wsgi

2009-02-11 Thread Alan
Hy guys, Many thanks for your replies, a brief but strong lessons about python and shell. Indeed, I went for a solution similar to what Malcolm suggested. I am using a file with env variables to be loaded. Thanks a lot guys again. The webserver is up and now we are just tunning the feel and

sites framework

2009-02-11 Thread Praveen
we have same structure events class in both sites. Both sites use the same events database, and an events is associated with one or more sites It lets the site producers edit all events -- on both sites -- in a single interface (the Django admin). so my doubt is: Is it necessary to write events

Re: Documentation for Download?

2009-02-11 Thread khsing
Recently, I see some dictionary of Ruby, ROR and jQuery for Mac. How to build a Django and python dictionary for mac? thanks On Thu, Feb 12, 2009 at 12:33 PM, Alex Gaynor wrote: > > > On Wed, Feb 11, 2009 at 11:11 PM, Will Hardy wrote: >> >> Hi

Re: How to detect inactivity session time out?

2009-02-11 Thread ydjango
I put 15 minutes expiry/session cookie age in my django app 1) I logged into my application 2) I went to some page. 3) Left that page open in browser. 4) Came back after 16 minutes and clicked on a link on that open page 5) I was thrown to login home page. As a user it is very confusing, did I

Re: Django installation on Linux

2009-02-11 Thread rg
Ohh I see. I'll reinstall a newer one. Thanks! On Feb 11, 9:27 pm, Alex Gaynor wrote: > On Wed, Feb 11, 2009 at 10:26 PM, rg wrote: > > > 2.2.3. > > > On Feb 11, 12:21 pm, Alex Gaynor wrote: > > > On Wed, Feb 11, 2009 at

Re: Documentation for Download?

2009-02-11 Thread Alex Gaynor
On Wed, Feb 11, 2009 at 11:11 PM, Will Hardy wrote: > > Hi all, > > Should the release tarball maybe contain pre-build html and pdf > documentation? > That might be handy for those who don't want to install sphinx/latex etc. > > Cheers, > > Will > > > > There was a fairly

Re: Associating content with multiple sites

2009-02-11 Thread Praveen
http://pastebin.com/m78d7486f http://docs.djangoproject.com/en/dev/ref/contrib/sites/ i have reffered this link but i have doubt shall i keep Article model's class in both site. On Feb 11, 7:37 pm, Alex Gaynor wrote: > On Wed, Feb 11, 2009 at 2:11 AM, Praveen >

Re: Documentation for Download?

2009-02-11 Thread Will Hardy
Hi all, Should the release tarball maybe contain pre-build html and pdf documentation? That might be handy for those who don't want to install sphinx/latex etc. Cheers, Will --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: How to detect inactivity session time out?

2009-02-11 Thread Malcolm Tredinnick
On Wed, 2009-02-11 at 19:50 -0800, ydjango wrote: > Thanks, I will read the documentation. > Hopefully it will tell me how to differentiate between user who logged > out because they clicked on logout and users who got logged out > because of inactivity and expiry. There is no difference between

Re: How to detect inactivity session time out?

2009-02-11 Thread ydjango
Thanks, I will read the documentation. Hopefully it will tell me how to differentiate between user who logged out because they clicked on logout and users who got logged out because of inactivity and expiry. On Feb 11, 6:33 pm, Malcolm Tredinnick wrote: > On Wed,

Re: user env needed in apache with mod_wsgi

2009-02-11 Thread Graham Dumpleton
On Feb 12, 12:09 pm, Malcolm Tredinnick wrote: > On Tue, 2009-02-10 at 10:56 +, Alan wrote: > >  Hi list, > > > My problem is that: since when using apache + mod_wsgi I got a neutral > > env for my server (e.g. PATH=/usr/bin:/bin) but in the end what I need > > is

Re: Django installation on Linux

2009-02-11 Thread Alex Gaynor
On Wed, Feb 11, 2009 at 10:26 PM, rg wrote: > > 2.2.3. > > > On Feb 11, 12:21 pm, Alex Gaynor wrote: > > On Wed, Feb 11, 2009 at 12:20 PM, rg wrote: > > > > > So I'm trying to install Django on a Linux server (I don't have

Re: Django installation on Linux

2009-02-11 Thread rg
2.2.3. On Feb 11, 12:21 pm, Alex Gaynor wrote: > On Wed, Feb 11, 2009 at 12:20 PM, rg wrote: > > > So I'm trying to install Django on a Linux server (I don't have root > > access) and when I run > > $ python setup.py install > > > I get the

Re: Documentation for Download?

2009-02-11 Thread James Bennett
On Wed, Feb 11, 2009 at 9:01 PM, Tim Johnson wrote: > I installed from the tarball, and I see the docs directory beneath the > initially extracted directory and a makefile. So now my questions is: > What is Sphinx and where do I get it? The documentation covers this:

Re: Documentation for Download?

2009-02-11 Thread Tim Johnson
On Wednesday 11 February 2009, Alex Gaynor wrote: > If you installed it with your system's package manager it may not have > included the docs directory, you can always download the tarball from the > Django site and extra the docs dir only. I installed from the tarball, and I see the docs

Re: django-registration & django-profile together

2009-02-11 Thread Mike Ramirez
On Wednesday 11 February 2009 02:13:53 pm Alex Rades wrote: > On Wed, Feb 11, 2009 at 10:43 PM, Mike Ramirez wrote: > > I don't know about django-profiles, but django-registration provides a > > couple signals, user_registered and user_activated. By connecting a > > handler to

Re: How to detect inactivity session time out?

2009-02-11 Thread Malcolm Tredinnick
On Wed, 2009-02-11 at 15:43 -0800, ydjango wrote: > Ok , so timeout happens on browser (client ) side, then i need to > figure out some javascript to do detect that. No, you don't. > > I was hoping in django there is way to detect that no session cookie > was sent or session cookie is expired

Re: A ManyToMany Field question.

2009-02-11 Thread khsing
Yes, I am work on a python 2.3 environment now. Thanks a lots. I will import set datatype. On Thu, Feb 12, 2009 at 10:24 AM, Alex Gaynor wrote: > datatype -- A man live in jail and want to break. http://blog.khsing.net

Re: Sessions Unexpectedly Causing Logout

2009-02-11 Thread Malcolm Tredinnick
On Wed, 2009-02-11 at 11:18 -0800, SnappyDjangoUser wrote: > Sorry for my recent absence in replies I was away from this work > for a short while, but I am now back. > > In response to Graham's question, I am not running multiple Django > applications on the same host. This is one Django

Re: A ManyToMany Field question.

2009-02-11 Thread Alex Gaynor
On Wed, Feb 11, 2009 at 9:20 PM, khsing wrote: > > Yes, that was I wanted. This case like I know you, but you don't know me. > > I notice when symmetrical argument added, a group object has > related_name_set object, so I can write code like this. > > def all_group(user): >

Re: Strange url tag behaviour

2009-02-11 Thread Malcolm Tredinnick
On Wed, 2009-02-11 at 19:29 +0300, Dmitry Dzhus wrote: > Leslie Maclachlan wrote: > > > I would expect the url to show as: http://intranet/MV_Edit_Employee/1/ > > > > But, it shows up as: > > > > http://intranet/var/opt/django/projects/ilayer/MV_Edit_Employee/1/ > > > > Everything still workds,

Re: A ManyToMany Field question.

2009-02-11 Thread khsing
Yes, that was I wanted. This case like I know you, but you don't know me. I notice when symmetrical argument added, a group object has related_name_set object, so I can write code like this. def all_group(user): groups = [] for group in user.group_set.all(): if not group in

Re: form passing id variable problem

2009-02-11 Thread Malcolm Tredinnick
On Wed, 2009-02-11 at 08:58 -0800, May wrote: > Hello, > > I have spent too much time on this problem and am beginning to think > that it > can't be done in Django. I am pulling a list of pathogen names from a > postgres > database to a drop down box. The user selects the pathogen, which >

Re: pre-selected values in forms and session

2009-02-11 Thread Malcolm Tredinnick
On Wed, 2009-02-11 at 06:30 -0800, Gonzalo wrote: > Hello: > > > Sorry if this is foolish, i'm prety noob in django, and not very good > in english > > I have a country id stored in a session... > > I have a form, it have a country CHOICE field > > In the form, could i mark as selected the

Re: A ManyToMany Field question.

2009-02-11 Thread Alex Gaynor
On Wed, Feb 11, 2009 at 9:06 PM, khsing wrote: > > Alex, thank you very much. > > I find if g1 belong g2, g2 will belong g1 automatically, but that is not > right. > > should I rewrite models like this one? > > groups = models.ManyToManyField('self', symmetrical=False) > > >

Re: A ManyToMany Field question.

2009-02-11 Thread khsing
Alex, thank you very much. I find if g1 belong g2, g2 will belong g1 automatically, but that is not right. should I rewrite models like this one? groups = models.ManyToManyField('self', symmetrical=False) On Wed, Feb 11, 2009 at 10:40 PM, Alex Gaynor wrote: > > > On

Re: to_field in model not working

2009-02-11 Thread Malcolm Tredinnick
On Wed, 2009-02-11 at 10:45 +, Tim Sawyer wrote: > Hi, > > We're building an application with django on top of a legacy database and > we've hit a problem with a to_field option being ignored. We've > reproduced it with the latest svn version of django and a different > database (oracle ->

Re: Bizarre sqlite3 / apache2 behaviour

2009-02-11 Thread Malcolm Tredinnick
On Tue, 2009-02-10 at 16:22 -0800, lazyant wrote: > Thanks a lot Jeff. > > I figured out the problem which was a bit more complicated than that > but basically was also what you said. > > I downloaded the sqlite3 client and that helped too. > > What throw me off (among other things) is that in

Re: executing raw sql results in traceback

2009-02-11 Thread Bobby Roberts
On Feb 11, 8:01 am, Bobby Roberts wrote: > there shouldn't be really.  The client has a search form and due to > the way they want the search done there are about 40 option checkboxes > for filtering in about 5 categories.  It would have been easier if a > filter with IN

Re: Best way to deal with dictionaries of lists (equivalent of SQL GROUP BY)

2009-02-11 Thread Malcolm Tredinnick
On Tue, 2009-02-10 at 15:37 -0800, Adam Nelson wrote: > I'm looking at the documentation here: > > http://docs.djangoproject.com/en/dev/ref/templates/builtins/#regroup > > And am looking for the best practices way to deal with doing that from > within the manager. You point to documentation

Re: user env needed in apache with mod_wsgi

2009-02-11 Thread Malcolm Tredinnick
On Tue, 2009-02-10 at 10:56 +, Alan wrote: > Hi list, > > > My problem is that: since when using apache + mod_wsgi I got a neutral > env for my server (e.g. PATH=/usr/bin:/bin) but in the end what I need > is all the envs that is in a particular $HOME/.bashrc file in order to > when server

Re: signal connection

2009-02-11 Thread Malcolm Tredinnick
[Starting a new thread might have been helpful here. You seem to have replied to an old thread from January, but not at all related to that thread (except that the word "signals" is mentioned).] On Tue, 2009-02-10 at 09:02 +, Ben Eliott wrote: > Can anyone please suggest why a signal might

Re: Custom widget for images is deleting them

2009-02-11 Thread phoebebright
Alex, That's the one. And it works! Just for once it wasn't my fault - and I can go to bed (it's after midnight, again). Thanks so much for that. Have a good day/evening/morning... Phoebe. On Feb 12, 12:04 am, Alex Gaynor wrote: > On Wed, Feb 11, 2009 at 7:02 PM,

Re: Documentation for Download?

2009-02-11 Thread phoebebright
If you downloaded using svn then it is in trunk/docs which is at the same level as trunk/django not inside it. On Feb 11, 11:59 pm, Tim Johnson wrote: > On Wednesday 11 February 2009, Alex Gaynor wrote: > > > Every django tarball or svn checkout includes a docs/ dir

Re: Custom widget for images is deleting them

2009-02-11 Thread Alex Gaynor
On Wed, Feb 11, 2009 at 7:02 PM, phoebebright wrote: > > It sounds like it. I've tried to get the version 9765 as suggested > but I don't think I have the right syntax: > [r...@viv site-packages]# svn co > http://code.djangoproject.com/svn/django/trunk/ > 9765 >

Re: Custom widget for images is deleting them

2009-02-11 Thread phoebebright
It sounds like it. I've tried to get the version 9765 as suggested but I don't think I have the right syntax: [r...@viv site-packages]# svn co http://code.djangoproject.com/svn/django/trunk/ 9765 [r...@viv site-packages]# svn co http://code.djangoproject.com/svn/django/trunk/ r9765 [r...@viv

Re: Documentation for Download?

2009-02-11 Thread Alex Gaynor
On Wed, Feb 11, 2009 at 6:59 PM, Tim Johnson wrote: > > On Wednesday 11 February 2009, Alex Gaynor wrote: > > > Every django tarball or svn checkout includes a docs/ dir that has the > full > > docs, you can build these into HTML, latex, pdf whatever using Sphinx. >

Re: Documentation for Download?

2009-02-11 Thread Tim Johnson
On Wednesday 11 February 2009, Alex Gaynor wrote: > Every django tarball or svn checkout includes a docs/ dir that has the full > docs, you can build these into HTML, latex, pdf whatever using Sphinx. Sorry, but I can't find a docs/dir path. Looking under

Re: How to detect inactivity session time out?

2009-02-11 Thread ydjango
Ok , so timeout happens on browser (client ) side, then i need to figure out some javascript to do detect that. I was hoping in django there is way to detect that no session cookie was sent or session cookie is expired and then redirect to a page with message " For your security, you have been

Re: comparisons with java framework

2009-02-11 Thread Russell Keith-Magee
On Thu, Feb 12, 2009 at 12:06 AM, Andrew Ingram wrote: > > 2009/2/11 Alex Gaynor : >> This is another case of generating work for someone as far as I can tell, >> sphinx autogenerates the make file for us, we didn't write it. To switch to >> some

Re: Building a Django Blog: Change month "feb" to "02" in URL

2009-02-11 Thread Frank Becker
twampss [2009-02-11, 23:14 +0100]: Hi, > I've been following James Bennett's "Practical Django Projects" > alongside of Brett Haydon's very helpful post > http://blog.haydon.id.au/2008/08/notes-on-practical-django-projects.html > and came across an issue when wanting to change the format of the

Re: Custom widget for images is deleting them

2009-02-11 Thread Alex Gaynor
On Wed, Feb 11, 2009 at 6:30 PM, phoebebright wrote: > > I thought I had a custom widget which would allow images to be deleted > working and was dead chuffed (http://groups.google.com/group/django- > users/browse_thread/thread/ebf646208fa8880f/c22f87e85b5d78ef? >

Custom widget for images is deleting them

2009-02-11 Thread phoebebright
I thought I had a custom widget which would allow images to be deleted working and was dead chuffed (http://groups.google.com/group/django- users/browse_thread/thread/ebf646208fa8880f/c22f87e85b5d78ef? lnk=gst=admin+image#c22f87e85b5d78ef) but unfortunately it doesn't work. I have spent the

Re: Documentation for Download?

2009-02-11 Thread Alex Gaynor
On Wed, Feb 11, 2009 at 6:05 PM, Tim Johnson wrote: > > I've installed django on my linux computer. > I find documentation online at http://docs.djangoproject.com/ > I do not find documentation as part of the django install. > Is documentation available for download? >

Documentation for Download?

2009-02-11 Thread Tim Johnson
I've installed django on my linux computer. I find documentation online at http://docs.djangoproject.com/ I do not find documentation as part of the django install. Is documentation available for download? Thanks Tim --~--~-~--~~~---~--~~ You received this message

beforeSave callback: implementation suggestion

2009-02-11 Thread danfreak
Hey guys does anybody can drive me to a code example of a kinda beforeSave callback, to perform logic before saving Model data, or Related Models data? dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Parent_link=True causes Cannot assign None: "Business.id" does not allow null values.

2009-02-11 Thread phoebebright
Karen, Spot on! Changed field name to directory and all is well. Thanks so much. Phoebe. On Feb 11, 8:57 pm, Karen Tracey wrote: > On Wed, Feb 11, 2009 at 3:19 PM, phoebebright > wrote: > > > > > Karen, > > > Have done a stripped down version

Re: django-registration & django-profile together

2009-02-11 Thread Mike Ramirez
On Wednesday 11 February 2009 02:13:53 pm Alex Rades wrote: > On Wed, Feb 11, 2009 at 10:43 PM, Mike Ramirez wrote: > > I don't know about django-profiles, but django-registration provides a > > couple signals, user_registered and user_activated. By connecting a > > handler to

Re: Generic foreignKey model: Category

2009-02-11 Thread danfreak
Yep, I'm a bginner with Django, but translating it into CakePHP (based on Rails) I would like to define a kind of relation where, given the: - Foreign key of let's say the News.id - the Foreign_model_name (i.e News) I get the News.category of a specific item While just retriving the News

Re: YUI Image Uploader - OK on Firefox/Mac but not elsewhere

2009-02-11 Thread phoebebright
You were right - all the paths were right except one. When the upload dialog loads it looks for /media/tinymce_2/jscripts/tiny_mce/ tiny_mce_popup.js and I had tiny_mce installed straight off media. Phew. All working on Mac, awaiting the news on PC. Never got YUI working - it uploads the files

Re: Some questions on using Django

2009-02-11 Thread Peter Herndon
On Wed, Feb 11, 2009 at 9:39 AM, koranthala wrote: > (1) >Could somebody let me know whether this is usual? Am I missing > some basic viewpoints which is causing me to write far too much code > than necessary? i.e. Am I or am I not following Django framework >

Abstract classes / table lookup

2009-02-11 Thread django...@gmail.com
Hello! Here's my problem. I am trying to design a simple wiki-like CMS, with 3 different types of editable pages. 1. Text 2. Images 3. Audio All of these 3 have their own class, derived from an abstract base class which contains things shared in common by them all (is this page locked,

Building a Django Blog: Change month "feb" to "02" in URL

2009-02-11 Thread twampss
I've been following James Bennett's "Practical Django Projects" alongside of Brett Haydon's very helpful post http://blog.haydon.id.au/2008/08/notes-on-practical-django-projects.html and came across an issue when wanting to change the format of the URLs in my blog application. For any blog

Re: django-registration & django-profile together

2009-02-11 Thread Alex Rades
On Wed, Feb 11, 2009 at 10:43 PM, Mike Ramirez wrote: > I don't know about django-profiles, but django-registration provides a couple > signals, user_registered and user_activated. By connecting a handler to > either one of these singals you can redirect the users to the

Re: Generic foreignKey model: Category

2009-02-11 Thread Jake Elliott
if i follow your question - you'd want a ForeignKey in CategoryItem to your Category model, so you can add both your News object and Product object to the same category through CategoryItem. then you'll be able to iterate through all of the items in a categoroy with something like

Get a field from an object with string of field's name

2009-02-11 Thread Michael Strickland
Hi, I'm writing a custom tag that will take in two tokens: one describing an instance of a "Page" object, the other naming the CharField that I want to retrieve from that specific Page. The tag would then find that Page object, find the appropriate field, and feed the context of that field into a

Re: Really dumb question re output variable for debugging

2009-02-11 Thread phoebebright
Got Pdb working (though still want to get django_extensions going) and here is my problem again - how do I display an object. It's fine if I know what the attribute are, but how do I tell?? >

Re: Context processor or make custom tag

2009-02-11 Thread Michael Newman
> Hi all, > > I'm new in this group and I have to say that my English is very poor > so sorry. Welcome to the group! > I've the follow problem, I want to put in one of my base templates > (that it's include in main base template) a list of one model, for > example a Category model that has a

Re: django-registration & django-profile together

2009-02-11 Thread Mike Ramirez
On Wednesday 11 February 2009 01:19:14 pm Alex Rades wrote: > It's "django-profiles" not "django-profile" > > On Wed, Feb 11, 2009 at 10:15 PM, Alex Rades wrote: > > Hi, > > I'm developing a site using django-registration and I'm pretty happy > > with it. Now, I need to attach

Dynamic Form Wizard

2009-02-11 Thread Jonathan Lukens
I am trying to dynamically add forms to a form wizard. Initially the form wizard subclass is instantiated with three forms as follows: # from urls.py (r'^add/$', RecipeWizard([HeaderForm, IngredientForm, BodyForm])), The idea is that a user will add any number of ingredients to a recipe, so

Re: Context processor or make custom tag

2009-02-11 Thread Alex Gaynor
On Wed, Feb 11, 2009 at 4:24 PM, KrcK wrote: > > Hi all, > > I'm new in this group and I have to say that my English is very poor > so sorry. > > I've the follow problem, I want to put in one of my base templates > (that it's include in main base template) a list of one model,

Context processor or make custom tag

2009-02-11 Thread KrcK
Hi all, I'm new in this group and I have to say that my English is very poor so sorry. I've the follow problem, I want to put in one of my base templates (that it's include in main base template) a list of one model, for example a Category model that has a relationship with other model like

Re: Really dumb question re output variable for debugging

2009-02-11 Thread phoebebright
OK. Installed django extentions and can see the extra commands when I type python manage.py help but there seems no difference in the traceback screen? Have tried putting both django_extensions and just extensions in the INSTALLED_APPS area, and installed Werkzeug and watched Eric's excellant

Re: django-registration & django-profile together

2009-02-11 Thread Alex Rades
It's "django-profiles" not "django-profile" On Wed, Feb 11, 2009 at 10:15 PM, Alex Rades wrote: > Hi, > I'm developing a site using django-registration and I'm pretty happy > with it. Now, I need to attach a profile to each user, with some > additional information. I've set

django-registration & django-profile together

2009-02-11 Thread Alex Rades
Hi, I'm developing a site using django-registration and I'm pretty happy with it. Now, I need to attach a profile to each user, with some additional information. I've set up django-profiles and... works OK too :) What I'd like to do now is to "force" a new user to fill his profile. Is there any

Re: Parent_link=True causes Cannot assign None: "Business.id" does not allow null values.

2009-02-11 Thread Karen Tracey
On Wed, Feb 11, 2009 at 3:19 PM, phoebebright wrote: > > Karen, > > Have done a stripped down version and still getting the error so put > the requested code here: http://dpaste.com/119483/ and > http://dpaste.com/119486/. > > using Django version 1.1 pre-alpha, > >

Re: 0.96 to 1.0 admin conversion

2009-02-11 Thread homebrew79
I figured this out. I had to override the get_formset method. This seems a little hackish, but it worked. class ConfigV2ParameterInline(admin.TabularInline): model = ConfigV2Parameter def get_formset(self, request, obj=None, **kwargs): self.extra = 'add' in request.path and 10

Re: Trying to retrieve dynamically generated session key in template

2009-02-11 Thread Daniel Roseman
On Feb 11, 6:53 pm, Kevin Audleman wrote: > I have the same session. Django has been so slick so far I would > imagine it has a way to access session variables from a template. Have > you found the solution? > > Kevin See the documentation for context processors - the

Re: Really dumb question re output variable for debugging

2009-02-11 Thread Lee Braiden
2009/2/11 Karen Tracey : > On Wed, Feb 11, 2009 at 3:01 PM, phoebebright > wrote: >> >> I need to see the contents of some objects that are passed as >> parameters into a function.  I can stop the function (assert false) >> and look at the

Re: Really dumb question re output variable for debugging

2009-02-11 Thread Karen Tracey
On Wed, Feb 11, 2009 at 3:01 PM, phoebebright wrote: > > I need to see the contents of some objects that are passed as > parameters into a function. I can stop the function (assert false) > and look at the traceback, but it doesn't tell me the contents of the >

Re: Parent_link=True causes Cannot assign None: "Business.id" does not allow null values.

2009-02-11 Thread phoebebright
Karen, Have done a stripped down version and still getting the error so put the requested code here: http://dpaste.com/119483/ and http://dpaste.com/119486/. using Django version 1.1 pre-alpha, Thanks for your interest! Have to finish this tonight. Phoebe. On Feb 11, 7:30 pm, Karen Tracey

Really dumb question re output variable for debugging

2009-02-11 Thread phoebebright
I need to see the contents of some objects that are passed as parameters into a function. I can stop the function (assert false) and look at the traceback, but it doesn't tell me the contents of the objects. I have tried print statemnts, pickle and pprint. I don't want to stray into the

Re: Parent_link=True causes Cannot assign None: "Business.id" does not allow null values.

2009-02-11 Thread Karen Tracey
On Wed, Feb 11, 2009 at 1:36 PM, phoebebright wrote: > > I am following the instructions at the bottom of this page > > http://docs.djangoproject.com/en/dev/topics/db/models/#inheritance-and-reverse-relations > and here >

Re: comparisons with java framework

2009-02-11 Thread CLIFFORD ILKAY
igorlash wrote: > Russ Magee , I've got a question personally to you. > Why do we need to use make ? Why this build can't be done without make > but only with python ? Who cares as long as "make html" works? Until you started this thread, I had never built the docs. I have a full-time Internet

Re: Verbose field name DjangoUnicodeDecodeError

2009-02-11 Thread Karen Tracey
On Wed, Feb 11, 2009 at 2:30 PM, Joshua Russo wrote: > Thanks so much. I think you are right. I will let you know tomorrow if > I was able to fix it. I just need to figure out where the encoding is > set in NetBeans and Textpad. I use a combination of both of them. > >

Re: Sessions Unexpectedly Causing Logout

2009-02-11 Thread SnappyDjangoUser
Sorry for my recent absence in replies I was away from this work for a short while, but I am now back. In response to Graham's question, I am not running multiple Django applications on the same host. This is one Django app on one host. Malcolm, thank you for the brief introduction to

Re: Verbose field name DjangoUnicodeDecodeError

2009-02-11 Thread Joshua Russo
On Feb 11, 4:54 pm, Ramiro Morales wrote: > On Wed, Feb 11, 2009 at 3:29 PM, Joshua Russo > wrote: > > > Ok, I'm still having issues. > > > I'm using Django 1.0.2-final and Python 2.5.4 > > > The models.py starts with the proper encoding string of: #

Re: Trying to retrieve dynamically generated session key in template

2009-02-11 Thread Kevin Audleman
I have the same session. Django has been so slick so far I would imagine it has a way to access session variables from a template. Have you found the solution? Kevin On Jan 17, 1:15 pm, dahpgjgamgan wrote: > Hi, > > A simple scenario: >    - A generic object detail

Re: Verbose field name DjangoUnicodeDecodeError

2009-02-11 Thread Joshua Russo
On Feb 11, 6:03 pm, Karen Tracey wrote: > On Wed, Feb 11, 2009 at 12:29 PM, Joshua Russo > wrote: > > > > > Ok, I'm still having issues. > > > I'm using Django 1.0.2-final and Python 2.5.4 > > > The models.py starts with the proper encoding string

Re: Sessions Unexpectedly Causing Logout

2009-02-11 Thread SnappyDjangoUser
Sorry for my recent absence in replies I was away from this work for a short while, but I am now back. In response to Graham's question, I am not running multiple Django applications on the same host. This is one Django app on one host. Malcolm, thank you for the brief introduction to

Parent_link=True causes Cannot assign None: "Business.id" does not allow null values.

2009-02-11 Thread phoebebright
I am following the instructions at the bottom of this page http://docs.djangoproject.com/en/dev/topics/db/models/#inheritance-and-reverse-relations and here http://docs.djangoproject.com/en/dev/ref/models/fields/#onetoonefield I have a parent class Directory and a child classes Business, Tourism

Re: Verbose field name DjangoUnicodeDecodeError

2009-02-11 Thread Karen Tracey
On Wed, Feb 11, 2009 at 12:29 PM, Joshua Russo wrote: > > Ok, I'm still having issues. > > I'm using Django 1.0.2-final and Python 2.5.4 > > The models.py starts with the proper encoding string of: # -*- coding: > utf-8 -*- > Except apparently your file is not actually

Re: Strange url tag behaviour

2009-02-11 Thread Alex Koshelev
Leave it empty FORCE_SCRIPT_NAME ='' On Wed, Feb 11, 2009 at 8:36 PM, Leslie Maclachlan wrote: > Thanks Dmitry, > > I entered it as: FORCE_SCRIPT_NAME = '/var/opt/django/projects/ilayer' this > has not resolved it - did I put it in the correct format? > > Regards, >

Re: Verbose field name DjangoUnicodeDecodeError

2009-02-11 Thread Ramiro Morales
On Wed, Feb 11, 2009 at 3:29 PM, Joshua Russo wrote: > > Ok, I'm still having issues. > > I'm using Django 1.0.2-final and Python 2.5.4 > > The models.py starts with the proper encoding string of: # -*- coding: > utf-8 -*- Adding that encoding string isn't enough, the

Re: Django installation on Linux

2009-02-11 Thread Alex Gaynor
On Wed, Feb 11, 2009 at 12:20 PM, rg wrote: > > So I'm trying to install Django on a Linux server (I don't have root > access) and when I run > $ python setup.py install > > I get the following error: > > File "setup.py", line 48, in ? >root_dir =

Re: DateField with Django

2009-02-11 Thread Alex Gaynor
On Wed, Feb 11, 2009 at 12:19 PM, Edgard Matos wrote: > Anybody help me? > > On Wed, Feb 11, 2009 at 11:36 AM, Edgard Matos wrote: > >> Hi! >> >> I have a model with a DateField and I'm setting the input_formats >> properties to "%d/%m/%Y": >>

Django installation on Linux

2009-02-11 Thread rg
So I'm trying to install Django on a Linux server (I don't have root access) and when I run $ python setup.py install I get the following error: File "setup.py", line 48, in ? root_dir = os.path.dirname(__file__) NameError: name '__file__' is not defined How should I fix this? I thought

Re: DateField with Django

2009-02-11 Thread Edgard Matos
Anybody help me? On Wed, Feb 11, 2009 at 11:36 AM, Edgard Matos wrote: > Hi! > > I have a model with a DateField and I'm setting the input_formats > properties to "%d/%m/%Y": > birth_date = forms.DateField(input_formats=("%d/%m/%Y",)) > > When I go add a object in this

Re: Admin Change List Page - Can I have anonymous users view this table?

2009-02-11 Thread Alex Gaynor
On Wed, Feb 11, 2009 at 1:07 PM, Bfox wrote: > > I really like the admin pages. I want to figure out how to show the > "list page" to all users (even when anonymous), but I don't want > anonymous users to be able to edit the data (obviously). I looked at > databrowse, but

Re: Generic foreignKey model: Category

2009-02-11 Thread Jake Elliott
hi dan - a little further down on the contenttypes doc page you link to there is documentation on the generic foreign key mechanism bundled with the contenttypes app: http://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#id1 pretty similar to what you describe ;) On Wed, Feb 11, 2009

Re: Working with Forms and Session Variables

2009-02-11 Thread Daniel Roseman
On Feb 11, 4:11 pm, gbd wrote: > Another point (sorry I should have said this in my original post) > > My form is bound > i.e. in my view > form = RecipeForm(request.POST) > I don't believe that I can use initial in this case? > > please let me know if I've misunderstood

Admin Change List Page - Can I have anonymous users view this table?

2009-02-11 Thread Bfox
I really like the admin pages. I want to figure out how to show the "list page" to all users (even when anonymous), but I don't want anonymous users to be able to edit the data (obviously). I looked at databrowse, but as far as I can tell, it is not tabular. The table I am referring to has the

Re: Strange url tag behaviour

2009-02-11 Thread Leslie Maclachlan
Thanks Dmitry, I entered it as: FORCE_SCRIPT_NAME = '/var/opt/django/projects/ilayer' this has not resolved it - did I put it in the correct format? Regards, Leslie Dmitry Dzhus wrote: > Leslie Maclachlan wrote: > > >> I would expect the url to show as: http://intranet/MV_Edit_Employee/1/

Re: Working with Forms and Session Variables

2009-02-11 Thread gbd
Thanks for all your help it's much appreciated. I will work with both methods and see if i can get them to work! Thanks again On Feb 11, 12:13 pm, Daniel Roseman wrote: > On Feb 11, 4:11 pm, gbd wrote: > > > > > Another point (sorry I

Re: Verbose field name DjangoUnicodeDecodeError

2009-02-11 Thread Joshua Russo
On Feb 11, 1:38 pm, Ramiro Morales wrote: > On Wed, Feb 11, 2009 at 11:22 AM, Joshua Russo > wrote: > > > I'm developing an app and want to use Portuguese characters in the > > verbose field names for my models. The tables were created fine but > >

Re: before save data handling

2009-02-11 Thread danfreak
any idea ;o) sorry if I ask again! Dan --~--~-~--~~~---~--~~ 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: Another thread about static content

2009-02-11 Thread Ramiro Morales
On Tue, Feb 10, 2009 at 8:11 PM, djandrow wrote: > > I've move it just to the apache2.2 file so my conf is now: > > Options Indexes FollowSymLinks > > >SetHandler python-program >PythonHandler django.core.handlers.modpython >SetEnv DJANGO_SETTINGS_MODULE

Re: How do I display the human readable name of a choice?

2009-02-11 Thread Kevin Audleman
I could've swore I tried that before posting my question and it didn't work, but I tried it this time and it did. Anyhow, a long winded way of apologizing for asking a simple question. Thank you for taking the time to answer! Kevin On Feb 10, 3:41 pm, Alex Gaynor wrote:

Re: Generic foreignKey model: Category

2009-02-11 Thread danfreak
Cheers Jake, given the code: -- from django.db import models from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes import generic class CategoryItem(models.Model): name = models.CharField(max_length=200) content_type =

Re: order_by Ignore case

2009-02-11 Thread Alex Koshelev
You can do the same trick with django: Entry.objects.extra(select={'foo_upper': 'upper(foo)'}, order_by=['foo_upper']) On Wed, Feb 11, 2009 at 7:20 PM, jeffhg58 wrote: > > I currently have a field which has upper and lower case characters. Is > there a way for the django

  1   2   >