World Funniest Video

2007-02-19 Thread doy
you can find it here the World Funniest Video at http://www.supperlaffn.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 django-users@goog

Query regarding Schema evolution branch.

2007-02-19 Thread Ramashish Baranwal
Hi, I am writing an app where I will occasionally need to change my db schema. I am not an SQL expert, and would like to confine myself to python and django db APIs if possible (don't want to go through raw SQL or db engine specific code). After some googling I found django's schema evolution bra

Re: Django over modpython

2007-02-19 Thread gordyt
On Feb 17, 7:03 am, [EMAIL PROTECTED] wrote: > Yes, most of the hostings have fastCGI, but not flup. > I know the best is to have VPS hosting, but they are very expensive, > and I think I can manage with a shared hosting. > I think Blouehost looks good. I'm not sure about other hosting companies,

Re: Hidden datetime field in newforms

2007-02-19 Thread juampa
Collin: I did not know enough earlier to understand your answer, but I do now. Thanks. Juan Pablo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: Custom validator equivalent for newforms

2007-02-19 Thread juampa
Thanks, Adrian. Your answer worked great. Juan Pablo --~--~-~--~~~---~--~~ 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 th

Re: Database changes

2007-02-19 Thread kbochert
On Feb 19, 5:27 pm, "Lawrence Oluyede" <[EMAIL PROTECTED]> wrote: > > All I can think of is to create a new model, say Poll1, with the > > correct fields, do a syncdb, write and execute a python function to > > transfer the data from Poll to Poll1, do a DROP TABLE on Poll, create > > a new tabl

Re: Database changes

2007-02-19 Thread Malcolm Tredinnick
On Tue, 2007-02-20 at 02:27 +0100, Lawrence Oluyede wrote: > > All I can think of is to create a new model, say Poll1, with the > > correct fields, do a syncdb, write and execute a python function to > > transfer the data from Poll to Poll1, do a DROP TABLE on Poll, create > > a new table named P

Re: Database changes

2007-02-19 Thread Adrian Holovaty
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > If I have a Django model: > > class Poll(models.Model): > ... > > and decide that I need another field in the table, how do I proceed > while keeping the data? Hi Karl, See the FAQ: "If I make changes to a model, how do I update the database

Re: Database changes

2007-02-19 Thread Lawrence Oluyede
> All I can think of is to create a new model, say Poll1, with the > correct fields, do a syncdb, write and execute a python function to > transfer the data from Poll to Poll1, do a DROP TABLE on Poll, create > a new table named Poll, do a syncdb transfer the data from Poll1 to > Poll with a pyth

Database changes

2007-02-19 Thread kbochert
If I have a Django model: class Poll(models.Model): ... and decide that I need another field in the table, how do I proceed while keeping the data? All I can think of is to create a new model, say Poll1, with the correct fields, do a syncdb, write and execute a python function to transfer t

Re: Custom validator equivalent for newforms

2007-02-19 Thread Adrian Holovaty
On 2/19/07, juampa <[EMAIL PROTECTED]> wrote: > It used to be that if you had an IntegerField in a model class, and > you wanted to restrict its valid rango to , say, 0 to 10, you would > write a custom validator function and add it to the validator_list on > the form field or even the model field

Custom validator equivalent for newforms

2007-02-19 Thread juampa
It used to be that if you had an IntegerField in a model class, and you wanted to restrict its valid rango to , say, 0 to 10, you would write a custom validator function and add it to the validator_list on the form field or even the model field. What is the equivalent way to do this with newforms?

Re: Newforms, form_for_model, help_text and unicode.

2007-02-19 Thread Adrian Holovaty
On 2/19/07, sandro.dentella <[EMAIL PROTECTED]> wrote: > I had similar problems this night. It comes out help_text is the > source of problems. I fixed it adding smart_unicode in Field class > (newforms.fields): > > class Field(object): > ... > def __init__(...): > self.help_text = s

Uploading large files

2007-02-19 Thread Nathan R. Yergler
A little late, but as promised, I've bundled the code I'm using for handling large file uploads in my application. It's a bit of a cheat -- it actually uses a CGI for handling the actual upload and requires an embedded iframe to make things work quite right. But it has the following features: *

Re: Hidden datetime field in newforms

2007-02-19 Thread juampa
On Feb 19, 3:55 pm, "Collin Grady" <[EMAIL PROTECTED]> wrote: > Define a clean_date_posted to trim the decimals? But the question is where. After you create the form class with FormClass = forms.models.form_for_instance(anInstance) . . . form = FormClass(request.POST) the form is bound to the

Re: Admin without Auth

2007-02-19 Thread kbochert
On Feb 19, 1:52 pm, "Honza Král" <[EMAIL PROTECTED]> wrote: > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > > > On Feb 19, 1:25 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote: > > > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTEC

Re: Multiple Forms and/or Models from one template (newforms)

2007-02-19 Thread brooks
Have you had any luck so far, Jim? I'm in a similar boat, and haven't been able to get it to work. My problem seems to be adding the 'id' to the clean_data and getting it to validate. Anything you've managed to figure out would be very helpful. At this point, I'm stuck. On Jan 24, 11:33 am, "

Re: Binary Data fields?

2007-02-19 Thread voltron
Thanks for the answers, I wanted this because of portability reasons. I wanted to store small avatar images with a user profile in the database. No Image paths to configure and a backup of the database holds all the important data of the users. Everything in one place. On Feb 19, 10:55 pm, "Honza

Re: Django over modpython

2007-02-19 Thread Grupo Django
They told me that modpython is running through cgi, I have no idea about that. I want that all my objects are privated, and that nobody is able to see anything from my code. To be honest, I just read about this, I don't know anything about this and I'd like to learn. What is the best in a vps? Wha

Re: Binary Data fields?

2007-02-19 Thread Honza Král
On 2/19/07, voltron <[EMAIL PROTECTED]> wrote: > > How would I go about saving images in a database? The imageField saves > images in the file system, how can I cleanly in a Djangoish way > override this? django currently doesn't support BLOBs so there is no way to do that in a clean django way...

Re: Hidden datetime field in newforms

2007-02-19 Thread Collin Grady
Define a clean_date_posted to trim the decimals? On Feb 19, 8:25 am, "juampa" <[EMAIL PROTECTED]> wrote: > I have a certain model that contains a datetime field and I am using > newforms to create and edit entries for this model. One of the fields > in the model is a datetime set only for an ent

Re: Binary Data fields?

2007-02-19 Thread Collin Grady
There's no quick way - django does not currently support binary types :) There is a patch in trac somewhere that's a start on it, but there would be no promises on how well it works :) On Feb 19, 1:52 pm, "voltron" <[EMAIL PROTECTED]> wrote: > How would I go about saving images in a database? Th

Binary Data fields?

2007-02-19 Thread voltron
How would I go about saving images in a database? The imageField saves images in the file system, how can I cleanly in a Djangoish way override this? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Re: Admin without Auth

2007-02-19 Thread Honza Král
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > On Feb 19, 1:25 pm, "Honza Kr�l" <[EMAIL PROTECTED]> wrote: > > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > > > > > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote: > > > > > > what exactly are you doing? > > > > this

Re: newforms: MultiValueField and MultiWidget

2007-02-19 Thread Justin Findlay
On Feb 19, 1:18 pm, "Justin Findlay" <[EMAIL PROTECTED]> wrote: > Canen, do you have the time to work out a full example? After much > trying I'm still not able to repeat the example without having to use > the double tuple values. Nevermind. I misunderstood what you meant by repeating choices.

Re: Admin without Auth

2007-02-19 Thread kbochert
On Feb 19, 1:25 pm, "Honza Král" <[EMAIL PROTECTED]> wrote: > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote: > > > > what exactly are you doing? > > > this approach works perfectly for me... > > > I put the mentioned sql in

Re: python 2.4 v 2.5 and DJANGO_SETTINGS_MODULE

2007-02-19 Thread Waylan Limberg
On Mon, 19 Feb 2007 15:58:37 -0500, Veloz <[EMAIL PROTECTED]> wrote: > > Hi there > > A couple weeks back I evaluated Django under Python 2.4. I followed > the installation instructions and all went well. > > Recently we upgraded from python 2.4 on the server to python 2.5, and > at that point, m

Re: Admin without Auth

2007-02-19 Thread kbochert
On Feb 19, 1:35 pm, "Honza Král" <[EMAIL PROTECTED]> wrote: > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > > > On Feb 19, 1:25 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote: > > > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTEC

Re: Admin without Auth

2007-02-19 Thread Honza Král
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > On Feb 19, 1:25 pm, "Honza Kr�l" <[EMAIL PROTECTED]> wrote: > > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > > > > > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote: > > > > > > what exactly are you doing? > > > > this

Re: Admin without Auth

2007-02-19 Thread kbochert
On Feb 19, 1:25 pm, "Honza Král" <[EMAIL PROTECTED]> wrote: > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote: > > > > what exactly are you doing? > > > this approach works perfectly for me... > > > I put the mentioned sql in

Re: Admin without Auth

2007-02-19 Thread Honza Král
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > On Feb 19, 12:46 pm, "Honza Kr�l" <[EMAIL PROTECTED]> wrote: > > > > > what exactly are you doing? > > this approach works perfectly for me... > > > I put the mentioned sql in a file in my Djano installation django/ > contrib/auth/sql/users.s

Re: Admin without Auth

2007-02-19 Thread Honza Král
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > On Feb 19, 1:11 pm, "Chris Brand" <[EMAIL PROTECTED]> wrote: > > > I then erase my apps database and run 'manage.py syncdb' > > > > Are you aware that you don't have to erase the database before running > > syncdb ? If you don't erase the db,

Re: Admin without Auth

2007-02-19 Thread kbochert
On Feb 19, 1:11 pm, "Chris Brand" <[EMAIL PROTECTED]> wrote: > > I then erase my apps database and run 'manage.py syncdb' > > Are you aware that you don't have to erase the database before running > syncdb ? If you don't erase the db, you won't need to recreate the > superuser... > If I add or

RE: Admin without Auth

2007-02-19 Thread Chris Brand
> I then erase my apps database and run 'manage.py syncdb' Are you aware that you don't have to erase the database before running syncdb ? If you don't erase the db, you won't need to recreate the superuser... Chris --~--~-~--~~~---~--~~ You received this mess

python 2.4 v 2.5 and DJANGO_SETTINGS_MODULE

2007-02-19 Thread Veloz
Hi there A couple weeks back I evaluated Django under Python 2.4. I followed the installation instructions and all went well. Recently we upgraded from python 2.4 on the server to python 2.5, and at that point, my Django stopped working. (The 2.4 version of Python came either installed with Fed

Re: Admin without Auth

2007-02-19 Thread kbochert
On Feb 19, 12:46 pm, "Honza Král" <[EMAIL PROTECTED]> wrote: > > what exactly are you doing? > this approach works perfectly for me... > I put the mentioned sql in a file in my Djano installation django/ contrib/auth/sql/users.sql I then erase my apps database and run 'manage.py syncdb' When p

Re: Admin without Auth

2007-02-19 Thread James Bennett
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > No luck. I put: > > BEGIN; > INSERT INTO "auth_user" ('username', 'email', 'password') VALUES > ('admin', '[EMAIL PROTECTED]', 'sha1$b0461$2ed273ea30cf73581'); #'admin' > COMMIT; > > BEGIN; > INSERT INTO "auth_user" ('is_staff', 'is_active'

Re: Admin without Auth

2007-02-19 Thread Honza Král
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > On Feb 19, 11:40 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > How do I generate a hashed password? > > > > The easiest way is actually to manually create the superuser once > > du

Re: Admin without Auth

2007-02-19 Thread kbochert
On Feb 19, 11:40 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > How do I generate a hashed password? > > The easiest way is actually to manually create the superuser once > during a syncdb run, and then copy/paste the hash out of the admin

Re: newforms: MultiValueField and MultiWidget

2007-02-19 Thread Justin Findlay
On Jan 25, 1:16 pm, "canen" <[EMAIL PROTECTED]> wrote: > Answering my own question: > > The widget can be declared as part of the field, e.g. > > # Field > class MoneyField(MultiValueField): > def __init__(self, currency=(), amount=(), required=True, > widget=None, label=None, initial=None): >

Re: Django over modpython

2007-02-19 Thread ScottB
For VPS hosted based in the UK, I can highly recommend Xtraordinary Hosting. I have a basic VPS with them and it's super fast. http://www.xtrahost.co.uk/xenvps Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Admin without Auth

2007-02-19 Thread James Bennett
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > How do I generate a hashed password? The easiest way is actually to manually create the superuser once during a syncdb run, and then copy/paste the hash out of the admin page for that user. You can manually generate a hash if you want to, but it's

see and save picture

2007-02-19 Thread Urmila Mayra
See all the picture one by one Lord http://ifs2.imagefly.info/v/d9/jpg/god0a.html http://ifs2.imagefly.info/v/a1/jpg/god1v.html http://ifs2.imagefly.info/v/56/jpg/god7h.html http://ifs2.imagefly.info/v/f6/jpg/lor20e.html http://ifs2.imagefly.info/v/dd/jpg/lor21s.html http://ifs2.imagefly.info/v/5b/

Re: Admin without Auth

2007-02-19 Thread kbochert
On Feb 19, 11:08 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 2/19/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > Something like > > > BEGIN; > > INSERT INTO "auth_user" ('username', 'email', 'password') VALUES > > ('me', '[EMAIL PROTECTED]', 'my_hashed_password'); > > COMMIT; > > (an

AGLOCO - NEW MONEY NETWORK

2007-02-19 Thread efendy
Hi ... I recently joined AGLOCO because of a friend recommended it to me. I am now promoting it to you because I like the idea and I want you to share in what I think will be an exciting new Internet concept. Sign in : http://www.agloco.com/r/BBBV9253 Detailed İnfo : http://www.ulasbeldesi.com/

Re: Admin without Auth

2007-02-19 Thread James Bennett
On 2/19/07, James Bennett <[EMAIL PROTECTED]> wrote: > Something like > > BEGIN; > INSERT INTO "auth_user" ('username', 'email', 'password') VALUES > ('me', '[EMAIL PROTECTED]', 'my_hashed_password'); > COMMIT; (and, of course, the appropriate value of True for the DB you're using, on the 'is_sta

Re: Admin without Auth

2007-02-19 Thread James Bennett
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > -- I see how to provide a .sql file, but how do I put a super user in > it? Something like BEGIN; INSERT INTO "auth_user" ('username', 'email', 'password') VALUES ('me', '[EMAIL PROTECTED]', 'my_hashed_password'); COMMIT; Just straightforward SQ

Re: Admin without Auth

2007-02-19 Thread kbochert
None of those suggestions seem to help -- Should I use a method that will break in 1.0?? -- As a beginner, I am loath to try patching Django -- I have no test_client in my Django distribution -- I see how to provide a .sql file, but how do I put a super user in it? Perhaps I'm just going at this

Re: login_required decorator

2007-02-19 Thread Lawrence Oluyede
> is there any reason that the login_required decorator doesn't have the > login_url parameter? I think it's a known issue > The other decorators have it. Besides me there seem to be also other > people who need this parameter (see the comments to the auth docs > page). In the meantime you can

Extracting dictionary values in template

2007-02-19 Thread Tipan
I'm trying to return a series of error messages alongside the data entries in a form. I've evaluated the data in the View and passing the list of error messages in a render to response request, as follows: return render_to_response('edit_user_account.html', {'errordict':errord

Re: Newforms, form_for_model, help_text and unicode.

2007-02-19 Thread sandro.dentella
Hi, I had similar problems this night. It comes out help_text is the source of problems. I fixed it adding smart_unicode in Field class (newforms.fields): class Field(object): ... def __init__(...): self.help_text = smart_unicode(help_text) sandro *:-) PS: should I open a ticket

Re: unicode in filters

2007-02-19 Thread Maciej Bliziński
On Mon, 2007-02-19 at 13:01 +, omat * gezgin.com wrote: > I am trying to match a utf-8 character with a filter. Within the > python prompt, "u'ç'.encode('utf-8')" returns "\xc3\xa7" correctly but > when I use this inside a filter like: > > (name__startswith = u'ç'.encode('utf-8')) > > I get

Download Free ScreenSavers and Wallpapers!

2007-02-19 Thread bhagat20
Download Free ScreenSavers and Wallpapers! - http://surl.in/HLFSS238206SVRAKSX-google --~--~-~--~~~---~--~~ 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@googlegr

Download Free ScreenSavers and Wallpapers!

2007-02-19 Thread bhagat20
Download Free ScreenSavers and Wallpapers! - http://surl.in/HLFSS238206SVRAKSX-google --~--~-~--~~~---~--~~ 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@googlegr

Hidden datetime field in newforms

2007-02-19 Thread juampa
I have a certain model that contains a datetime field and I am using newforms to create and edit entries for this model. One of the fields in the model is a datetime set only for an entry creation. To modify one of these entries, I create a form from the instance (form_for_instance()) and set th

filter_interface doesn't work

2007-02-19 Thread cory
Hi all, Hopefully this is a simple fix. The filter_interface option in M2M fields isn't doing anything, the select box appears to be the same regardless of whether that option is in there, or if it's set to filter_interface=models.HORIZONTAL or models.VERTICAL. The only error message that comes u

Free master card with $5 BONUS

2007-02-19 Thread SiNa
Hi Do you want to have a master card with $5 bonus? Try it it's free: https://www.favocard.com/affiliater/affiliate.php?id=14610&group=1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Free master card with $5 BONUS

2007-02-19 Thread SiNa
Hi Do you want to have a master card with $5 bonus? Try it it's free: https://www.favocard.com/affiliater/affiliate.php?id=14610&group=1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Django Presentation at PyGTA Meeting on Feb. 20

2007-02-19 Thread Clifford Ilkay
Hello, I will be presenting an overview of the Django web framework at the monthly PyGTA (Greater Toronto Area Python user group) meeting on Feb. 20. Django is represented as being "The Web framework for perfectionists with deadlines." In my experience, that is an apt description. I have found i

Re: unicode in filters

2007-02-19 Thread omat * gezgin.com
yeesss! thanks a lot, everybody... On Feb 19, 3:38 pm, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > Dirk Eschler wrote: > > you can try to add this as first line in your file: > > > # -*- coding: utf-8 -*- > > And after this there's no need to write u'ç'.encode('utf-8') but is > enough to write j

Re: Django and Eclipse Autocomplete NOT WORKING

2007-02-19 Thread Nicolas Steinmetz
Igor Guerrero wrote: > Apparently is a random error, I use the svn version, and with one project > it works and with another don't, maybe is a PyDEV bug, but I don't know. Hmm strange and what a pity ! :( I hope it will be solved with next stable version :-) --~--~-~--~~--

inclusion tags or simple tags

2007-02-19 Thread vanderkerkoff
Hello everyone, pretty new to this stuff so please bear with me. I've written a simple bit of python in my mytags directory to output our aggregated feeds form our feedjack application that we built last week. def rssfeeds(request, slag): import feedparser if slag == 'researchnew

Re: unicode in filters

2007-02-19 Thread Ivan Sagalaev
Dirk Eschler wrote: > you can try to add this as first line in your file: > > # -*- coding: utf-8 -*- And after this there's no need to write u'ç'.encode('utf-8') but is enough to write just 'ç'. --~--~-~--~~~---~--~~ You received this message because you are su

Re: unicode in filters

2007-02-19 Thread Dirk Eschler
On Montag, 19. Februar 2007, omat * gezgin.com wrote: > I am trying to match a utf-8 character with a filter. Within the > python prompt, "u'ç'.encode('utf-8')" returns "\xc3\xa7" correctly but > when I use this inside a filter like: > > (name__startswith = u'ç'.encode('utf-8')) > > I get a syntax

Re: unicode in filters

2007-02-19 Thread Frank Tegtmeyer
"omat * gezgin.com" <[EMAIL PROTECTED]> writes: > I couldn't figure out which encoding declaration does the message is > talking about. This means the encoding of your Python source file itself. There is a PEP about this: http://www.python.org/dev/peps/pep-0263/ Regards, Frank --~--~-

unicode in filters

2007-02-19 Thread omat * gezgin.com
I am trying to match a utf-8 character with a filter. Within the python prompt, "u'ç'.encode('utf-8')" returns "\xc3\xa7" correctly but when I use this inside a filter like: (name__startswith = u'ç'.encode('utf-8')) I get a syntax error: Non-ASCII character '\xc3' in file .../views.py on line 24

login_required decorator

2007-02-19 Thread Frank Tegtmeyer
Hi, is there any reason that the login_required decorator doesn't have the login_url parameter? The other decorators have it. Besides me there seem to be also other people who need this parameter (see the comments to the auth docs page). Regards, Frank --~--~-~--~~~

Re: sorting in model

2007-02-19 Thread Aidas Bendoraitis
You can't order by a property of a model, but you can do that by the field of the related model: Film.objects.select_related().order_by('appname_product.name') Documentation: http://www.djangoproject.com/documentation/db_api/#order-by-fields Regards, Aidas Bendoraitis [aka Archatas] On 2/16/07

Re: Help about saving two linked instances...

2007-02-19 Thread Giuseppe Franchi
Thanks a lot to both of you! As u are so nice i have another question about it :) class Resource_systeminfo(models.Model): ... owner = models.ForeignKey(User) You see, i have a foreign key to a user object. But in my view, when i try to do ResSysForm = form_for_model(

Re: HTTP_REFERER

2007-02-19 Thread Benedict Verheyen
Pythoni schreef: > I would like to use HTTP_REFERER in my Django project to find out from > where users came to my website. So, my first page is INDEX.HTML that > uses > def Index(request) procedure. > In this def Index(request) I use > request.META['REMOTE_ADDR'] > but I found out that Referer do

Re: Admin without Auth

2007-02-19 Thread James Bennett
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > Is there a was to install the contrib.admin app without the > contrib.auth app?? No; the admin app requires the auth app so that it can allow authorized users to log in. > While learning, I am eraseing the database and doing manage.py syncdb > a

Re: Admin without Auth

2007-02-19 Thread Russell Keith-Magee
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > Is there a was to install the contrib.admin app without the > contrib.auth app?? No; the two are pretty closely intertwined. > While learning, I am eraseing the database and doing manage.py syncdb > a lot, and it would be real nice to have it c

Re: "Best" way of using templates

2007-02-19 Thread Jonathan Ballet
On 18 fév, 02:34, Lachlan Cannon <[EMAIL PROTECTED]> wrote: > Jonathan Ballet wrote: > > I think, we might use the __str__() method, since it seems the > > simplest and cleanest way of doing this (a title is a sort of > > presentation in fact). Or maybe, we will stick with the get_title() > > meth