Template content filter

2007-02-27 Thread Orin
Hi, the task is to make filter that will check template content for non- permitted instructions. If I will use the "dumb" way and just try to look for such tags directly by comparing strings than I can run across simpe text in my template which is not good. For example, in this template non-perm

Re: Generating object documentation from its instance

2007-02-27 Thread James Bennett
On 2/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Basic use for me would be to pass a [newform] object, and it would output its > methods (with docstrings), attributes, and if attributes are objects, > recursively build their auto-documentation. The function used as the example in Chapte

Generating object documentation from its instance

2007-02-27 Thread django-user
Hi, (This is not directly related to Django, but would help me in that domain) I was wondering if there exists some kind of automated documentation generator (html, pdf, text, whatever readable format) for instanciated objects. Basic use for me would be to pass a [newform] object, and it would

Re: from .95 to six

2007-02-27 Thread Perica Zivkovic
> > It's not "Django 0.96", it's a month-old SVN checkout. At this moment > there is no such thing as "Django 0.96"; the development trunk > currently identifies as "0.96-pre" because it isn't 0.95 or 0.95.1, > and includes the "pre" to indicate that 0.96 is not yet an official > release. > Yep,

Re: setting newforms ModelChoiceField "selection"

2007-02-27 Thread grahamu
Doh! If I had taken the time to read a post from two hours earlier I would have seen the answer. Use "initial" when instantiating the form. The last line below does the trick. if request.method == 'POST': form = FormClass(request.POST) if form.is_valid(): project =

setting newforms ModelChoiceField "selection"

2007-02-27 Thread grahamu
I'm struggling with a newforms issue. Specifically I'm trying to pre- select an option in a ModelChoiceField and I cannot figure out how this can be accomplished. Here are the code snippets: class Account(models.Model): title = models.CharField(maxlength=30, unique=True, db_index=True

Re: Unique Id's across several classes/tables

2007-02-27 Thread Rubic
> Is it possible to have the ID field be unique across several classes > or tables? What i would like to do is, given the ID, load the object > of that type out of the database. Does this make sense, and is it > possible? No, it doesn't make sense <0.5 wink>, but here's how you might do it. Yo

Re: from .95 to six

2007-02-27 Thread James Bennett
On 2/27/07, Perica Zivkovic <[EMAIL PROTECTED]> wrote: > portable python includes 0.96-pre revision 4293. I got it straight > from the subversion when I was making first release of PP. It's not > the latest subversion snapshot but it s 0.96 (about one month old svn > revision) It's not "Django 0.

Unique Id's across several classes/tables

2007-02-27 Thread jzellman
Hi, Is it possible to have the ID field be unique across several classes or tables? What i would like to do is, given the ID, load the object of that type out of the database. Does this make sense, and is it possible? thanks, Jeff --~--~-~--~~~---~--~~ You re

Re: passing arguments using dojo

2007-02-27 Thread damacy
oh, just got another reply from my last post. thanks mae. On Feb 28, 12:19 pm, "damacy" <[EMAIL PROTECTED]> wrote: > hi, there. > > i have a problem here as explained below; > i have a django variable that is to be passed to the views.py as an > argument. > > first of all, i am trying to assign a

Re: NOOB: default value in the ChoiceField?

2007-02-27 Thread johnny
It's working now. Thank you. On Feb 27, 8:52 pm, "johnny" <[EMAIL PROTECTED]> wrote: > I put in initial as a parameter. In the drop down list, or radio > button, it does not highlight it anyway when you are at the page. If > I look at the view source, it says, selected for drop down list and >

Re: models.TimeField()

2007-02-27 Thread Honza Král
On 2/28/07, DuncanM <[EMAIL PROTECTED]> wrote: > > When you use this field type, django automatically places a clock next > to the field which is very handy with quick links: 6am, noon, > midnight, now() or something similar. > > Is there any way I can get the list that is displayed then to be set

Microsoft Download Center - Download all MS softwares (freeware)

2007-02-27 Thread Sheela Thapar
*Microsoft Softwares Heaven* *Download all Microsoft Softwares - Freeware* ** *[image: Microsoft Softwares Heaven] * http://www.awpedia.com/downloads/microsoft-softwares/ ** *Download Windows All* ** *Windows Vista* *Windows XP* *MS Office 2007

Re: database table prefix

2007-02-27 Thread Jason Sidabras
thanks! the db_table option will probably work. I might have to change the code unless there is a way to set this for a global db_table, such as the auth_user table. On Feb 27, 5:24 pm, "Marc Fargas Esteve" <[EMAIL PROTECTED]> wrote: > Prefixes have been discussed sometimes, you can look at

Re: NOOB: default value in the ChoiceField?

2007-02-27 Thread johnny
I put in initial as a parameter. In the drop down list, or radio button, it does not highlight it anyway when you are at the page. If I look at the view source, it says, selected for drop down list and checked for radio button. Any idea why? On Feb 27, 5:50 pm, "Rubic" <[EMAIL PROTECTED]> wrot

Re: newb: date_of_birth field using SelectDateWidget

2007-02-27 Thread johnny
I have it like this in my form: birth= forms.DateField(SelectDateWidget('birth', years=range(today.year,1900,-1))) In my template: Date of Birth: {{ form.birth_year }} {{ form.birth_month }} and {{ form.birth_day }} {% if form.birth.errors %}*** {{ form.birth.errors|join:", " }}{% endif

Re: newb: date_of_birth field using SelectDateWidget

2007-02-27 Thread Rubic
newsforms doctest demonstrates how to use SelectDateWidget: trunk/tests/regressiontests/forms/tests.py -- Jeff Bauer Rubicon, Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

models.TimeField()

2007-02-27 Thread DuncanM
When you use this field type, django automatically places a clock next to the field which is very handy with quick links: 6am, noon, midnight, now() or something similar. Is there any way I can get the list that is displayed then to be set values? such as 10am, noon and 2pm? or will I have to rel

Re: database table prefix

2007-02-27 Thread Marc Fargas Esteve
Prefixes have been discussed sometimes, you can look at ticket #891 i.e. Or search this group about that... One "hackish" option you could go on is use different SITE_ID's in your sites, and either make your applications take care of SITE_ID (a foreignkey to Sites could help) or set the db_table

passing arguments using dojo

2007-02-27 Thread damacy
hi, there. i have a problem here as explained below; i have a django variable that is to be passed to the views.py as an argument. first of all, i am trying to assign a django variable within

Recursion in templates... again

2007-02-27 Thread Grupo Django
Hello, I have been looking around about some information about how to do recursion in templates but what I found didn't help me. This is the case: class Menu(models.Model): id = models.AutoField('id', primary_key=True) parent = models.ForeignKey('self','id',null=True,blank=True)

Re: database table prefix

2007-02-27 Thread Jason Sidabras
Sorry, mis-typed before. But I'm trying to see how this might work for my case. My mistake was that I am not trying to create multiple databases. Just multiple tables. So app named foo typically creates a table: foo_news and I would like it to be: site_one_foo_news Jason On Feb 27, 5:03 pm, "

Re: database table prefix

2007-02-27 Thread Rubic
You could assign DATABASE_PREFIX as an environment variable, then have settings.py get the value (untested): # settings.py import os DATABASE_PREFIX = os.environ['DATABASE_PREFIX'] DATABASE_NAME = "site_%s_foo" % DATABASE_PREFIX Then run manage.py from the command line: $ DATABASE_PRE

Re: NOOB: default value in the ChoiceField?

2007-02-27 Thread Rubic
Use the 'initial' keyword arg: http://www.djangoproject.com/documentation/newforms/#initial -- Jeff Bauer Rubicon, Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

select_related?

2007-02-27 Thread [EMAIL PROTECTED]
Could somebody explain the difference between Foo.objects.all() and Foo.objects.select_related() I'm trying to improve performance and decrease DB hits. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: from .95 to six

2007-02-27 Thread Perica Zivkovic
portable python includes 0.96-pre revision 4293. I got it straight from the subversion when I was making first release of PP. It's not the latest subversion snapshot but it s 0.96 (about one month old svn revision) in the next version(s) of the PP getting of the latest svn snapshot will be automa

Re: Serving Media through mod_proxy.

2007-02-27 Thread Jorge Gajon
Hi David, On 2/27/07, David Abrahams <[EMAIL PROTECTED]> wrote: > > I'm running django with Apache/mod_python and serving media through > lighttpd. I have only one IP address, so lighttpd is running on port > 8081, but some of my clients are behind firewalls that block ports > other than 80. > >

Re: newb: date_of_birth field using SelectDateWidget

2007-02-27 Thread johnny
I need to get it into Separate Year, Month, Day (1-31) Format using SelectDateWidget. On Feb 27, 11:59 am, "johnny" <[EMAIL PROTECTED]> wrote: > Can someone provide me an example for date_of_birth field using > SelectDateWidget? > > Thank you. --~--~-~--~~~---~--~---

django + apache authentication

2007-02-27 Thread sean
Hello, I'm struggling a little to get apache configured to only allow access to some static media (image files in different resolutions, according to the permissions). These are the directives i give for the location of the medium sized images: ... SetHandler python-program PythonHandler django.c

URL extra options placeholder syntax- or is it only for generic views?

2007-02-27 Thread yary
http://www.djangoproject.com/documentation/generic_views/ has this example: ... redirects from /foo// to /bar//: urlpatterns = patterns('django.views.generic.simple', ('^foo/(?P\d+)/$', 'redirect_to', {'url': '/bar/%(id)s/'}), ) What replaces the '%(id)s' section, the generic view package,

Re: Job Ad: Full-time Python software developer, Wimbledon, London, England

2007-02-27 Thread aaloy
2007/2/27, John J Lee > > `ReportLab `_ (Wimbledon, London, England) > > > **Job Description**: ReportLab develop enterprise reporting and > document generation solutions using cutting-edge Python technology, > and have a growing business with an excellent blue chip custo

Re: Upcoming Django release, and the future

2007-02-27 Thread Andrew Diederich
On Tuesday, February 27, 2007, 8:41:44 AM, Marc Fargas Esteve wrote: > Hi Andrew, > There's a ticket for that openned: > http://code.djangoproject.com/ticket/3589 > And it's closed as fixed :) Thanks! The ticket itself doesn't have 'postgresql_psycopg2' in it, so I didn't find it searching. An

NOOB: default value in the ChoiceField?

2007-02-27 Thread johnny
Is there a way to set the initial or default value in the ChoiceField? I need to set a default Country. For example: country = forms.ChoiceField(label='Country', choices=[(c.id,c.name) for c in Countrylist.objects.all()], def

cache views (decorator not working)

2007-02-27 Thread GaRaGeD Style
Hi all I'm really not good at python, and hence not good at django, but I really love both :) I have spent a few hours trying to understand why this works: -- @login_required def object_list(request, model, page): try: return list_detail.object_list( r

Error: login admin: TypeError at /admin/

2007-02-27 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 TypeError at /admin/ a2b_base64() argument 1 must be string or read-only character buffer, not array.array Request Method: POST Request URL:http://127.0.0.1:8000/admin/ Exception Type: TypeError Exception Value:a2b_base64()

hi

2007-02-27 Thread engin kaya
Hello NAME, I want to tell you about great site I found. They pay me to read e-mail, visit web sites and much more. It's free to join and easy to sign up! CLICK THIS LINK TO VISIT: http://www.woo-mails.com/pages/index.php?refid=ebibanzai --~--~-~--~~~---~--~~ You

database table prefix

2007-02-27 Thread Jason Sidabras
Does django currently support a DATABASE_PREFIX option? The question arises because of a problem I am having with sqlite and my hosting provider. And the end of the day I would like to have three website which use some combinations of the same apps. These websites do not share "stories" from the

Re: direct_to_template, extra_context

2007-02-27 Thread Joseph Kocherhans
On 2/27/07, va:patrick.kranzlmueller <[EMAIL PROTECTED]> wrote: > > from django.conf.urls.defaults import * > > urlpatterns = patterns('', > (r'^stars/', 'django.views.generic.simple.direct_to_template', > {'template': 'site/stars/stars_overview.html'}, extra_context= > {'category': 'stars',

Re: Evaluating Web Development Frameworks: Rails and Django

2007-02-27 Thread linoj
Rails and Django - Project and Community (part 2/15) has been posted http://www.vaporbase.com/postings/92 On Feb 25, 1:16 pm, Jonathan Linowes <[EMAIL PROTECTED]> wrote: > hi y'all, > fyi > i've posted the first in a series of blog articles, > Evaluating Web Development Frameworks: Rails and Dja

Re: direct_to_template, extra_context

2007-02-27 Thread Mike
It looks like multiple dictionaries are being passed to the view. Should 'extra_context' be included in the first one (just like the 'template' argument)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

newb: date_of_birth field using SelectDateWidget

2007-02-27 Thread johnny
Can someone provide me an example for date_of_birth field using SelectDateWidget? Thank you. --~--~-~--~~~---~--~~ 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@g

Re: direct_to_template, extra_context

2007-02-27 Thread va:patrick.kranzlmueller
from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^stars/', 'django.views.generic.simple.direct_to_template', {'template': 'site/stars/stars_overview.html'}, extra_context= {'category': 'stars', 'subcategory': 'none'}), ) isn´t that supposed to work? did I miss some

Re: direct_to_template, extra_context

2007-02-27 Thread Joseph Kocherhans
On 2/27/07, va:patrick.kranzlmueller <[EMAIL PROTECTED]> wrote: > > why doesn´t this work? > (r'^stars/', 'django.views.generic.simple.direct_to_template', > {'template': 'site/stars/stars_overview.html'}, extra_context= > {'category': 'stars', 'subcategory': 'none'}), > > the error is "invalid

Field default values don't seem to work as expected

2007-02-27 Thread Brian Rosner
If I have the given model in an app: class Product(models.Model): name = models.CharField(maxlength=150) list_price = models.FloatField(max_digits=10, decimal_places=2, default=0.00, blank=True) price = models.CharField(max_digits=10, decimal_places=2) cl

direct_to_template, extra_context

2007-02-27 Thread va:patrick.kranzlmueller
why doesn´t this work? (r'^stars/', 'django.views.generic.simple.direct_to_template', {'template': 'site/stars/stars_overview.html'}, extra_context= {'category': 'stars', 'subcategory': 'none'}), the error is "invalid syntax". thanks, patrick --~--~-~--~~~---~--~

Re: passing a md5 digest string into URL

2007-02-27 Thread ScottB
Hi Giuseppe. > As i said, i need to pass in my URL a variable, wich is the > result of a md5 digest. > (no private information... only a validation key). > > Obviously i tried with > (r'^users/activate_user/(?P)/', 'views.register'), > (r'^users/activate_user/(?P[a-zA-Z0-9%\-]+=)/', > 'views.reg

Re: Models Causing Admin to Crash

2007-02-27 Thread Ramiro Morales
On 2/27/07, DuncanM <[EMAIL PROTECTED]> wrote: > > Any idea where outside it could be? I am using mod_python with apache. Have you done what Honza suggested?. Namely, stopping Apache, running you app under the Django development webserver instead and trying to reproduce the use case?. Regards,

Re: newforms SelectDateWidget

2007-02-27 Thread Phil Powell
Thanks Mike - that did the trick. I thought there would be a simple solution - should have RTFM more thoroughly... On 27/02/07, Mike <[EMAIL PROTECTED]> wrote: > > The range function has an optional 'step' argument. > > Howzabout: > > SelectDateWidget(years=range(2006,1900,-1)) > > > But is ther

Re: Upcoming Django release, and the future

2007-02-27 Thread Marc Fargas Esteve
Hi Andrew, There's a ticket for that openned: http://code.djangoproject.com/ticket/3589 And it's closed as fixed :) On 2/27/07, Andrew Diederich <[EMAIL PROTECTED]> wrote: > > On Monday, February 26, 2007, 4:39:29 PM, James Bennett wrote: > > > On 2/26/07, Andrew Diederich <[EMAIL PROTECTED]> wro

Re: Upcoming Django release, and the future

2007-02-27 Thread Andrew Diederich
On Monday, February 26, 2007, 4:39:29 PM, James Bennett wrote: > On 2/26/07, Andrew Diederich <[EMAIL PROTECTED]> wrote: >> On Monday, February 26, 2007, 3:00:30 PM, Jacob Kaplan-Moss wrote: >> > For the other bit, though, see [4624]. >> >> This ticket doesn't exist. I looked for similarly number

Re: Using HTML/CSS as templates

2007-02-27 Thread Mike
It's probably a path-related issue. You might start here as a reference: http://www.djangoproject.com/documentation/static_files/ Bit o' learning curve serving CSS when starting out, in my experience, because of the way Django encourages/prods/provokes us to serve static media separately. --~

Re: Models Causing Admin to Crash

2007-02-27 Thread DuncanM
Any idea where outside it could be? I am using mod_python with apache. Thanks for all your help Duncan On Feb 26, 7:34 pm, "Honza Král" <[EMAIL PROTECTED]> wrote: > On 2/26/07, DuncanM <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > I have some models related to a football (soccer) team, I had

Re: Using HTML/CSS as templates

2007-02-27 Thread Benedict Verheyen
MattW schreef: > Dear Group, > > I've got an HTML page with associated CSS that I want to use as my > template. Just to test it, I call: > > return render_to_response('about.html') > > and I get the page, but with no CSS info. I've checked the page > source, and it has the name of the styleshee

Re: Using HTML/CSS as templates

2007-02-27 Thread Mike H
I'm taking a guess that your css is meant to be served as a static file through your webserver and not a django view? If I'm right about that, and you're using apache+mod_python, check out the "Serving Media" section at http://www.djangoproject.com/documentation/modpython/ You need to tell your

Re: Using HTML/CSS as templates

2007-02-27 Thread Honza Král
On 2/27/07, MattW <[EMAIL PROTECTED]> wrote: > > Dear Group, > > I've got an HTML page with associated CSS that I want to use as my > template. Just to test it, I call: > > return render_to_response('about.html') > > and I get the page, but with no CSS info. I've checked the page > source, and it h

Re: newforms SelectDateWidget

2007-02-27 Thread Mike
The range function has an optional 'step' argument. Howzabout: SelectDateWidget(years=range(2006,1900,-1)) > But is there an easy way I can make the years display in reverse - > i.e. descending rather than ascending? --~--~-~--~~~---~--~~ You received this mess

Re: Persistent connections

2007-02-27 Thread Ivan Sagalaev
[EMAIL PROTECTED] wrote: > Is this truly the case? I thought Django used a persistent db > connection. No, Django closes connections upon each request. There were some discussions about it in the early days and some consensus was along the lines that a simple ad-hoc solutions like "just don't c

Serving Media through mod_proxy.

2007-02-27 Thread David Abrahams
I'm running django with Apache/mod_python and serving media through lighttpd. I have only one IP address, so lighttpd is running on port 8081, but some of my clients are behind firewalls that block ports other than 80. I'm planning to ditch Apache and run everything with lighttpd under FastCGI,

Persistent connections

2007-02-27 Thread [EMAIL PROTECTED]
Hello all, I recently launched my first Djano site on Webfaction and I've been getting a few errors a day emailed to me OperationalError: (1040, 'Too many connections') I emailed Webfaction support to see if there was anything they could do for me and this is what they said: >> Hmm ... It looks

Play Free Games! Win Cool Prizes!

2007-02-27 Thread aman
Play Free Games! Win Cool Prizes! - http://surl.in/HLARI238206SVRAKSX-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@googlegroups.com T

Using HTML/CSS as templates

2007-02-27 Thread MattW
Dear Group, I've got an HTML page with associated CSS that I want to use as my template. Just to test it, I call: return render_to_response('about.html') and I get the page, but with no CSS info. I've checked the page source, and it has the name of the stylesheet in there, and the page renders

Re: un-broken order_by (was "Upcoming Django release, and the future")

2007-02-27 Thread Ramiro Morales
On 2/27/07, Ramiro Morales <[EMAIL PROTECTED]> wrote: > > Please apply & test the patch attached to ticket #2076 because I suspect this > is the same issue. The select_related() call you are using is a workaround to > the real problem as suggested by Malcolm and the patch intends to be a > solut

Re: un-broken order_by (was "Upcoming Django release, and the future")

2007-02-27 Thread Ramiro Morales
Chris, On 2/26/07, Chris Brand <[EMAIL PROTECTED]> wrote: > > Having gone on a dot-removal frenzy, I still have this one that fails : > >>> from camps import models > >>> app_list = > models.Application.objects.select_related().order_by('camps_board_time_block > .start_time') > >>> app_list > Tra

Re: from .95 to six

2007-02-27 Thread Ned Batchelder
The trunk currently reports its version as "0.96-pre". Perhaps this is the source of the confusion? --Ned. Russell Keith-Magee wrote: > On 2/27/07, Perica Zivkovic <[EMAIL PROTECTED]> wrote: > >> Picio, >> >> there is another option, www.portablepython.com includes django 0.96 >> and it's a

Re: Hiding Relationships in Forms

2007-02-27 Thread Caz
> > So far, if I do: > > del DoseForm.base_fields['appointment'] > del DoseForm.base_fields['order'] > Here's what I do: UserProfileForm = forms.models.form_for_model(UserProfile,formfield_callback=lambda i: {'user':None}.get(i.name,i.formfield())) This removes the 'user' foreign key from the m

Job Ad: Full-time Python software developer, Wimbledon, London, England

2007-02-27 Thread John J Lee
`ReportLab `_ (Wimbledon, London, England) **Job Description**: ReportLab develop enterprise reporting and document generation solutions using cutting-edge Python technology, and have a growing business

Re: Upcoming Django release, and the future

2007-02-27 Thread Phil Powell
On 26/02/07, James Bennett <[EMAIL PROTECTED]> wrote: > If there's a bug that's been annoying the heck out of you and you want > it fixed before the release, this would be the time to speak up about > it. We have a fairly high concentration of Django developers all in > one place with nothing to d

newforms SelectDateWidget

2007-02-27 Thread Phil Powell
Just a quick query about the SelectDateWidget: The widget accepts an optional 'years' parameter for displaying a range of years, like this: SelectDateWidget(years = range(1900, 2006)) But is there an easy way I can make the years display in reverse - i.e. descending rather than ascending?

Re: Upcoming Django release, and the future

2007-02-27 Thread Dirk Eschler
On Montag, 26. Februar 2007, James Bennett wrote: Hi James, [...] > If there's a bug that's been annoying the heck out of you and you want > it fixed before the release, this would be the time to speak up about > it. We have a fairly high concentration of Django developers all in > one place wit

Re: Upcoming Django release, and the future

2007-02-27 Thread Russell Keith-Magee
On 2/27/07, David Larlet <[EMAIL PROTECTED]> wrote: > > 2007/2/27, Manoj Govindan <[EMAIL PROTECTED]>: > > > > Will 0.96 have support for fixtures (a la #2333)? > > Also, am I the only one waiting for them? ;) > > > > Read the entire thread, we are all waiting for a single word of Adrian ;-). FY

Re: database field

2007-02-27 Thread Mary
Dear Aidas; Can you please give me more details for the solution as i can't understand how to develop this solution Thank you for your help :) Mary Adel On Feb 27, 12:12 pm, "Aidas Bendoraitis" <[EMAIL PROTECTED]> wrote: > I think, overriding the admin template for specific application would >

Re: is there a simpler way to do 3rd party app settings?

2007-02-27 Thread Afternoon
People should always do the INSTALLED_APPS edit themselves, I have apps installed I'm not using, not least all the contrib apps! For everything else I use something like setting = getattr(settings, "MY_NEW_SETTING", default) or try: setting = settings.MY_NEW_SETTING except

Re: Upcoming Django release, and the future

2007-02-27 Thread David Larlet
2007/2/27, Manoj Govindan <[EMAIL PROTECTED]>: > > Will 0.96 have support for fixtures (a la #2333)? > Also, am I the only one waiting for them? ;) > Read the entire thread, we are all waiting for a single word of Adrian ;-). Cheers, David Larlet --~--~-~--~~~---~--

Re: database field

2007-02-27 Thread Aidas Bendoraitis
I think, overriding the admin template for specific application would be the most straightforward solution: * create a template in your template dir admin/yourapp/change_form.html * show some field there only if request.user has some permissions. Regards, Aidas Bendoraitis [aka Archatas] On 2/2

Re: Upcoming Django release, and the future

2007-02-27 Thread Manoj Govindan
Will 0.96 have support for fixtures (a la #2333)? Also, am I the only one waiting for them? ;) Regards, Manoj On Feb 26, 9:56 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > Upcoming Django release, and the future > > As we sit here in warm, sunny Dallas, meditating on how next year's > PyCon w

Re: where is the code for the date widget in admin

2007-02-27 Thread Aidas Bendoraitis
Kenneth, you should use proper tools for development in order not to face such problems: a) you need a text editor with the full-text search capability to search for specific text in all files of a directory (You can try jEdit for that). b) you need developers' tools for your web browser like Fire

[help] passing a md5 digest string into URL

2007-02-27 Thread Giuseppe Franchi
Hello everyone... again. :) As i said, i need to pass in my URL a variable, wich is the result of a md5 digest. (no private information... only a validation key). Obviously i tried with (r'^users/activate_user/(?P)/', 'views.register'), (r'^users/activate_user/(?P[a-zA-Z0-9%\-]+=)/', 'views.regi

Generate a tree List...

2007-02-27 Thread Jens Diemer
I wand generate a tree menu/sitemap. How can i make a recursive loop in a template??? In jinja i can use the tag "recurse": http://wsgiarea.pocoo.org/jinja/docs/loops.html#recursion Here a jinja example: context = {'sitemap

Re: Project example

2007-02-27 Thread BearXu
I am sorry for the wrong url. the right one is here: http://code.djangoproject.com/browser/djangoproject.com/django_website/ 2007/2/27, BearXu <[EMAIL PROTECTED]>: > > the django's official website's source is here: > http://code.djangoproject.com/browser/django/trunk/ > > 2007/2/27, Alessandro Ro

Re: Project example

2007-02-27 Thread BearXu
the django's official website's source is here: http://code.djangoproject.com/browser/django/trunk/ 2007/2/27, Alessandro Ronchi <[EMAIL PROTECTED]>: > > > Where can I find a django project (maybe with a blog app) with i18n > and good templates I can use as a base to learn how to learn good > prac

Project example

2007-02-27 Thread Alessandro Ronchi
Where can I find a django project (maybe with a blog app) with i18n and good templates I can use as a base to learn how to learn good practises of the use of django do develop? I have to make a website with some "static" pages and a database of a museum pictures, as well as a blog and a contact f