Completely lost on this... I'm trying to set up permalinks to my
articles, which are using generic views. I've gotten it to work by
hard coding the url path into the get_absolute_url function, but I'd
like it to be based off the url defined in the view (http://
docs.djangoproject.com/en/dev/ref/mo
> "Alex" == Alex Gaynor writes:
Alex> Justin, I'd take a look at that link again:
Alex> http://docs.djangoproject.com/en/dev/ref/contrib/admin/#ordering
Hmm, it means that adding 'ordering = ('-timestamp',)' line to
BlogPostAdmin class is supposed to work, but, somehow, it doesn't?
Sincer
On Sun, Feb 15, 2009 at 12:25 AM, Justin Myers wrote:
>
> On Feb 14, 12:55 am, Gour wrote:
> > Finally, I managed to add 'class Meta' as subclass of BlogPost class (as
> > above), but I wonder if adding 'ordering = ('-timestamp',)' to
> > BlogPostAdmin class is supposed to work or what is explan
On Feb 14, 12:55 am, Gour wrote:
> Finally, I managed to add 'class Meta' as subclass of BlogPost class (as
> above), but I wonder if adding 'ordering = ('-timestamp',)' to
> BlogPostAdmin class is supposed to work or what is explanation if it
> should not work (as we experienced)?
ordering is a
Hi,
Currently i am working with Sri Lanka data set, which I used local ordinates
not lon lat.
I want to customize admin interface where users can add Georapgical data
through admin
interface,
But problem i am having in Geomodel admin class coordinates values are given
in Lon Lat
is it possible to
On Sat, 2009-02-14 at 20:51 +, Lee Braiden wrote:
> Hi Malcom,
>
> 2009/2/14 Malcolm Tredinnick :
[...]
> > I know that I don't find myself "violating the DRY principle over and
> > over again" and I've written more than a few lines of code using Django
> > as one of the supporting library se
hi what is it ?
2009/2/15 Malcolm Tredinnick
>
> On Sat, 2009-02-14 at 11:31 -0800, Gregor Müllegger wrote:
> > Hi djangonauts,
> >
> > at the moment i try to setup a youtube-like site. Users can upload
> > videos which will be converted with ffmpeg to the flv format. The
> > convertion proces
On Sat, 2009-02-14 at 11:31 -0800, Gregor Müllegger wrote:
> Hi djangonauts,
>
> at the moment i try to setup a youtube-like site. Users can upload
> videos which will be converted with ffmpeg to the flv format. The
> convertion process is fired up in a view. Though i use the "threaded"
> module
On Sat, 2009-02-14 at 11:28 -0800, Rob Hudson wrote:
> Hi Django Users,
>
> I'm setting up a new Django model for a Newsletter app. The
> newsletter model has a many to many to a Book model that has about
> 20,000 records. This results in a multiple select box that is
> unusable for searching/s
On Sat, 2009-02-14 at 11:28 -0800, pault wrote:
> I have defined a custom error but if I test if custom error gets
> raised it fails if I test for Exception the test passes
>
> class CustomError(Exception):
> """
> This exception is my custom error
> """
>
> class Company(models.Mode
On Sat, 2009-02-14 at 10:39 -0800, yuccaplant wrote:
> Hi all,
>
> I want to develop a cms and I want my urls partially to be user-
> defined, for example:
>
> /home/info
> /home/blog/-/post/
> /frank/blog/-/articles/2003
> /frank/bio
>
> The first part (the part before '/-/' if any) would map
On Sat, Feb 14, 2009 at 11:07 AM, Alistair Marshall <
runninga...@googlemail.com> wrote:
>
> I have been trying to create a custom field that allows the user to
> enter a flowrate and clean the data back to kg/s or mol/s.
>
> I though I had everything sorted, when I type '10 tones/year', it
> corr
Hi, I haven't much forms with image/files, but I believe you should do
something like this:
photo = self.cleaned_data.get('photo')
This is for your second version.
When doing stuff like this I find it sometimes can be helpful to
insert an error like just typing raise. Django will in the debug
scr
I dont really get your problem, but it seems that your problem is
going on in your views. When you raise a validation error the clean
method should stop right there like you say it does. It's up to you to
act on validation errors with stuff like is_valid() and do what you
want when the form doesn'
Greetings,
I'm hoping for some advice here. I'm using the admin that captures
some information about a human, including their address (represented
as an FK to an Address model thing). Additionally it has a formset
(StackedInline) that displays N other forms that capture information
abou
On Sat, Feb 14, 2009 at 4:15 PM, Jack Orenstein wrote:
>
> I'm trying to understand how Django 1.0 handles connections. This is
> from the django docs, on the subject of raw SQL:
>
> from django.db import connection
> cursor = connection.cursor()
> cursor.execute("select ...")
> r
I'm trying to understand how Django 1.0 handles connections. This is
from the django docs, on the subject of raw SQL:
from django.db import connection
cursor = connection.cursor()
cursor.execute("select ...")
row = cursor.fetchone()
If I have a Django app running lots of re
Hi Malcom,
2009/2/14 Malcolm Tredinnick :
> So I realise this you are writing your opinion, but also consider that
> the flip side isn't completely invalid. There's an outside chance
> (alternatively expressed as "100% guaranteed") that when I write
> something here about pragmatics, it's going t
Everything is happening in a Postgres transaction; at the first error
the transaction aborts and you must issue a ROLLBACK to the DB before
continuing. Consult Django's transaction dogs for information on how
to do this.
On 2/14/09, 83...@gmx.de <83...@gmx.de> wrote:
>
> Hi Folks,
>
> I'd like t
On Sat, Feb 14, 2009 at 2:44 PM, Rob Hudson wrote:
>
> On Sat, Feb 14, 2009 at 11:29 AM, Alex Gaynor
> wrote:
> > Have you tried using raw_id_fields with it?
> > http://docs.djangoproject.com/en/dev/ref/contrib/admin/#raw-id-fields
>
> Just now tested that out. That works pretty well but the do
On Sat, Feb 14, 2009 at 11:29 AM, Alex Gaynor wrote:
> Have you tried using raw_id_fields with it?
> http://docs.djangoproject.com/en/dev/ref/contrib/admin/#raw-id-fields
Just now tested that out. That works pretty well but the downside is
that, for the user, the ID means nothing. It has the l
Hi djangonauts,
at the moment i try to setup a youtube-like site. Users can upload
videos which will be converted with ffmpeg to the flv format. The
convertion process is fired up in a view. Though i use the "threaded"
module to not interrupt the view for sending back the response.
In my develop
On Sat, Feb 14, 2009 at 2:28 PM, Rob Hudson wrote:
>
> Hi Django Users,
>
> I'm setting up a new Django model for a Newsletter app. The
> newsletter model has a many to many to a Book model that has about
> 20,000 records. This results in a multiple select box that is
> unusable for searching/s
Hi Django Users,
I'm setting up a new Django model for a Newsletter app. The
newsletter model has a many to many to a Book model that has about
20,000 records. This results in a multiple select box that is
unusable for searching/selecting books.
I have some ideas on what I can do to make this
I have defined a custom error but if I test if custom error gets
raised it fails if I test for Exception the test passes
class CustomError(Exception):
"""
This exception is my custom error
"""
class Company(models.Model):
name = models.CharField(max_length=200)
def test_erro
All,
Since upgrading to 1.0.2, and now to pre-alpha SVN-9832, my manage.py
runserver crashes with:
jer...@host396:/home/jerome/ccoa$ manage.py runserver 8077
Validating models...
0 errors found
Django version 1.1 pre-alpha SVN-9832, using settings 'ccoa.settings'
Development server is running a
Hi all,
I want to develop a cms and I want my urls partially to be user-
defined, for example:
/home/info
/home/blog/-/post/
/frank/blog/-/articles/2003
/frank/bio
The first part (the part before '/-/' if any) would map to an
application in the database and is user defined (it could be
anything
Hi Folks,
I'd like to update/initiate a database with an unique=True Field.
It shall be a "batch-process" (List of entries to take over into the
database.
for item in leasing:
l = Leasing(leasing = item)
try:
l.save()
except IntegrityError,e :
errors.append(e
Ok I found it!
I used href="..." instead of "src=...".
I am very sorry
Thx all anyway, it taught me some other things;)
On 14 fév, 17:58, arbi wrote:
> I still can't find the pb.
> My js file looks like that :
>
> function hello()
> {
> alert('hello');
>
> }
>
> do I need to add a : {% b
I still can't find the pb.
My js file looks like that :
function hello()
{
alert('hello');
}
do I need to add a : {% block reference %} {%endblock %} in this js
file, and the same in my html file? What I can't understand, is that
my paths are right and my css works...
On 14 fév, 01:1
I have been trying to create a custom field that allows the user to
enter a flowrate and clean the data back to kg/s or mol/s.
I though I had everything sorted, when I type '10 tones/year', it
correctly did the conversion however when I type something that does
not validate such as 'twenty' or '5
http://groups.google.com.tr/group/django-turkiye
--~--~-~--~~~---~--~~
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,
Django nedir?
Django için yeterli Türkçe kaynak bulunamadığı için bazı kaynak
örnekleri alıntı yaparak bir sunum yapmayı düşündüm.
Django nedir? Neler yapabiliriz? Bize sağladığı yararlar nelerdir?
Nasıl ayar yapmamız gerekiyor?
Bu sorulara cevap bulabilmek için 1 aydır çalışmaktayım ve
On Feb 14, 6:28 am, guptha wrote:
> hi ,
> In models.py i have
> class Customer(...)
> bill_no=models.CharFeild(...)
>
> All i need to access the field 'bill_no' and assign a value, In
> views.py i wrote
>
> from django.db.models.signals import post_save
> from mypro.myapp i
hi ,
In models.py i have
class Customer(...)
bill_no=models.CharFeild(...)
All i need to access the field 'bill_no' and assign a value, In
views.py i wrote
from django.db.models.signals import post_save
from mypro.myapp import Customer
def after_save(sender,ins
Hi :)
I'm trying to validate an uploaded image's size and filetype.
However i have problems even gettings to the validation as django
keeps telling me that there's no object.
When i don't use the validation part I can upload an image just fine.
So the upload thing works.
I just can't figure out
On Feb 14, 8:13 am, Evgeny wrote:
> I meant django form.
> Sure, I know about initial values in the constructors of fields, so I
> can set these values in "design-time" and get forms with some
> defaults.
> But what happens in my situation:
> -user clicks on the submit button of a form and sends
I meant django form.
Sure, I know about initial values in the constructors of fields, so I
can set these values in "design-time" and get forms with some
defaults.
But what happens in my situation:
-user clicks on the submit button of a form and sends some data to
server
-server redirects to the sa
thanks
On Dec 30 2008, 1:26 pm, "James Bennett"
wrote:
> On Mon, Dec 29, 2008 at 3:38 AM, Shuge Lee wrote:
> > return render_to_response( 'a.html', {'obj': obj, 'category':
> > Category} )
>
> > a.html
> > ...
> > {% load comments %}
> > {% render_comment_form for category %}
>
> The problem ma
39 matches
Mail list logo