This post is kind of like a discussion rather than a question..
You can think of it as a feedback if you like (we've solved the issue
at hand though would like to know how other people solved similar
issue).
Anyway onto the point -
We needed a way to cache data from our Templates so the way we th
Harshad,
Hi.
2009/11/16 harshad :
> hello All,
>
> Im new to python, django. Can anyone help me as to how to do the setup
> on windows so that i can start developing web based applications on
> python.
http://groups.google.com/group/django-users/browse_thread/thread/6376673e1f281a8f/88e2cd1f503646
hello All,
Im new to python, django. Can anyone help me as to how to do the setup
on windows so that i can start developing web based applications on
python.
regards
harshad
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
On Thu, Nov 5, 2009 at 12:51 AM, Denis Bahati wrote:
> My project require to have my own table for users and roles. Am not using
> the default auth table.
Does this work for your additional user info?
http://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users
G
ok i have no idea what is going on here. I have django basic blog
loaded to my site. I've also installed inlines as follows:
INSTALLED_APPS = (
...
'inlines',
'blog',
)
(yeah i pulled out the blog dir from the basic dir because i'm not
using all the other basic app stuff)
You can verif
On Monday 16 Nov 2009 6:50:10 am Christophe Pettus wrote:
> On Nov 15, 2009, at 5:10 PM, Kenneth Gonsalves wrote:
> > I do also point out to plone vs drupal, but there again the
> > argument is the drupal is more widely used and hence has more
> > observable
> > vulnerabilities. It does not sound
Seconded.
I'm waiting for videos to be published. Even if they released them one-
by-one, that'd be fine by me.
On Nov 11, 7:26 am, Aljosa Mohorovic
wrote:
> On Nov 10, 11:23 pm, Vitaly Babiy wrote:
>
> > According to there twitter (http://twitter.com/djangocon/status/4680045261)
> > they shoul
On Sun, 15 Nov 2009 15:20:32 -0800, Christophe Pettus
wrote:
> On Nov 15, 2009, at 2:35 PM, Melvyn Sopacua wrote:
>> Is it possible for a "Django appointments application" to understand
>> and use
>> the geographical information from the tables in the geo_regionX
>> schema and
>> equally impor
Great, thanks. That solves my problem. But, I wish it were possible to
actually make a user read only. Unless I give the user the right to
change content the admin page says, "You don't have permission to edit
anything" and no content is visible. But overall, I think admin is
really great tool and
On Sun, Nov 15, 2009 at 8:19 PM, neridaj wrote:
> I'm getting this error even though I have added slug field for this
> model - Link. I ran syncdb a few times and I still get the error. Any
> suggestions?
Quoting the documentation:
http://docs.djangoproject.com/en/dev/ref/django-admin/#syncdb
"
Those sections won't show up for anyone who doesn't have edit
permissions. As long as you don't give the admin user superuser status
or permissions for those apps they won't show up.
On Nov 14, 6:34 pm, Zeynel wrote:
> Is it possible to remove "Auth" and "Sites" sections from the Admin
> panel?
I'm getting this error even though I have added slug field for this
model - Link. I ran syncdb a few times and I still get the error. Any
suggestions?
class Link(models.Model):
# Metadata.
slug = models.SlugField(unique_for_date='pub_date', help_text="Must
be unique for the publica
Hi, new to the list here, but I've been doing Django dev for a while
now and Drupal as well. In fact, at my workplace (60-person web design/
development shop) I'm leading a similar charge to move us away from
Drupal development towards Django.
I took a look at your post and thought I'd add a few t
On Nov 15, 2009, at 5:10 PM, Kenneth Gonsalves wrote:
> I do also point out to plone vs drupal, but there again the
> argument is the drupal is more widely used and hence has more
> observable
> vulnerabilities. It does not sound logical.
I don't think that anyone is seriously arguing that a pi
On Monday 16 Nov 2009 6:13:43 am shacker wrote:
> That's a tricky area - we have to be very careful about saying that
> anything is "more secure" than anything else. We don't want to give
> false hopes/impressions to managers, and we have to remember that part
> of the reason for Django's security
Karen Tracey wrote:
> Thus, the actual sort is done by the database.
IOW, it's not about stable vs. non-stable sort algorithms, since it doesn't
transform one view's data to the next. instead, both views are generated from
the same data with different parameters.
--
Javier
--
You received t
Thanks Karen.
On Nov 14, 8:28 pm, Karen Tracey wrote:
> On Fri, Nov 13, 2009 at 11:42 PM, neridaj wrote:
> > I'm using django-tagging and I think it's causing an error when I try
> > to access the admin page. If I comment out the urls that reference
> > django-tagging views the error goes away.
On Nov 12, 4:56 pm, Kenneth Gonsalves wrote:
> >http://birdhouse.org/blog/2009/11/11/drupal-or-django/
>
> looks like you have missed out on security - count the number of critical
> holes in drupal over the past year with the one hole in django in the past 4
> years. btw, I tried to comment on yo
On Monday 16 Nov 2009 5:00:06 am Antoni Aloy wrote:
> Learning django template does not going to hurt you :)
>
> In the team I lead the designer sometimes creates the design and
> sometimes just converts it to html+css. But she's able to work
> understand and work with inheritance and filters.
>
2009/11/15 gnoze5 :
> Hello,
>
> I am new to django and I am having a little issue in understanding the
> expected role of a designer during the development a django website.
> Is the point of the django template system to allow a designer to not
> have to worry about any code, and only need to del
On Nov 15, 2009, at 2:56 PM, gnoze5 wrote:
> I am new to django and I am having a little issue in understanding the
> expected role of a designer during the development a django website.
> Is the point of the django template system to allow a designer to not
> have to worry about any code, and onl
On Nov 15, 2009, at 2:35 PM, Melvyn Sopacua wrote:
> Is it possible for a "Django appointments application" to understand
> and use
> the geographical information from the tables in the geo_regionX
> schema and
> equally important to treat that specific schema as read only, as the
> data is
Howdy Everyone!
After having installed a fresh version of Pinax 0.7.1, I have an
interesting problem with the behavior of Django when I try to install
custom applications.
In my main project directory, I've created an 'apps' directory, and
created some standard django skeleton apps. When I tried
Hello,
I am new to django and I am having a little issue in understanding the
expected role of a designer during the development a django website.
Is the point of the django template system to allow a designer to not
have to worry about any code, and only need to deliver let's say, a
pure html+css
Hi,
I'm considering Django for some projects, but initial research on schema
support only showed some generics and I can't really find a good answer to my
specific situation. So, I figured I'd try here.
I've developed a database which should support various applications, separated
by schema's.
Colin thanks - I will try installing all of the -devel stuff. ha - 2.4
- thanks!
On Nov 15, 2:32 pm, Colin Bean wrote:
> On Sun, Nov 15, 2009 at 6:15 AM, mkumm wrote:
> > I recently took on a new project for a new client where I was forced
> > into using a GoDaddy Virtual Server (literally it wa
On zo, 2009-11-15 at 13:38 -0800, pjrhar...@gmail.com wrote:
> Also, I have an even simpler suggestion. Don't make the user confirm
> their email. I'm getting fed up with seeing this on forms all over the
> web when it serves no purpose at all. You confirm a password because
> you can't read it ba
In addition to the above, cleaning that requires two fields is best
put in the forms overall clean method. This makes it a bit harder
because you can't raise a validation error if you want the error to
appear by the field, you have to insert it into self._errors.
Also, I have an even simpler sugge
El Sat, 14 Nov 2009 22:16:22 -0800 (PST)
sanju m escribió:
> Please share any simple Django application source code with AJAX
> support, for reference.
http://lmgtfy.com/?q=django+ajax+example
> I am planing to develop an account managing web application in Django.
> If any one have source code
There is also "with" tag, it may be useful for such thing
2009/11/15 apramanik
> Awesome! Thanks for the clarification.
>
> Abhik
>
> On Nov 15, 10:48 am, Dennis Kaarsemaker
> wrote:
> > On zo, 2009-11-15 at 10:08 -0800, apramanik wrote:
> >
> > > Sure in most cases, but is there a way to fake
On Sun, Nov 15, 2009 at 6:15 AM, mkumm wrote:
> I recently took on a new project for a new client where I was forced
> into using a GoDaddy Virtual Server (literally it was a deal breaker).
> Anyway I have configured about 1/2 dozen servers to run django - but I
> am stumped on this. I am looking
I couldn't make this one work:
('^$', lambda *args: HttpResponseRedirect('/admin/'))
I want to try the other case, which file in apache do I use?
Thanks
On Nov 15, 1:01 pm, Dennis Kaarsemaker wrote:
> On zo, 2009-11-15 at 09:35 -0800, Zeynel wrote:
>
> > how do i redirectwww.swimswith.comtowww
Awesome! Thanks for the clarification.
Abhik
On Nov 15, 10:48 am, Dennis Kaarsemaker
wrote:
> On zo, 2009-11-15 at 10:08 -0800, apramanik wrote:
>
> > Sure in most cases, but is there a way to fake setting the context of
> > the included template? If I'm iterating over a set of comments and
> >
On zo, 2009-11-15 at 10:08 -0800, apramanik wrote:
> Sure in most cases, but is there a way to fake setting the context of
> the included template? If I'm iterating over a set of comments and
> include "comment.html", can I specify which comment to render?
{% for comment in comments %}
{% inclu
Hello,
Should the years variable contain dates for years in the future (if
I've got posts in the future) if I have NOT set allow_future to True?
Right now it is being displayed and the link which I create using /
{{d.year}}/ links to a page giving 404 error.
-Martin
--
You received this messag
Sure in most cases, but is there a way to fake setting the context of
the included template? If I'm iterating over a set of comments and
include "comment.html", can I specify which comment to render?
Thanks!
Abhik
On Nov 15, 9:59 am, Dennis Kaarsemaker wrote:
> On zo, 2009-11-15 at 09:26 -0800,
On 09-11-15 9:35 AM, Zeynel wrote:
> how do i redirect www.swimswith.com to www.swimswith.com/admin/
http://docs.djangoproject.com/en/dev/ref/generic-views/#django-views-generic-simple-redirect-to
First hit in Google.
--
Andy McKay, @clearwind
Training: http://clearwind.ca/training/
--
Y
On zo, 2009-11-15 at 09:35 -0800, Zeynel wrote:
> how do i redirect www.swimswith.com to www.swimswith.com/admin/
In your urlpatterns:
('^$', lambda *args: HttpResponseRedirect('/admin/'))
Or make your webserver do this, e.g. in apache:
RewriteEngine On
RewriteRule ^/$ /admin/ [R,L]
--
Dennis
On zo, 2009-11-15 at 09:26 -0800, apramanik wrote:
> I'm migrating to Django from Ruby on Rails. In the template language
> for Django, I've been looking for something similar to RoR's
> render :partial but can't find anything. It allows you write a
> template for a snippet of code rather than an
hello,
how do i redirect www.swimswith.com to www.swimswith.com/admin/
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
dj
Hi all,
I'm migrating to Django from Ruby on Rails. In the template language
for Django, I've been looking for something similar to RoR's
render :partial but can't find anything. It allows you write a
template for a snippet of code rather than an entire page. I found it
very useful when I was disp
On Sunday 15 November 2009 08:27:29 Nagy Károly wrote:
> In the template i cannot decide if specific attribute is assigned to a
> car or not, because i cant pass parameter to method call.
>
> How can i override this?
>
I have a love affair with these things, but template tags [1] would help. B
On 09-11-15 8:27 AM, Nagy Károly wrote:
> In the template i cannot decide if specific attribute is assigned to a
> car or not, because i cant pass parameter to method call.
>
> How can i override this?
You can't. You could use a different template language. But you'll be
better off formatting all
Hi there,
we have models like this:
1. A car database with freely assignable attributes.
2. An attribute-type table (ex: color, engine, seats)
3. Car attributes (ex: color:red, seats: 5) variable car by car
We have to display a matrix of cars (rows) with different attributes
(columns), but not
On Sun, Nov 15, 2009 at 10:55 AM, Andrew Ball wrote:
> I've noticed that in Django 1.1 when I sort based on a column in the admin
> interface's list view for one of my models and then sort by a different
> column, the second result set is no longer sorted based on the first column
> selected. Th
I've noticed that in Django 1.1 when I sort based on a column in the admin
interface's list view for one of my models and then sort by a different
column, the second result set is no longer sorted based on the first column
selected. This means that the sorting algorithm used is not a stable
sortin
On Sun, Nov 15, 2009 at 10:29 AM, Andy wrote:
> I have a form with an email field and email confirmation field. I
> want to check the form input to make sure the two fields match. So
> far I can get the error message 'Email addresses do not match.' to
> display, but if they do match I am gettin
I should say that I am using Django 1.1.1, Python 2.5 and sqlite3.
Thanks for your help.
On Nov 15, 9:29 am, Andy wrote:
> I have a form with an email field and email confirmation field. I
> want to check the form input to make sure the two fields match. So
> far I can get the error message 'Em
I have a form with an email field and email confirmation field. I
want to check the form input to make sure the two fields match. So
far I can get the error message 'Email addresses do not match.' to
display, but if they do match I am getting an error 'InterfaceError
at /order/
Error binding para
On 09-11-15 7:00 AM, TiNo wrote:
> On Sun, Nov 15, 2009 at 09:31, Dennis Kaarsemaker
> mailto:den...@kaarsemaker.net>> wrote:
>
> On za, 2009-11-14 at 15:53 -0800, TiNo wrote:
>
> > In my apps, Users of the app participate in a certain Year. I would
> > like a Year to continue a ManyT
On Sun, Nov 15, 2009 at 09:31, Dennis Kaarsemaker wrote:
> On za, 2009-11-14 at 15:53 -0800, TiNo wrote:
>
> > In my apps, Users of the app participate in a certain Year. I would
> > like a Year to continue a ManyToOne relationship with a User. As
> > creating a ForeignKey on a User is not possibl
I recently took on a new project for a new client where I was forced
into using a GoDaddy Virtual Server (literally it was a deal breaker).
Anyway I have configured about 1/2 dozen servers to run django - but I
am stumped on this. I am looking for help from anyone who may have
this experience.
Serv
I looked at it, but at the time they charged $20 for the and then $20
for the container with metered GPU. FOr $50 a month I got their
equivalent of a virtual dedicated with unmetered GPU (they still watch
bandwidth etc) which worked out really well. I have about 6 django
sites running on that serve
Exactly Karen the model is confusing. Here is the exactly model.
class Resource_Track(models.Model)
users = models.ForeignKey(User)
resources = models.ForeignKey(Resource)
date_tracked = models.DateTimeField('Date Tracked')
description = models.TextF
Russell Keith-Magee wrote:
> > mileux. Enough said, and nobody's making a Federal case out of it.
>
> I won't claim to be a Smalltalk expert
That's why I said "enough said". C-:
The only detail here is I like distinct definitions, and linking
"fixture" to "behavior" and "resource" to "data" allo
try out Pinax
---
On 15 Nov, 07:16, sanju m wrote:
> I am new in Django
> Please share any simple Django application source code with AJAX
> support, for reference.
> I am planing to develop an account managing web application in Django.
> If any one have source code of account managin
On zo, 2009-11-15 at 00:13 -0800, Continuation wrote:
> I checked out the doc (http://docs.djangoproject.com/en/dev/topics/db/
> queries/) and can't find reference to it. Can you explain its usage a
> bit more or point me to the relevant section of the doc?
http://docs.djangoproject.com/en/dev/to
On za, 2009-11-14 at 15:53 -0800, TiNo wrote:
> In my apps, Users of the app participate in a certain Year. I would
> like a Year to continue a ManyToOne relationship with a User. As
> creating a ForeignKey on a User is not possible, what would be the
> best way to do this? I don't need a full-blo
On Nov 15, 8:13 am, Continuation wrote:
> > As the docs show, when you've defined a GenericRelation, querying is
> > exactly the same as with a reverse foreign key. So:
> > Bookmark.objects.get(tags__tag='django')
>
> I don't quite understand your use of tags__tag='django' in retrieving
> the obje
On 15 Lis, 09:34, Nagy Károly wrote:
> Tomasz Zieli ski wrote:
> > How about something like this (should work, although I haven't checked
> > it):
>
> > Author.objects.annotate(article_num=Count('articles')).filter
> > (article_num=0)
>
> > - where articles=ManyToManyField('Article')
>
> This is
Tomasz Zieliński wrote:
> How about something like this (should work, although I haven't checked
> it):
>
> Author.objects.annotate(article_num=Count('articles')).filter
> (article_num=0)
>
> - where articles=ManyToManyField('Article')
>
This is so elegant, so i have to upgrade to 1.1 now... :)
>
> As the docs show, when you've defined a GenericRelation, querying is
> exactly the same as with a reverse foreign key. So:
> Bookmark.objects.get(tags__tag='django')
>
I don't quite understand your use of tags__tag='django' in retrieving
the objects. I've never seen this usage before.
I che
62 matches
Mail list logo