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
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
>
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
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
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
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
> >>
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
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
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
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
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
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
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
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
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
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
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
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
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).
>
>
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
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
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
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
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 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
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
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
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:
>
> >
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/')
>
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
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
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
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
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
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
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
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
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
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,
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
It worked, thank you!
I installed a new version of python. Apparently my hoster, vpslink,
doesn't include the development header files in the pre-installed
instance of python.
On Oct 7, 11:32 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On 10/8/07, benrawk <[EMAIL PROTECTED]> wrote:
>
>
>
>
Hi Justin,
Glad to hear that the topic page is going to make it into your RSS
reader, but I also want to make it clear that FeedEachOther itself is
an RSS reader. And a very good one at that. Import your OPML and
give it a try.
Thanks for the feedback!
Udi
On Oct 8, 10:55 pm, "Justin
Hi all
Can I get the path of the redirected/translated page
--~--~-~--~~~---~--~~
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
58 matches
Mail list logo