Great. Now it works how I expected.
See also
http://www.djangoproject.com/documentation/templates_python/#extending-the-template-system
for further information.
On 9 Okt., 21:38, Ryan Kanno <[EMAIL PROTECTED]> wrote:
> I think you're looking for something like this:
>
> http://www.djangosnipp
Hello
I use Django 0.96 and in one of model's field I have to define a
'path' entry in which een Unix path (/usr/people/...) can be given as
an input with validation naturally.
I would like to use Admin interface and have not found any Built-in
Filed of "RegexField" class to use it.
class MyMo
i'm a noob in Django, and I'm currently learning it. I tried to use style
sheets from an external css file but it didn't work. I copyed the code from
the djagno documentation page, I followed all the instructions but every
time I run a page insted of a nice green background i get this:
Page not fou
Why would you need to do this?? The question as you've phrased it doesn't
make any sense...
Ben
On 10/10/2007, xunSir <[EMAIL PROTECTED]> wrote:
>
>
> class Address(models.Model):
> name = models.CharField('uname', maxlength=20, unique=True)
> mobile = models.CharField('umobile', maxlength=11)
A good start would be to put that sql in get_min_rent into a queryset... I
it's queryset.select(). I'm not sure if you'll then be able to
order_by('min_rent') though...
Ben
On 10/10/2007, Dan <[EMAIL PROTECTED]> wrote:
>
>
> Hi
>
> I am trying to make an advanced search page where a user can l
Hi
I am trying to make an advanced search page where a user can list
guest-houses based on several different criteria. As there can be many
rooms in a house each with different availability and rent prices i am
having problems constructing a filter for this.
Models:
class Property(models.Model)
Hi
I am trying to make an advanced search page where a user can list
guest-houses based on several different criteria. As there can be many
rooms in a house each with different availability and rent prices i am
having problems constructing a filter for this.
Models:
class Property(models.Model)
You probably want to look at this:
http://www.djangoproject.com/documentation/models/pagination/
On Tue, 2007-10-09 at 21:02 -0700, Greg wrote:
> Hello,
> I'm trying to create a way for people to navigate through their search
> results. Depending on how specific they are in their search they
>
Hello,
I'm trying to create a way for people to navigate through their search
results. Depending on how specific they are in their search they
could have 1 to 1,000 products get returned. I want to develop
something where my page will list 10 links at a time that when clicked
shows those 10 elem
On Aug 14, 7:06 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 8/14/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote:
>
> > Here's something I considered. What if fixtures were a Python module
> > instead of just a folder and you could include a function as part of a
> >fixture. For example,
class Address(models.Model):
name = models.CharField('uname', maxlength=20, unique=True)
mobile = models.CharField('umobile', maxlength=11)
room = models.CharField('uroom', maxlength=10)
class Admin:
list_display = ('name', 'mobile', 'room')
===
On 10/9/07, Greg <[EMAIL PROTECTED]> wrote:
> I want to create a list that can be updated from within a part of a
> view and retreived from another part of a view. Here is my view.py
To access a global variable you need to use the 'global' keyword.
A better option, however, is to store the resu
Kenneth,
I've tried that. It will not work because everytime the view gets
accessed then mysearchlist gets cleared. Once mysearchlist is created
from within the post. I want the values to stay the same no matter
how many times the GET gets accessed.
On Oct 9, 10:02 pm, Kenneth Gonsalves <[EMAI
On 10-Oct-07, at 8:27 AM, Greg wrote:
> def searchresult(request):
mysearchlist = []
> if request.method == 'POST':
> mysearchlist = [1,2,3,4,5]
> if request.method == 'GET':
> assert False, mysearchlist
--
regards
kg
http://lawgon.livejournal.com
http://nrcfo
On 10/9/07, Brian Rosner <[EMAIL PROTECTED]> wrote:
>
> On 2007-10-09 14:39:57 -0600, "Joseph Kocherhans" <[EMAIL PROTECTED]> said:
>
> >
> > On 10/9/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> >>
> >> This raises some alarm bells. Why on earth are we futzing around in
> >> ChangeManipulat
Hello,
I want to create a list that can be updated from within a part of a
view and retreived from another part of a view. Here is my view.py
file
from django.shortcuts import render_to_response, get_object_or_404
mysearchlist = []
def searchresult(request):
if request.method == 'POST':
Hi Dave,
I believe this is what you're looking for
http://www.djangosnippets.org/snippets/391/ I had to tweek a few things to
get it to work, but it looks pretty damn good now! If it's what you want let
me know if you have any issues setting it up and I'll do my best to help ;-)
Ben
On 10/10/2007,
On 10-Oct-07, at 7:15 AM, coffeeho wrote:
> I'm trying to implement the django-tagging app. My "links" app has a
> tags field.
could you clarify which version of django you are using
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~~--
Greetings (please forgive me - I'm well past my coffee buzz)
I'm trying to implement the django-tagging app. My "links" app has a
tags field.
As a CharField, there's no problem. When I changed it to get the
sexier ManyToManyField it got weird. The tags appear and transfer
between fields (in admi
At 07:11 PM 10/9/2007, Brian Rosner wrote:
>Your wish is my command ;)
>
>http://code.djangoproject.com/ticket/5720
Wow, that was fast. I can confirm this patch makes bringing up the
change form for my problematic model nice and zippy. Thanks!
I did run into another problem -- instances of t
On 10/10/07, johnny <[EMAIL PROTECTED]> wrote:
>
> In django template, can you have (% block somename %} above root html
> element of a document, like here?
The Django template syntax is independent of the syntax of the
document it is rendereing. Although you may use Django to render HTML,
a Djan
On 10/10/07, Dave <[EMAIL PROTECTED]> wrote:
>
> Hey All,
>
> Is there a simple way to re-create the fancy admin date/time widget
> (with the 'Today'/'Now' buttons and the pop-up calendar) with
> newforms?
> I can see how to do it by creating a custom widget, but I thought
> perhaps there was an e
In django template, can you have (% block somename %} above root html
element of a document, like here?
my base.html
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
{% block html %}
http://www.w3.org/1999/xhtml";>
{% endblock %}
--~--~-~--~~~---~--~~
You re
On 2007-10-09 14:39:57 -0600, "Joseph Kocherhans" <[EMAIL PROTECTED]> said:
>
> On 10/9/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>>
>> This raises some alarm bells. Why on earth are we futzing around in
>> ChangeManipulators here? They are entirely oldforms-related and the
>> whole poi
On 10/9/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> This raises some alarm bells. Why on earth are we futzing around in
> ChangeManipulators here? They are entirely oldforms-related and the
> whole point is to remove any reliance on them.
>
> This might well be a bug and in an area that
On Tue, 2007-10-09 at 12:50 -0700, identify wrote:
> On 9 Okt., 21:14, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> > On Tue, 2007-10-09 at 11:26 -0700, identify wrote:
> > > I am about to have ~80 different django-driven sites running on my
> > > server (each one needs a separate settings.py).
Hello Felix,
In a very similar situation I have chosen option 2 for the following
reasons:
* the code was much more simple, at least simpler to maintain for me
* Very hight control on the layout of the form.
I have taken this decision after spending several days working on a
"newform" based sol
On Tue, 2007-10-09 at 15:56 -0400, Karen Tracey wrote:
> I tried out the newforms-admin branch for my app today. The
> conversion went fine, except for a performance problem with the new
> raw_id_fields. As background, I have a model with two ForeignKey
> fields (among other stuff). The numb
I tried out the newforms-admin branch for my app today. The
conversion went fine, except for a performance problem with the new
raw_id_fields. As background, I have a model with two ForeignKey
fields (among other stuff). The number of choices for those
ForeignKey fields is high (over 100,00
well, is 7.04, site-packages is here:
/usr/lib/python2.5/site-packages/
but your problem obviously precedes this. did you muck with you
manage.py file?
or, when you say "import setting.py", you're not literally typing
"import setting.py" are you? make sure you're not including the
extension
On 9 Okt., 21:14, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> On Tue, 2007-10-09 at 11:26 -0700, identify wrote:
> > I am about to have ~80 different django-driven sites running on my
> > server (each one needs a separate settings.py). Am I right that
> > manage.py runfcgi needs to be started
I think you're looking for something like this:
http://www.djangosnippets.org/snippets/282/
On Oct 9, 3:22 am, äL <[EMAIL PROTECTED]> wrote:
> Inhttp://code.djangoproject.com/wiki/CookBookRequiredGroupLoginI
> found how
> to show a template only if the user is in a specific group (admin).
>
> No
Hey All,
Is there a simple way to re-create the fancy admin date/time widget
(with the 'Today'/'Now' buttons and the pop-up calendar) with
newforms?
I can see how to do it by creating a custom widget, but I thought
perhaps there was an easier way.
Thoughts?
--~--~-~--~~
On Tue, 2007-10-09 at 11:26 -0700, identify wrote:
> I am about to have ~80 different django-driven sites running on my
> server (each one needs a separate settings.py). Am I right that
> manage.py runfcgi needs to be started for each site? If so - this
> would lead to (let's say) 80*5 python proc
On 10/9/07, James Bennett <[EMAIL PROTECTED]> wrote:
>
> On 10/8/07, Marty Alchin <[EMAIL PROTECTED]> wrote:
> > His point is that anyone could trigger that email. And, while you're
> > right that only the true user would receive the email, the target
> > user's password will get reset regardless.
On 10/9/07, Xan <[EMAIL PROTECTED]> wrote:
> Where is the error?
In all seriousness, judging from your last several emails, it's time
for you to sit down and read the official documentation for Python;
most of your problems seem to stem from not understanding how Python's
import path works.
--
I am about to have ~80 different django-driven sites running on my
server (each one needs a separate settings.py). Am I right that
manage.py runfcgi needs to be started for each site? If so - this
would lead to (let's say) 80*5 python processes running (when using
prefork) with each one consuming
Even watch the War in Iraq live and uncensored from your Laptop or PC
for FREE after a small onetime installment fee. 1,000's more
stations. http://jblog.ipodpsp.hop.clickbank.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hi,
* I have installed django 0.96 in ubuntu 7.04 [http://
packages.ubuntu.com/gutsy/python/python-django] (when I run dpkg -l I
get version "0.96-1~feisty1")
* I want to install deseb and I follow installation instructions
[http://code.google.com/p/deseb/wiki/Installation]
* The problem is tha
On 10/9/07, Bill Fenner <[EMAIL PROTECTED]> wrote:
> He alternative is to exchange a handshake before changing the
> password. Don't jump immediately to "must store plain text
> passwords".
OK, so when you demonstrate to me that this is a significant and
widespread enough problem to justify comp
On 10/9/07, James Bennett <[EMAIL PROTECTED]> wrote:
> Plus, he alternative is to either store plaintext passwords or provide
> a way to recover plaintext passwords, both of which are not going to
> happen in any way, shape or form, because they *do* present extremely
> serious security problems.
Thanks for the update!
On Oct 9, 1:50 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Tue, 2007-10-09 at 10:44 -0700, jacoberg2 wrote:
> > I have regular and custom validators in my models.
> > I also have a custom manipulator in my view, so i can get the field
> > data in a
> > form. Is i
On Tue, 2007-10-09 at 10:44 -0700, jacoberg2 wrote:
> I have regular and custom validators in my models.
> I also have a custom manipulator in my view, so i can get the field
> data in a
> form. Is it necessary to put the validators in the custom manipulator
> in order
> to dynamically present the
I have regular and custom validators in my models.
I also have a custom manipulator in my view, so i can get the field
data in a
form. Is it necessary to put the validators in the custom manipulator
in order
to dynamically present the errors in the templates, as to alert the
user of the site what
On 10/9/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> Most edit_inline problems have been ignored in admin because it was very
> hard to fix them. The idea is to readdress them in the context of
> newforms-admin, so if anybody wanted to work on this they should focus
> their attention on th
On 10/8/07, Marty Alchin <[EMAIL PROTECTED]> wrote:
> His point is that anyone could trigger that email. And, while you're
> right that only the true user would receive the email, the target
> user's password will get reset regardless. So, if I didn't like you, I
> could put in your email address,
On Oct 9, 12:15 am, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> On 10/8/07, James Bennett <[EMAIL PROTECTED]> wrote:
>
> > On 10/8/07, Bill Fenner <[EMAIL PROTECTED]> wrote:
> > > Which is an excellent way to partially lock someone out of the site,
> > > by preemptively changing their pasword (and
On Oct 9, 6:50 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Tue, 2007-10-09 at 09:35 -0700, Xan wrote:
> > How?
>
> > I have my django app in:
> > /home/xan/anadoc/analitzador/
>
> > and my script in:
>
> > /home/xan/anadoc/transformacions/script.py
>
> > My script code is:
>
> > impor
On Tue, 2007-10-09 at 09:35 -0700, Xan wrote:
> How?
>
> I have my django app in:
> /home/xan/anadoc/analitzador/
>
> and my script in:
>
> /home/xan/anadoc/transformacions/script.py
>
> My script code is:
>
> import os, sys
> sys.path.append('/home/xan/anadoc/analitzador/')
> os.environ['DJA
How?
I have my django app in:
/home/xan/anadoc/analitzador/
and my script in:
/home/xan/anadoc/transformacions/script.py
My script code is:
import os, sys
sys.path.append('/home/xan/anadoc/analitzador/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'analitzador.settings'
from django.conf import set
Hello all,
I've been making great strides with my application since returning
from the land of Pylons. Given that the app is all about data entry
I've taken the customise-the-admin-app approach to things and made the
switch to newforms-admin this morning.
So far things are working: data is being
On Tue, 2007-10-09 at 11:31 -0400, Karen Tracey wrote:
> This is a bug in admin:
>
> http://code.djangoproject.com/ticket/565 (Unique fields don't work on
> edit_inline models)
>
> There is no patch in the ticket, so I think the only workaround
> available is to remoe the unique=True on your nom
This is a bug in admin:
http://code.djangoproject.com/ticket/565 (Unique fields don't work on
edit_inline models)
There is no patch in the ticket, so I think the only workaround available is
to remoe the unique=True on your nom SlugField.
Karen
--~--~-~--~~~---~--~--
I'm creating a new user/member and then want log that person in and
redirect them to their personalized page. I'm getting a " 'User'
object is unsubscriptable " error. All of the database records are
being created correctly, and I can go back to the site and manually
log the user in through my
On Tue, 2007-10-09 at 13:38 +, Trey wrote:
> I took the liberty of doing some research on mod_wsgi and it appears
> to be a very good alternative solution to mod_python. One which we'll
> probably try.
>
> Is there a reason Django doesn't represent it in it's documentation? I
> know everyone
I'm looking for the same, but I want to "override" __str__ in class
User to return something other that username. One thing comes to my
mind, would it be possible to change the object's method in some
signal hook (i.e. class_prepared)? I don't have Django handy so I
cann't check for now by myself.
I took the liberty of doing some research on mod_wsgi and it appears
to be a very good alternative solution to mod_python. One which we'll
probably try.
Is there a reason Django doesn't represent it in it's documentation? I
know everyone is busy and it could be that it just isn't added yet. I
wou
In http://code.djangoproject.com/wiki/CookBookRequiredGroupLogin I
found how
to show a template only if the user is in a specific group (admin).
Now I would like to do the same in a template. How can I hide a link,
for example,
if the user is not in the admin group? I'm looking for something like
Hi,
I would like to modify User.get_profile(), that it creates
a new profile, if does not exist.
I don't want to modify the django source for me. One solution would
be, to replace this method in a middleware for every request.
But that's not a nice solution.
Subclassing could be done, too. But
Hi Thomas
Yes, It worked
cschand
--~--~-~--~~~---~--~~
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 email
Yesterday we had our first little meeting and 9 people showed up. If
you are interested to join or to get announcements for the next
meetings:
join: http://groups.google.com/group/django-switzerland/
Website etc. is coming soon
Divio GmbH
Patrick Lauber
Rich Media Architect
Bachstrasse 15
C
Hello, sorry for this big post it's more explicit with the code
---
Here are my models
class Billet2(models.Model):
titre= models.CharField(maxlength=200)
titre_court = models.SlugField(db_index=True, unique=True,
maxlength=200, prepopulate_from=(u'titre',
Am Dienstag, 9. Oktober 2007 08:08 schrieb cschand:
> Hi all
> Can I get the path of the redirected/translated page
Hi you,
do you mean request.META.get("HTTP_REFERER")?
Thomas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
63 matches
Mail list logo