Hi
I need to do custom validation to make sure that a new record does not
pick the same title as a previous record. Therefore in my overriden
clean method in my custom Form (which extends ModelForm) I need to be
able to do either of the following:
# access the session, where the parent object is
On 26 nov, 06:24, issya <[EMAIL PROTECTED]> wrote:
> It looks like I partly answered my own question. I just do something
> like the below to get the field names of the empty model B and I will
> iterate through the fields until 1 matches and then assign the
> information.
>
> This only prints out
Any one???
On Nov 25, 4:09 pm, laspal <[EMAIL PROTECTED]> wrote:
> Hi,
>
> ***view
> company_list = Company.objects.order_by('name')
> selected_companies_id_list = request.POST.getlist
> ('selected_companies_id_list')
> companies_list =[]
> for company_id in se
Hi all now i have solved my problem
from django.contrib import *
from django.contrib import admin
(r"^admin/(.*)", admin.site.root),
Thanks to all of you..
On Nov 26, 12:37 pm, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Nov 25, 12:16 pm, Praveen <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> >
Application not model. verbose_name works for model itself
Just now there is no way to set custom application name.
On Wed, Nov 26, 2008 at 10:40, Daniel Roseman <[EMAIL PROTECTED]
> wrote:
>
> On Nov 26, 6:57 am, "Steve Phillips" <[EMAIL PROTECTED]> wrote:
> > Hi All
> >
> > I have been search
Hi,
I am missing order by nulls [first|last]
Either I am blind, or it is not possible.
Do other miss this, too?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this messa
I'm learning about ORM, but it's not easy to understand the whole
picture.
I'm trying to create a "function" or a "filter" linked to my models.py
or to PHPmyAdmin to give me a signal when something is changing.
I'm making reseachs on signal on django, perhaps a solution to
explore.
If you have ot
On Nov 26, 8:07 am, vanosten <[EMAIL PROTECTED]> wrote:
> Hi
>
> I need to do custom validation to make sure that a new record does not
> pick the same title as a previous record. Therefore in my overriden
> clean method in my custom Form (which extends ModelForm) I need to be
> able to do either
Of course you can monkey-patch the User model but the better way is to use
signals pre_ or post_save
On Wed, Nov 26, 2008 at 13:54, Paddy Joy <[EMAIL PROTECTED]> wrote:
>
> I would like to override the save() method on the contrib.auth User
> model so that I can run a routine when a user is creat
Oh.. and what is the error you get?
On Wed, Nov 26, 2008 at 13:39, Alfonso <[EMAIL PROTECTED]> wrote:
>
> Thanks Alex,
>
> I'm attempting to go the inclusion tag route but having difficulty
> understanding how to get the form in place correctly.
>
> I've defind a simple form within forms.py:
>
>
On Tue, Nov 25, 2008 at 9:04 PM, Jeff Anderson <[EMAIL PROTECTED]> wrote:
> Aneurin Price wrote:
>> Hello,
>>
>> I'd like to be able to generate images dynamically for a Django-based
>> website, and I'm wondering how best to go about it.
>>
>> The idea is to do certain things to existing images, s
Thanks, DEBUG was my problem. totally forgot about that.
On Nov 23, 4:50 pm, Doug B <[EMAIL PROTECTED]> wrote:
> One thing that has bitten me more times than I care to remember is
> forgetting to disable DEBUG in settings.py before processing large
> datasets. The SQL queries build up in connect
Wiadomość napisana w dniu 2008-11-26, o godz. 10:20, przez Thomas
Guettler:
> I am missing order by nulls [first|last]
>
> Either I am blind, or it is not possible.
I think this is database-dependent.
--
We read Knuth so you don't have to. - Tim Peters
Jarek Zgoda, R&D, Redefine
[EMAIL PRO
Am 26.11.2008 13:19 Uhr, huw_at1 schrieb:
> A small part of my framework queries a non-Django db due to it being a
> legacy db with primary keys already in use. My question is is there a
> recognised way of applying pagination to non-Django db objects such
> that I can paginate the sql select quer
I'm sorry to ask what I feel must be a simple question, but I've just
spent the last hour trawling through the documentation, and can't for
the life for me find out how to add a "delete button" to a form.
I've set up a generic view:
(r'^quote/delete/(?P\d+)/$',
'django.views.generic.cre
Signals are the better way to achieve. You usually override the save
method when you need to define something related with the model
itself, but in many cases signals are the better way to notify some
function to do something if a model change (after save)
def your_function(sender, instance, crea
Jarek Zgoda schrieb:
> Wiadomość napisana w dniu 2008-11-26, o godz. 10:20, przez Thomas
> Guettler:
>
>
>> I am missing order by nulls [first|last]
>>
>> Either I am blind, or it is not possible.
>>
>
>
> I think this is database-dependent.
>
I know, but I would like to force this wi
Ahh great - many thanks. I did wonder this but without better
documentation I could not be certain. I currently build a list from my
sql query so this should be no problem.
Much appreciated.
On Nov 26, 12:47 pm, Thomas Kerpe <[EMAIL PROTECTED]> wrote:
> Am 26.11.2008 13:19 Uhr, huw_at1 schrieb:>
That's what I figured, I noted when searching through the support logs on
the djangoproject.org site that this seems to be in high demand. I am going
to go through contrib.admin.sites and familiarize myself a little better
with the methods in there and see what I can come up with so I can make it
Got it working, it was because I thought I had to pass the seach form
class as an argument to 'show_form'. That wasn't necessary. Taking a
step back from your work does wonders :-)
Thanks Alex
On Nov 26, 10:59 am, "Alex Koshelev" <[EMAIL PROTECTED]> wrote:
> Oh.. and what is the error you get?
If you already have a unique key on the project's name field, then
you're good to go--no duplicates will ever get inserted. No need to
do any filtering ahead of time--just put each save() in a try/except
block that catches the error you get and does nothing.
-Jeff
On Nov 25, 4:53 pm, "Alex Jill
Yesterday I replaced hard coded links on my site with a dotted
notation path to the relevant view using the {% url %} tag.
However, I also moved all of my views over to generic views, which has
broken the url tags because I am no longer using the views.py file.
Is there a way to use the url with
I would like to override the save() method on the contrib.auth User
model so that I can run a routine when a user is created/modified.
Is this possible or do I need to use a signal? I have tried overriding
the User model like this but it never seems to call my code:
from django.contrib.auth.mode
Thanks Alex,
I'm attempting to go the inclusion tag route but having difficulty
understanding how to get the form in place correctly.
I've defind a simple form within forms.py:
class PropertySearch(forms.Form):
name = forms.CharField(max_length=100, initial="Property name or
Location")
and
K,
I didn't want to go to bed without implementing some functionality, so
I went ahead with my idea. This is what I implemented:
{% block options %} http://localhost:8000/sam/quote/
delete/{{ object.id }}">delete{% endblock %}
It works just fine, but it depresses me to think I need to be
hard
On Nov 26, 9:00 am, Jeff FW <[EMAIL PROTECTED]> wrote:
> If you already have a unique key on the project's name field, then
> you're good to go--no duplicates will ever get inserted. No need to
> do any filtering ahead of time--just put each save() in a try/except
> block that catches the error
This sounds, to me, like a great candidate for using Django. Each of
the separate modules you described could be a distinct application
within your project. Actually, you could make it even more granular
than that, as a lot of the parts within each module could be separate
apps.
The Django perm
Graham Dumpleton wrote:
>
> On Nov 26, 3:32 pm, Django Newbie <[EMAIL PROTECTED]> wrote:
>
>> Hi Everybody,
>>
>> Django newbie here. I'm trying to get it to work under apache with
>> mod_python on a freebsd server but running into problems. I searched
>> the archives and found similar things
Wouldn't that give me worse performance though? Filtering the two lists
verses making 300+ save()'s in a try/except, 90% of which won't be committed
to the database?
On Wed, Nov 26, 2008 at 9:00 AM, Jeff FW <[EMAIL PROTECTED]> wrote:
>
> If you already have a unique key on the project's name fie
Dominic, Welcome to the django forum :) and welcome to django
> Which I've tested and seems to be working ok. (The documentation, by
> the way, didn't mention anything about requiring
> foo_confirm_delete.html but I guess that's not too hard to figure out
> from the error message)
Actually, a
Hey all,
A small part of my framework queries a non-Django db due to it being a
legacy db with primary keys already in use. My question is is there a
recognised way of applying pagination to non-Django db objects such
that I can paginate the sql select query on this database?
Many thanks
--~--~-
Hi all,
my name is flo, i am relatively new to django but would consider
myself an experienced web developer. I am sorry if this has been asked
hundreds of times, but after doing somewhat extensive research i still
would like to gain some insight into the design decisions involved in
how manage.p
Url patterns can have names [1]
[1]: http://docs.djangoproject.com/en/dev/topics/http/urls/#id2
On Wed, Nov 26, 2008 at 14:48, dash86no <[EMAIL PROTECTED]> wrote:
>
> Yesterday I replaced hard coded links on my site with a dotted
> notation path to the relevant view using the {% url %} tag.
>
>
I believe the only way to do this is to edit admin index template.
On Nov 26, 10:15 am, "Alex Koshelev" <[EMAIL PROTECTED]> wrote:
> Application not model. verbose_name works for model itself
>
> Just now there is no way to set custom application name.
>
> On Wed, Nov 26, 2008 at 10:40, Daniel Ro
Hello,
I'm running Django r7548 using PostgreSQL 8.3 on Leopard.
The problem: When I upload a file with a filename like '.jpg', I
get the following error:
---
UnicodeDecodeError at /library/documents/12114/addFile/
'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in
range(128)
Hi Jeff,
Thanks again for all the info.
Can I trouble you a little more, for something which in fact, might not be
Django related at all? You can choose to completely ignore this message, of
course.
I just want to know what is this server you are talking about? Is that some
kind of insulation la
Hello,
I am currently attempting to roll my own multiple database support for
django for a new project. I have attempted to search for examples of this
but have not found very much. Does anyone have some examples on how I can
accomplish this?
--~--~-~--~~~---~--~~
anyone know when NB has Django project support?
On Nov 25, 8:26 pm, bedros <[EMAIL PROTECTED]> wrote:
> I personally like Komodo Edit
>
> after trying komodo, I switched from pydev and eclipse to komodo;
>
> On Nov 25, 10:56 am, "Antoni Aloy" <[EMAIL PROTECTED]> wrote:
>
>
>
> > 2008/11/25 Kurcz
I have been using WingIDE from www.wingware.com. I think it's pretty good.
On Tue, Nov 25, 2008 at 2:27 AM, DragonSlayre <[EMAIL PROTECTED]> wrote:
>
> Hey, I'm getting started with a friend in developing a site with
> Django, and we're both new to this, so I am wondering what people use
> to m
I personally use Komodo Edit along with IDLE. Also instead of using
"manage.py shell" I use IDLE. I am so spoiled by the autocompletions.
On 11/26/08, Chagel <[EMAIL PROTECTED]> wrote:
>
>
> anyone know when NB has Django project support?
>
>
> On Nov 25, 8:26 pm, bedros <[EMAIL PROTECTED]> wrot
I'm happy to announce that the Satchmo team has released Satchmo 0.8.
For those of you not familiar with Satchmo, it is a django-based framework
for building highly customized online stores. One of the major aspects of
this release is full compatibility with Django 1.0.x. This releases includes
ma
Well, if you install ipython, you also get auto completion with
manage.py shell :-)
-- Horst
On Wed, Nov 26, 2008 at 4:20 PM, Steve Phillips <[EMAIL PROTECTED]> wrote:
> I personally use Komodo Edit along with IDLE. Also instead of using
> "manage.py shell" I use IDLE. I am so spoiled by the a
On Wed, Nov 26, 2008 at 4:20 PM, Steve Phillips <[EMAIL PROTECTED]> wrote:
> I personally use Komodo Edit along with IDLE. Also instead of using
> "manage.py shell" I use IDLE. I am so spoiled by the autocompletions.
I am also using Komodo IDE and like it a lot.
You may also want to check out
Thank you for the nifty code. I changed it just a little so it would
iterate through model A's queryset and get_or_create model B. It works
great, thanks again.
obja = Mls.objects.filter(mls_agent_id='261505106')
fieldnames = FeaturedProperties._meta.get_all_field_names()
for obj in obja:
I also use komodo ide :
- It can be used with other dynamic languages like php, so if you
sometimes need to do something in languages other than python, it can
come in handy.
- They have excellent licensing policy
but i doubt there is any "best" ide to everyone's need. Most of
choices sugges
http://www.eflorenzano.com/blog/post/easy-multi-database-support-django/
On Nov 26, 8:30 am, "Austin Gabel" <[EMAIL PROTECTED]> wrote:
> Hello,
> I am currently attempting to roll my own multiple database support for
> django for a new project. I have attempted to search for examples of this
> b
So i've narrowed down the problem more. Its failing on the template
call to {% url django-admindocs-docroot as docsroot %} on the admin
page and all other pages. If i remove this line, the site works just
fine, recognizing all urls defined. Not sure just the template engine
would fail to see th
Hi
I have came across a constructor like this
models.DateTimeField('date published')
What is significance of 'date published' can I replace it with say
'date printed' or 'date ed'
Thank you in advance
--~--~-~--~~~---~--~~
You received this message because you ar
Hi
I have came across a constructor like this
models.DateTimeField('date published')
What is significance of 'date published' can I replace it with say
'date printed' or 'date ed'
Thank you in advance
--~--~-~--~~~---~--~~
You received this message because you ar
It is just verbose_name - something like human description or label for
field.
On Wed, Nov 26, 2008 at 20:40, mahesh_aka_amol <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I have came across a constructor like this
> models.DateTimeField('date published')
>
> What is significance of 'date published' can
But be careful with this piece of code, It's only prototype.
For example, it opens new connection to database each time you
accessing manager :)
On Nov 26, 7:25 pm, Rock <[EMAIL PROTECTED]> wrote:
> http://www.eflorenzano.com/blog/post/easy-multi-database-support-django/
>
> On Nov 26, 8:30 am, "
> form = newFenceForm(initial={'auth_id' : auth_id})
Awesome. That was exactly what I needed - thanks very much.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
Tim. I'm looking for a federation type of usage. I have several databases
that I need to pull data from into one view.
On Wed, Nov 26, 2008 at 11:46 AM, Tim Chase
<[EMAIL PROTECTED]>wrote:
>
> > I am currently attempting to roll my own multiple database
> > support for django for a new project.
> I am currently attempting to roll my own multiple database
> support for django for a new project. I have attempted to
> search for examples of this but have not found very much.
> Does anyone have some examples on how I can accomplish this?
There are multiple facets to "multiple database" us
I'm doing a custom template (probably stupid), and using initial
values. Here's a precis:
template has
{{form.url.field.initial}}
{{form.auth_id}} {{form.media_id}} {{form.fence_id}}
Reminder String:
form type looks like
class editFenceForm(forms.Form):
teaser = forms.CharField(max_l
On Nov 26, 2:14 pm, ChrisK <[EMAIL PROTECTED]> wrote:
> I'm doing a custom template (probably stupid), and using initial
> values. Here's a precis:
>
> template has
>
>
> {{form.url.field.initial}}
> {{form.auth_id}} {{form.media_id}} {{form.fence_id}}
> Reminder String:
> p>
>
> form type
I want to add 'request.user' to 'members' of an 'event' that the user
creates. I have tried several different methods and googled without
finding any correct solutions. Right now, code looks like this but
still wont work:
# views.py
def new_event(request):
if request.method == 'POST':
Hi,
On 26.11.2008 10:32 Uhr, Seth Kaïne wrote:
> I'm learning about ORM, but it's not easy to understand the whole
> picture.
> I'm trying to create a "function" or a "filter" linked to my models.py
> or to PHPmyAdmin to give me a signal when something is changing.
> I'm making reseachs on signal
This is the error i receive:
'EventForm' object has no attribute 'managers'
--~--~-~--~~~---~--~~
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
Hi Daniel
Thank you for the tip. Now it works :-)
class CategoryItemForm(ModelForm):
class Meta:
model = CategoryItem
exclude = ('position','defaultItem') #These two attributes
shall only be changed in list view
def clean(self):
"""
Checks whether the ti
Sorry, I cut down my example poorly.
template has
{{form.teaser.field.initial}}
{{form.auth_id}} {{form.fence_id}}
Reminder String:
invocation looks like
print m.teaser
form = editFenceForm(initial={
'auth_id' : auth_id, 'fence_id': fence_id,
Hi
I am trying to achieve the following effect:
A ModelForm containing list of choices and input to possibly add
another
element to the list is presented on page.
If user will not choose any item from list and will type something
into
new_item field, then:
- if new_item is present on the list,
I am writing a simple tag as follows:
-
from django.template import Library
from django.utils.safestring import mark_for_escaping
register = Library()
@register.simple_tag
def testtag():
return mark_for_escaping("&><%")
-
calling the tag from my template, inserts th
It turns out I am having the same issue. I just added on batchadmin
and I can't seem to override templates across the entire project (I
wanted to add some JQuery to filters.html). How did you solve your
problem?
On Nov 3, 5:02 am, Lars Stavholm <[EMAIL PROTECTED]> wrote:
> Lars Stavholm wrote:
>
OK, here's another wrinkle: The modules in that folder import fine on
the browser end. I put tagging in there, and that shows up in my admin
list with no errors. So mod_python is picking up the vhost file, but
I'm not getting it in the shell. Thus when I try python manage.py
shell with anything fr
OK, got it working. Changed it in .bash_profile. Easier than I
thought, always. Thanks folks.
On Nov 26, 12:50 pm, Chris Amico <[EMAIL PROTECTED]> wrote:
> OK, here's another wrinkle: The modules in that folder import fine on
> the browser end. I put tagging in there, and that shows up in my admi
Hi -
I've just started fiddling about with the prototype library in order
to build in some AJAX functionality into my django site (which hasn't
gone live yet).
On one part of the page I'm using the Ajax.PeriodicalUpdater function
which asynchronously polls a URL and then integrates the html resp
You will like it.
Click to find out why
You also have the following outstanding friend requests:
Bakheet Harire <[EMAIL PROTECTED]>
You can accept or reject all of these invitations at once by clicking below:
http://www.bebo.com/in/8184124264a233440073b135
...
On Nov 27, 7:50 am, Chris Amico <[EMAIL PROTECTED]> wrote:
> OK, here's another wrinkle: The modules in that folder import fine on
> the browser end. I put tagging in there, and that shows up in my admin
> list with no errors. So mod_python is picking up the vhost file, but
> I'm not getting it
Hi,
I have an app which allows users to rate/vote for any kind of object.
Now, to test this app I need to have a fake model contained in a fake
app. Here's the file structure of my app:
myapp/
tests/
fakeapp/
__init__.py
models.py
__init__.py
m
On Nov 27, 1:06 am, Flo Ledermann <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> my name is flo, i am relatively new to django but would consider
> myself an experienced web developer. I am sorry if this has been asked
> hundreds of times, but after doing somewhat extensive research i still
> would li
On Nov 27, 1:10 am, Django Newbie <[EMAIL PROTECTED]> wrote:
> Graham Dumpleton wrote:
>
> > On Nov 26, 3:32 pm, Django Newbie <[EMAIL PROTECTED]> wrote:
>
> >> Hi Everybody,
>
> >> Django newbie here. I'm trying to get it to work under apache with
> >> mod_python on a freebsd server but runnin
Komodo Edit 5 couldn't run at Debian Etch. Has anybody some older version ? (4)
Ivan
On Wednesday 26 November 2008 17:50, vivek wrote:
>
> I also use komodo ide :
> - It can be used with other dynamic languages like php, so if you
> sometimes need to do something in languages other than pytho
On Thu, Nov 27, 2008 at 8:33 AM, Julien Phalip <[EMAIL PROTECTED]> wrote:
>
> So, all this works pretty well. The 'fakeapp' app is loaded
> dynamically, tables are created and the FakeItem model can be use in
> my tests.
>
> But it feels dirty. The dynamically created tables can potentially
> clas
On Nov 27, 10:55 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On Thu, Nov 27, 2008 at 8:33 AM, Julien Phalip <[EMAIL PROTECTED]> wrote:
>
> > So, all this works pretty well. The 'fakeapp' app is loaded
> > dynamically, tables are created and the FakeItem model can be use in
> > my tests.
Hello, dear Djangonauts!
Today it is the 0th birthday of Appengine Admin - Django like automatic
administration panel for Google App Engine.
The reason why this project was started and actually released is quite
simple - I am so addicted to Django automatic admin panel that I realized
that I don't
Hi all.
I've been having a problem regarding my app using comment system in
Django1.0.2.
I've used comment so that anyone can comment on the report. When I
view the report with the comment using the user that writes a comment
it will raise no error but when I tried to login as different user I
c
I took a similar path. I cloned the run_tests function from
django.tests.simple.py and put it in my project directory as
test_setup.py while adding this near the top of the function:
if settings.TEST_APPS:
settings.INSTALLED_APPS += settings.TEST_APPS
That at least allows me to define TEST_A
{% get_comment_count for *form *as comment_count %}
make sure you put the right object (in your code is form, what is it? do you
have template context names form?) for comment templatetag and it is
available
chatchai
2008/11/27 izzy <[EMAIL PROTECTED]>
>
> Hi all.
>
> I've been having a problem
On Wed, 2008-11-26 at 11:46 -0600, Tim Chase wrote:
> > I am currently attempting to roll my own multiple database
> > support for django for a new project. I have attempted to
> > search for examples of this but have not found very much.
> > Does anyone have some examples on how I can accomplis
I think you really need to explain what the real problem is that you're
trying to solve, because you're asking a question that is too specific.
On Wed, 2008-11-26 at 12:19 -0800, ChrisK wrote:
> Sorry, I cut down my example poorly.
>
> template has
>
>
> {{form.teaser.field.initial}}
> {{form.
On Wed, 2008-11-26 at 12:50 -0800, Chris Amico wrote:
> OK, here's another wrinkle: The modules in that folder import fine on
> the browser end. I put tagging in there, and that shows up in my admin
> list with no errors. So mod_python is picking up the vhost file, but
> I'm not getting it in the
Yes I've done that.
def packagingreport_details(request, object_id):
report = get_object_or_404(PackagingReport, pk=object_id)
user = request.user
messages = ''
errors = ''
if report.author == user:
form = report
else:
On Wed, 2008-11-26 at 14:22 +0100, Thomas Guettler wrote:
> Jarek Zgoda schrieb:
> > Wiadomość napisana w dniu 2008-11-26, o godz. 10:20, przez Thomas
> > Guettler:
> >
> >
> >> I am missing order by nulls [first|last]
> >>
> >> Either I am blind, or it is not possible.
> >>
> >
> >
> >
what happen if form = "" ?
better to use meaning full object, you will need to use form in advance
2008/11/27 izzy <[EMAIL PROTECTED]>
>
> Yes I've done that.
>
> def packagingreport_details(request, object_id):
>report = get_object_or_404(PackagingReport, pk=object_id)
>user = r
I'm keen to try to find some proper ways to fix this, but before I go
too deep into the bowels of Django's testing framework, I was
wondering what would be the criticisms you'd have about the "solution"
I came up with (at the start of this thread)? It sort of works without
patching Django, but is
On Wed, 2008-11-26 at 06:20 -0800, gnijholt wrote:
> Hello,
>
> I'm running Django r7548 using PostgreSQL 8.3 on Leopard.
> The problem: When I upload a file with a filename like '.jpg', I
> get the following error:
> ---
> UnicodeDecodeError at /library/documents/12114/addFile/
> 'ascii' c
Hi,
So I'm trying to model my URLs for a blog I'm building on Django using
the following structure:
http://www.myblog.com/tags/tag1/tag2/tag3/tag4/etc etc
The idea being that after the initial /tags/ you can add on any tag
and it would act as a filter against the blog entries. I'm trying to
fol
On Wed, 2008-11-26 at 17:54 -0800, Dylan Lorimer wrote:
> Hi,
>
> So I'm trying to model my URLs for a blog I'm building on Django using
> the following structure:
>
> http://www.myblog.com/tags/tag1/tag2/tag3/tag4/etc etc
>
> The idea being that after the initial /tags/ you can add on any tag
On Thu, 2008-11-27 at 13:44 +1100, Malcolm Tredinnick wrote:
[...]
> The second comment is that you might want to consider your URL design a
> bit more. You are really saying that none of the tag names are any more
> special or highly prioritised than any of the others. Although what you
> haven'
Hi everyone,
Here's a questions I just posted on stackoverflow.com (because I like
that forum's layout) - but I thought posting it here might lead to
more / better coverage. See: http://stackoverflow.com/questions/322694/
Multiple installs of Django - How to configure transparent multiplex
thro
On Nov 27, 2:06 pm, Brian <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> Here's a questions I just posted on stackoverflow.com (because I like
> that forum's layout) - but I thought posting it here might lead to
> more / better coverage. See:http://stackoverflow.com/questions/322694/
>
> Multipl
Hi all.
I'm new to Django and I would like to get the unique values of a field
in a model.
For example:
Class Report(models.Model):
title = models.Charfield
category = models...
author = models.ForeignKey(auth.User)
...
in views.py, how can I retrieve the unique val
Ok. I get it. form should have an object instance.
Thanks for pointing it out. And sorry to bother you from my stupid
mistake.
On Nov 27, 10:14 am, "Chatchai Neanudorn" <[EMAIL PROTECTED]>
wrote:
> what happen if form = "" ?
>
> better to use meaning full object, you will need to use form in a
On Wed, 2008-11-26 at 19:43 -0800, izzy wrote:
> Hi all.
>
> I'm new to Django and I would like to get the unique values of a field
> in a model.
>
> For example:
>
> Class Report(models.Model):
> title = models.Charfield
> category = models...
> author = models.ForeignKe
I'm new to django, and I'm having a problem setting up a model.
I have a model which has about 12 decimal fields and two integer
fields. Each field, when displayed, will always be blank if the value
is zero. In other words, "0" or "0.0" will never be displayed, either
when the object is outputted
On Wed, 2008-11-26 at 19:50 -0800, nbv4 wrote:
> I'm new to django, and I'm having a problem setting up a model.
>
> I have a model which has about 12 decimal fields and two integer
> fields. Each field, when displayed, will always be blank if the value
> is zero. In other words, "0" or "0.0" wi
Hi Graham,
Thanks for the reply. No, I'm not stuck using Lighttpd at all - I just
like it because it's simple and fast. :)
Here's a link to a description of what I'd like to see:
http://stackoverflow.com/questions/314515
The situation is this: I'm creating a web-site with a bunch of
accounts -
On Nov 27, 3:17 pm, Brian <[EMAIL PROTECTED]> wrote:
> Hi Graham,
>
> Thanks for the reply. No, I'm not stuck using Lighttpd at all - I just
> like it because it's simple and fast. :)
>
> Here's a link to a description of what I'd like to
> see:http://stackoverflow.com/questions/314515
>
> The
Accounts could be created as often as hourly. I'd be very bad to have
the webserver go down while people use the system (unless it was for
less than a second or two... but even then, it's still be very
bad :) ).
On Nov 26, 11:31 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Nov 27, 3:17 p
1 - 100 of 106 matches
Mail list logo