Re: How to know the current apache authenticated user

2008-06-01 Thread Ramiro Morales
On Mon, Jun 2, 2008 at 12:27 AM, Maykel Moya <[EMAIL PROTECTED]> wrote: > > I'm running a Django site via apache2 + mod_python. I'm not using any > Django related authentication mechanism, just apache digest > authentication against a flat file. > > [...] > > I'm thinking on a environment variable

How to know the current apache authenticated user

2008-06-01 Thread Maykel Moya
I'm running a Django site via apache2 + mod_python. I'm not using any Django related authentication mechanism, just apache digest authentication against a flat file. I need to know what user is currently authenticated by apache. Some people on #django have had point me to PythonAuthHandler but I

Multi-table Models and Fixtures

2008-06-01 Thread Greg Taylor
It seems like multi-table sub-classed models (not abstract) don't honor the "pk" being specified in fixtures. For example, I have an Event class that is sub-classed by a Race model. The Event class is in an app called "calendar" and the Race model is in an app called "regattas". I dumpdata regatta

Re: Strange:Dev Web server crash with a python.core dump after Admin page being refreshed exactly 16 times

2008-06-01 Thread Stephen Cheng
Hi I resolve the problem, but this was a long way to make it and so far i am still not sure why and how it's been resolved. What I did was as follow: 1. I doubt python version, then I uninstall python 2.5.1 and install 2.5.2,I actually use virtual python but this has nothing to do with the prob

Re: Installed django bu cant run django-admin.py

2008-06-01 Thread Jeff Anderson
slix wrote: exactly what does that mean. When you type in a command, your command line interface looks in certain directories for executables of that name. That list of directories is stored in your path. http://vlaurie.com/computers2/Articles/environment.htm That link discusses environment

Re: mod-python, LoadModule python_module modules/mod_python.so

2008-06-01 Thread Graham Dumpleton
On Jun 2, 10:57 am, slix <[EMAIL PROTECTED]> wrote: > LoadModule python_module modules/mod_python.so > > this is weird, i open the file and add that then windows says the file > cant be found and  cant create the file either although it isclearly > there. Apache when run as a Windows service ru

Re: Installed django bu cant run django-admin.py

2008-06-01 Thread slix
exactly what does that mean. c/x/y and in y i have a and b then i can run it from either if djangoadmin is in x? but if i am in c/q/r insetad then i cant run it? i thought the c:/python25/scripts folder was too make it accessible within all python25? i have c/python25/progs/webapps/djangotest

mod-python, LoadModule python_module modules/mod_python.so

2008-06-01 Thread slix
LoadModule python_module modules/mod_python.so this is weird, i open the file and add that then windows says the file cant be found and cant create the file either although it isclearly there. --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Installed django bu cant run django-admin.py

2008-06-01 Thread Jeff Anderson
slix wrote: i can run django-admin in the same directory so i just need to connect it so i can run it in python25/programs/webapplications for example. This is a path issue. Make sure you have the django-admin in your PATH. you path tells your command line where to look for commands. Jeff A

Re: Installed django bu cant run django-admin.py

2008-06-01 Thread slix
i can run django-admin in the same directory so i just need to connect it so i can run it in python25/programs/webapplications for example. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

getting form data in a template - using form labels

2008-06-01 Thread MrJogo
I'm trying to create a simple plain text email template that displays user-submitted, clean form data. Right now, the template is: email_template.txt {% for field, value in data.items %} {{ field }}: {{ value }} {% endfor %} The view passes the template {'data': form.cleaned_data}. Unfortunately

Lost stdout and stderr on fcgi with Django

2008-06-01 Thread The Code Janitor
I am running Django on a centos box using lighttpd and fastcgi. I found that if I didn't daemonize the fastcgi process and did not specify a socket name to the manage.py script that the fcgi handlers cooperated better and was able to place all of the fcgi process under the control of lighttpd and

Installed django bu cant run django-admin.py

2008-06-01 Thread slix
i installed django in site-packages but just by copung the folder over so i havent used setup.py install. this means it is not linked correctly i prsume. when i try to run django-admin.py startproject testproject it complains "django-admin is not recoznized as an internal or external command".

Re: package directory \django does not exist

2008-06-01 Thread slix
ah i could just move the django dir, no need to run setup it seems. On 2 Juni, 00:31, Chris <[EMAIL PROTECTED]> wrote: > Python isn't checking your Desktop for modules. Untar it under your > python directory. Preferably, "site packages" > > slix wrote: > > i untared the official download and ra

Re: package directory \django does not exist

2008-06-01 Thread slix
i did, still the same problem. now the Django-0.92-2 is in site- packages. i also tried taking the folders from ther e and put directky in site-packages but didnt work either. On 2 Juni, 00:31, Chris <[EMAIL PROTECTED]> wrote: > Python isn't checking your Desktop for modules. Untar it under your

Extending User

2008-06-01 Thread puff
I'm relatively new to Django and struggleing a bit trying to extend Django's native User model. What I'd like to achieve is the following: - Add a few fields to the existing User model - Have these fields editable on Django's Admin screen - When a new User is saved, execute a bit of code to tell

Re: package directory \django does not exist

2008-06-01 Thread Chris
Python isn't checking your Desktop for modules. Untar it under your python directory. Preferably, "site packages" slix wrote: > i untared the official download and ran setup.py install from the > desktop where it is placed. > > should i first place the django, docs and scripts folders in site

Re: About newforms-admin branch

2008-06-01 Thread Jeff Anderson
Grupo Django wrote: When newforms-admin is merged to the trunk, what will happen with all the sites that are currently using the current admin application? It's completely different. Should we change every single project to make them compatible with the newforms-admin version? Short answer: y

Re: images in templates?

2008-06-01 Thread Daniel Roseman
On Jun 1, 9:51 pm, lindec <[EMAIL PROTECTED]> wrote: > Thanks!! I had the same problem adding external CSS and Javascript > files as well. This seems like an absurd problem to have, given that > its obvious that developers would want to add CSS/JS files to their > templates. I wonder why the devel

package directory \django does not exist

2008-06-01 Thread slix
i untared the official download and ran setup.py install from the desktop where it is placed. should i first place the django, docs and scripts folders in site- packages? i thought setup.py would put them there. 2nd option is using subversion but how do i check if i have/use apache 2.0 or 2.2

Re: admin documentation field description

2008-06-01 Thread Mihai Damian
I see that verbose_name is also an interesting option --~--~-~--~~~---~--~~ 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 g

Re: images in templates?

2008-06-01 Thread lindec
Thanks!! I had the same problem adding external CSS and Javascript files as well. This seems like an absurd problem to have, given that its obvious that developers would want to add CSS/JS files to their templates. I wonder why the developers have not addressed this? On Jun 1, 4:14 am, Jarred Bis

Re: Django Documentation. License?

2008-06-01 Thread nallen05
On Jun 1, 6:25 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Alan is correct, the docs are definitely under the same license as the > source, BSD. That's awesome; good to hear. Thanks for the quick response guys :-) Nick --~--~-~--~~~---~--~~ You received t

Re: admin documentation field description

2008-06-01 Thread Mihai Damian
Ok, this is what I was looking for. It doesn't allow me to completly override the description, instead it just appends my text but I guess it's good enough. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Re: recommended tagging app?

2008-06-01 Thread Justin Lilly
Its the defacto django tagging app. Everything is pretty straight forward, just read the docs on it. On Sun, Jun 1, 2008 at 3:30 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > hi, > > Can anyone point me to a good tagging app? > > Is django-tagging good? > http://code.google.com/p/django-t

recommended tagging app?

2008-06-01 Thread [EMAIL PROTECTED]
hi, Can anyone point me to a good tagging app? Is django-tagging good? http://code.google.com/p/django-tagging/ Is there anything I should know before I try to integrate it? Thanks, Ivan http://tipjoy.com --~--~-~--~~~---~--~~ You received this message because

How to force BINARY flag at table creation?

2008-06-01 Thread Rachel Willmer
I've just come across an interesting problem... I've got a text string as primary key in a Django model. Turns out that Mysql is treating this as case-insensitive, that is, I have an initial_data.json fixture with 2 records, "abc" and "ABC" in the primary key field, and only one of them is install

Re: How to get child model' name from parent obj in Multi-table inheritance

2008-06-01 Thread jonknee
On Jun 1, 1:46 am, David Zhou <[EMAIL PROTECTED]> wrote: > Why wouldn't that work, unless I'm misunderstanding something? > >  From the docs: > >  >>> p = Place.objects.filter(name="Bob's Cafe") > # If Bob's Cafe is a Restaurant object, this will give the child class: >  >>> p.restaurant > > Howe

About newforms-admin branch

2008-06-01 Thread Grupo Django
Hello, I'd like to know the status in the newforms-admin branch, I have seen the todo list: http://code.djangoproject.com/query?status=new&status=assigned&status=reopened&keywords=%7Enfa-blocker&order=priority but it would be great the current state (80%,90%...). The reason I'm starting a new pro

download live indian porn in the high school priyanka and viga at the class room

2008-06-01 Thread arab girl
download live indian porn in the high school priyanka and viga at the class room http://www.shgon.org/vb.htm Click Here to download --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: click download, click install, go! no....

2008-06-01 Thread Ariel Mauricio Nunez Gomez
http://s3.amazonaws.com/instant.django/django.exe (No I am not a spambot and no, it is not a fake ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: click download, click install, go! no....

2008-06-01 Thread Michael Newman
Just as I was writing this up someone brought to my attention: http://bitnami.org/stack/djangostack I have never tried it, but if you are feeling adventurous, it might but just what you are looking for. On Jun 1, 12:54 pm, Michael Newman <[EMAIL PROTECTED]> wrote: > The reality is that Django do

Re: click download, click install, go! no....

2008-06-01 Thread Michael Newman
The reality is that Django does require a certain curve to get things up and running. When I first started with Django, it was my first time working with the server side and it took me a few months to really get what I am doing. That being said the django community has really been booming this las

Re: Display only some tables

2008-06-01 Thread Kless
Well, I've been playing with the admin interface, and simply choosing the permissions is enought to display any tables to the users. The bad is that it's necessary that the users are registered to that can see she tables. On 1 jun, 17:09, Tim <[EMAIL PROTECTED]> wrote: > Hi Kless, > > This doesn'

Re: admin documentation field description

2008-06-01 Thread [EMAIL PROTECTED]
Try using the help_text= in your models.py: title = models.CharField(max_length=100,help_text="Your Next Action") see: http://www.djangoproject.com/documentation/model-api/#help-text best, alan On Jun 1, 8:53 am, Mihai Damian <[EMAIL PROTECTED]> wrote: > In the admin interface users can brow

Re: How to go about this Registration problem?

2008-06-01 Thread Tim
Are you having problems in your view (getting the list of workshops) or are you having trouble building the registration form or are you having trouble in your templates (displaying the form and list of workshops)? Maybe a bit of all three? Perhaps you could post your models and your current views

Re: Django Documentation. License?

2008-06-01 Thread [EMAIL PROTECTED]
Alan is correct, the docs are definitely under the same license as the source, BSD. On Jun 1, 10:46 am, Alan Boyce <[EMAIL PROTECTED]> wrote: > Nick, > > Because the documentation is distributed with the source, see: > > http://code.djangoproject.com/browser/django/trunk/docs > > and it has no ot

Re: Display only some tables

2008-06-01 Thread Tim
Hi Kless, This doesn't sound like a "how do I get my code to work" problem but more of a general "how does this work" sort of question. I'd suggest you read through Django Book ( http://www.djangobook.com/en/1.0/chapter12/ seems appropriate) to figure out how the Auth stuff works and there is a c

Re: Django Documentation. License?

2008-06-01 Thread Alan Boyce
Nick, Because the documentation is distributed with the source, see: http://code.djangoproject.com/browser/django/trunk/docs and it has no other notice. I'm assuming it falls under the BSD license, same as the rest of the django framework. alan On Jun 1, 2008, at 10:08 AM, [EMAIL PROTECTED]

Re: django error about syncdb

2008-06-01 Thread Karen Tracey
On Sun, Jun 1, 2008 at 11:30 AM, tony yu <[EMAIL PROTECTED]> wrote: > > when i remove django.contrib.admin from INSTALLED_APPS, run syncdb > success. > I think django is not Compatible with python 2.5.2? > No, I've got Python 2.5.2 on one of my machines, so it is not as simple as just the Python l

Re: django error about syncdb

2008-06-01 Thread tony yu
when i remove django.contrib.admin from INSTALLED_APPS, run syncdb success. I think django is not Compatible with python 2.5.2? On 6月1日, 上午5时42分, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sat, May 31, 2008 at 2:07 AM, tony yu <[EMAIL PROTECTED]> wrote: > > > version info: > > django svn vers

Re: How to go about this Registration problem?

2008-06-01 Thread Drozzy
Example input form: Registration Workshop on building trains! Please choose date: May 22, 2008 April 12, 2009 May 32, 2009 Workshop for Programmers! Please choose date: May 12, 2008 April 13, 2009 May 11, 2009 On Jun 1, 10:41 am, Drozzy <[EMAIL PROTECTED]> wrote: > Hello Dear dja

Re: A for B C as D in templates

2008-06-01 Thread Michael Newman
As is written into templatetags directly. It is a fairly easy process and it helps with context variables (otherwise how would you access comment_count in the template). Look here for how to write a custom tag: http://www.djangoproject.com/documentation/templates_python/#writing-custom-template-t

Funmeninges - A découvrir - Sudoku , sudolettre, Pendu , Motus,...

2008-06-01 Thread funmeninges
http://www.funmeninges.com Funmeninges ce sont : - Des millions de grilles de Sudoku [http://www.funmeninges.com/ sudoku.html], Sudolettres [http://www.funmeninges.com/sudolettre.html] en ligne. - Des jeux morpion [http://www.funmeninges.com/jeu-du-morpion.html], echecs, simon. - Le dictionnaire

Re: Problem in internet browser

2008-06-01 Thread Karen Tracey
On Sun, Jun 1, 2008 at 7:32 AM, Buddy <[EMAIL PROTECTED]> wrote: > > Why I have problem in my internet browser FireFox and Opera on Linux > Ubuntu when I see to djangoproject.com site especially code example? A > text is hiding when I make zoom rule > Thanks you !!! > > PS > Who Can fixed this bug

How to go about this Registration problem?

2008-06-01 Thread Drozzy
Hello Dear djangoists, I am new to this mailing list - so just wanted to say hi first! I am also new to django - but I chose it for the My question is this, I have 2 models: Workshop( title, description, fee) Event( workshop = models.ForeignKey(Workshop), start_date, end_date) The idea is that W

Re: Strange:Dev Web server crash with a python.core dump after Admin page being refreshed exactly 16 times

2008-06-01 Thread Karen Tracey
On Sun, Jun 1, 2008 at 2:41 AM, Stephen Cheng <[EMAIL PROTECTED]> wrote: > > Hi Guys > > This is a very strange problem and I haven't resolved it. Dev Web > server just crash with a python.core dump and no exception log at all. > > Problem occurs when you go around the Admin page, either refresh p

Re: A for B C as D in templates

2008-06-01 Thread Rodrigo Culagovski
I see. Is "as" used outside of this tag? I think I've seen it in other contexts. Thanks, Rodrigo On Jun 1, 12:38 am, Julien <[EMAIL PROTECTED]> wrote: > This is not a standard syntax but the particular syntax for the tag > get_free_comment_count. Check its code in > django.contrib.comments.temp

Re: How to handle asian language?

2008-06-01 Thread Karen Tracey
On Sun, Jun 1, 2008 at 9:16 AM, Stephen Cheng <[EMAIL PROTECTED]> wrote: > > I got exception in admin page when I input chinese character into one > field and try to save to db. I am not sure which lib I should install > to make it work or any configure I should enable. > > Any advice? > > You nee

Django Documentation. License?

2008-06-01 Thread nallen05
Hello, I've ported the Django templating stuff to Common Lisp and I'd eventually like to open source the code. Since it's pretty much a carbon copy from the point of view of the designer with some new tags and some tags and filters missing (at the moment ;-) it would be nice to just include parts

How to handle asian language?

2008-06-01 Thread Stephen Cheng
I got exception in admin page when I input chinese character into one field and try to save to db. I am not sure which lib I should install to make it work or any configure I should enable. Any advice? UnicodeEncodeError at /admin/books/author/add/ 'ascii' codec can't encode characters in posi

admin documentation field description

2008-06-01 Thread Mihai Damian
In the admin interface users can browse documentation related to models and such, using the documentation link. I see that every field can have a description there. However the model definition chapter in djangobook says nothing about adding description to fields. Does anyone now how I can change

DateField format

2008-06-01 Thread shocks
Hi I'm using pluging into Django with a binary format based on SOAP (AMF) into Flex. I'd like to format the date field as DD-MM-YY however the date object returned from my Django gateway is of the format: Sun Jun 1 01:00:00 GMT+0100 2008. How do I go about changing this in the model? My views

Re: Job opening: Malaria Atlas Project, Oxford University

2008-06-01 Thread anand
On May 9, 5:07 pm, "John Handelaar" <[EMAIL PROTECTED]> wrote: > On Fri, May 9, 2008 at 4:50 PM,anand<[EMAIL PROTECTED]> wrote: > > > Further particulars can be downloaded fromhttp://www.zoo.ox.ac.uk/jobs/ > > That's not true. > > jh That's embarrassing... well, you can see that we definitely nee

Re: Instant Django for Mac?

2008-06-01 Thread cjl
MM: I've never used it, but you might want to check out: http://bitnami.org/stack/djangostack It might be what you are looking for. -cjl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: escaping of (double) quotes in html-attributes in widgets

2008-06-01 Thread Russell Keith-Magee
On Sun, Jun 1, 2008 at 12:52 AM, thomas <[EMAIL PROTECTED]> wrote: > > hi, > i want to code a widget. therefore i need to provide a callback for > the "onclick" event. one of those arguments is a string and thus > between double-quotes. in the html-document the string is no more > between doublequ

Re: Instant Django for Mac?

2008-06-01 Thread Russell Keith-Magee
On Sun, Jun 1, 2008 at 6:14 PM, Michael Meier <[EMAIL PROTECTED]> wrote: > > What I want is a local PostgreSQL database server on my Macbook, so I > tried all Tutorials I've found on the internet, most with MacPorts. Sounds like you want: http://www.postgresqlformac.com/ Its unofficial, but it

Problem in internet browser

2008-06-01 Thread Buddy
Why I have problem in my internet browser FireFox and Opera on Linux Ubuntu when I see to djangoproject.com site especially code example? A text is hiding when I make zoom rule Thanks you !!! PS Who Can fixed this bug? --~--~-~--~~~---~--~~ You received this messag

click download, click install, go! no....

2008-06-01 Thread slix
looking at: http://www.djangoproject.com/documentation/install/ it just seems a little to complicated to get started. i eventually want to run my app on a big server but right now i just want to launch a small html-site that can do some calculations based on input and then do some output. ive t

Re: odd date problem with free threaded comments

2008-06-01 Thread Graham Dumpleton
On May 31, 11:29 am, Manuel Meyer <[EMAIL PROTECTED]> wrote: > Hey, > > I am using Free threaded comments on a 0.97-pre-SVN-7436 site. > I am developing on Mac and run the site on debian/apache2/mod_python. > under debian i found a strange behavior: > Some comments are pre-dated 7 hours. ie.: >

Re: Django & Mod_python unstable behaviour?

2008-06-01 Thread Graham Dumpleton
On May 31, 2:12 pm, dxLogan <[EMAIL PROTECTED]> wrote: > Hello all, > > I'm a new Django user and looks forward to it. I'm still playing with > it and met some unexplained results. Hopefully masters here may shed > some insight into the problem. > > So I set up the apache with mod_python as taug

Instant Django for Mac?

2008-06-01 Thread Michael Meier
Hi I'm trying to install Django on my Macbook Pro (Mac OS X 10.5 (Leopard)) since weeks and I've spent about 15 hours and I haven't succeeded so far. What I want is a local PostgreSQL database server on my Macbook, so I tried all Tutorials I've found on the internet, most with MacPorts. Actuall

Re: images in templates?

2008-06-01 Thread Jarred Bishop
Hi, the problem is (like you mentioned) django has no reference to where your images are. A way i got around this was, adding a line to my urls.py that contained a 'static' folder. for example: (r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': 'C:/path-to-project/templates/stat

Re: Change the model name

2008-06-01 Thread Kless
I'm refering to that the model name -not the db name- is created by: app_label + '.' + model_class_name (in lowercase). So, of a class as: class FooBar(...): ... The model name is: 'application.foobar' And I would to get a 'model_class_name' separed by underscores -when there is anything le

Re: blankiing an ImageField

2008-06-01 Thread Amit Ramon
* Carl Karsten <[EMAIL PROTECTED]> [2008-05-25 17:25 -0500]: > > In the admin UI, is there any way to blank out a foo = model.ImageField(...) > ? > > Carl K foo = model.ImageFields(..., editable=False) Is that what you meant? --- Amit --~--~-~--~~~---~--~~