Re: Django multiple databases router

2011-03-23 Thread Jacob Kaplan-Moss
Howdy -- On Tue, Mar 22, 2011 at 5:17 AM, dy wrote: > # model in app test2,store to test2 > class Test2(models.Model): >    name = models.CharField(max_length=30,verbose_name="test2") >    test1 = >

Re: Slow query on MySQL

2011-03-23 Thread Brian Neal
On Mar 23, 9:55 pm, Javier Guerra Giraldez wrote: > On Wed, Mar 23, 2011 at 8:49 PM, Brian Neal wrote: > > items = Post.objects(filter=forum__topic__in=forums).order_by('- > > topic__update_date', '-update_date').select_related(# as before)[:30] > > > But

Re: Slow query on MySQL

2011-03-23 Thread Javier Guerra Giraldez
On Wed, Mar 23, 2011 at 8:49 PM, Brian Neal wrote: > items = Post.objects(filter=forum__topic__in=forums).order_by('- > topic__update_date', '-update_date').select_related(# as before)[:30] > > But this had the same result as before. I checked the resulting SQL, > and it looked

Re: How does localization work in Django?

2011-03-23 Thread Kenneth Gonsalves
On Wed, 2011-03-23 at 16:03 +, Andre Lopes wrote: > from django.core import management > ImportError: No module named django.core this shows that manage.py cannot find django - check your paths -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox

Re: Django 1.3 released -- say thanks!

2011-03-23 Thread Russell Keith-Magee
On Thu, Mar 24, 2011 at 7:19 AM, Brian Neal wrote: > On Mar 23, 8:58 am, Shawn Milochik wrote: >> Everyone: >> >>     I just donated $25 to the Django Software Foundation. I would like >> to suggest that others who appreciate all the hard work chip in a >>

Re: Slow query on MySQL

2011-03-23 Thread Brian Neal
On Mar 23, 1:47 pm, Javier Guerra Giraldez wrote: > On Wed, Mar 23, 2011 at 1:35 PM, Brian Neal wrote: > > So you are suggesting I need to shrink the number of topics or > > possibly link the posts directly to the forum? > > right.  since you only want the

Re: TemplateDoesNotExist at /admin/ - admin/login.html

2011-03-23 Thread Karen Tracey
On Wed, Mar 23, 2011 at 9:30 PM, Jimmy wrote: > Template Loader Error: > Django tried loading these templates, in this order: > Using loader django.template.loaders.filesystem.Loader: > /home/jimmy/django_projects/hermis/templates/admin/login.html (File > exists) > Using

Re: suspiciousoperation with file upload on django-cms

2011-03-23 Thread Karen Tracey
On Wed, Mar 23, 2011 at 9:34 PM, Tony wrote: > Ive tried it the other way but when it appends the filename the final > slash is the other way. Either way, the octal thing you said hasn't > had an effect Im pretty sure. The url in the error message appears to > be the path

Re: embedding tag in another tag

2011-03-23 Thread Tony
there is a form called F, and I am trying to set its "action" attribute dynamically with javascript. I can do this successfully. However, when I try to use one tag in another like this: url_1 = {% page_url '{% page_attribute "slug"%}/{{id}}/vote/' %} (these are django-cms tags), I get a parsing

Re: suspiciousoperation with file upload on django-cms

2011-03-23 Thread Tony
Ive tried it the other way but when it appends the filename the final slash is the other way. Either way, the octal thing you said hasn't had an effect Im pretty sure. The url in the error message appears to be the path it should be. Is there any other reason? On Mar 23, 4:10 pm, Karen Tracey

TemplateDoesNotExist at /admin/ - admin/login.html

2011-03-23 Thread Jimmy
Hi Django Users, I developed web application using Django. When I run my django web application on development server (python manage.py runserver) everything was fine. Then I tried to use Apache and mod_python to run my web application. I already configured httpd.conf like this: SetHandler

Re: ANN: Django 1.3 released

2011-03-23 Thread Sam Walters
Hi fellow Django users. Its great news that 1.3 is out. I have been using the development branch on one machine for a month or so before this release so fiddling with some of the new features. Very happy about the class based views. Static file handling is so-so, *never really had issues with

Re: Turning off USE_L10N more than doubled my site performance!

2011-03-23 Thread Russell Keith-Magee
On Thu, Mar 24, 2011 at 12:47 AM, Carsten Fuchs wrote: > Dear Django folks, > > just an information that I would like to share (and be happy to hear some > feedback): ... > In summary, contrary to [3], I hope that the docs keep or add thick, fat and > blinking warnings

Re: Django 1.3 released -- say thanks!

2011-03-23 Thread Shawn Milochik
On Wed, Mar 23, 2011 at 7:19 PM, Brian Neal wrote: > I also found a bug. :)  I got a 403 CSRF failure when Paypal sent me > to http://www.djangoproject.com/foundation/donate/thanks/ Oh the bitter irony! -- You received this message because you are subscribed to the Google

Re: DZone wants to make a Django 'Refcard'

2011-03-23 Thread Russell Keith-Magee
On Wed, Mar 23, 2011 at 9:58 PM, Mitch Pronschinske wrote: > Hi all, > I'm the chief editor at DZone.com, a social linking and blogging community > for developers.  We've got this weekly 6pg cheat sheet (sorta like spark > charts) that we produce every week on a developer topic.  

Re: Django 1.3 released -- say thanks!

2011-03-23 Thread Brian Neal
On Mar 23, 8:58 am, Shawn Milochik wrote: > Everyone: > >     I just donated $25 to the Django Software Foundation. I would like > to suggest that others who appreciate all the hard work chip in a > couple of bucks if they are able. Especially those who, like me, want > to

Re: suspiciousoperation with file upload on django-cms

2011-03-23 Thread Karen Tracey
On Wed, Mar 23, 2011 at 3:26 PM, Tony wrote: > It uses my CMS_PAGE_MEDIA_PATH, which is 'C:\Users\Tony\Documents\My > Music\1'. Maybe this is the problem, but I dont know how to > explicitely tell Django to use my MEDIA_ROOT. > Assuming that string is literally what you

High-level template and template tag organization

2011-03-23 Thread Mazery Smith
Hello, I have a results.html page and mylibrary.html page on my site that both display search information in a results box (broken into two columns (a left and a right column)). The left-handed column stays the same (in terms of data being displayed) between both the results page and the

Custom admin action problem

2011-03-23 Thread Jônatas Vieira
Hi there. I'm having a weird issue with a custom admin action. It works pretty fine locally, but on the live server what happens is: * it renders to the template - OK * after submit, the function is executed (the changes and everything are applied using the post data, collected from the

Django & Two Factor Authentication (2FA)

2011-03-23 Thread pokecho
I am writing to ask whether it is possible to configure "django.contrib.auth" so that it can implement Two Factor Authentication to step up login security. The idea is that instead authenticating against just "username" and "password" one could add another field say "passcode" which would

Re: embedding tag in another tag

2011-03-23 Thread delegbede
What exactly are you trying to get done or achieve? If that is known, we could be able to help. Sent from my BlackBerry wireless device from MTN -Original Message- From: Tony Sender: django-users@googlegroups.com Date: Wed, 23 Mar 2011 13:06:13 To: Django

embedding tag in another tag

2011-03-23 Thread Tony
I have two tags, and I am trying to put together a dynamic form action url. For the url to come together lke I want, one would be embedded in the other, but when i try to do it this way, I get a parsing error. I've also tried using javascript and variables but the tags dont read the variable

Re: Exclude results with ManyToManyField

2011-03-23 Thread Jason Culverhouse
On Mar 23, 2011, at 12:19 PM, Julien Castets wrote: > Hello, > > from django.contrib.auth.models import User > > class Team(models.Model): > users = models.ManyToManyField(User) > > > I would like to retrieve every User in my database who does not belong > to a team. Left outer join is

Re: suspiciousoperation with file upload on django-cms

2011-03-23 Thread Tony
It uses my CMS_PAGE_MEDIA_PATH, which is 'C:\Users\Tony\Documents\My Music\1'. Maybe this is the problem, but I dont know how to explicitely tell Django to use my MEDIA_ROOT. On Mar 22, 8:45 pm, Karen Tracey wrote: > On Tue, Mar 22, 2011 at 5:12 PM, Tony

Exclude results with ManyToManyField

2011-03-23 Thread Julien Castets
Hello, from django.contrib.auth.models import User class Team(models.Model): users = models.ManyToManyField(User) I would like to retrieve every User in my database who does not belong to a team. I'm facing to this problem for several hours, and I found a *very* crappy solution : def

Re: newbie question regarding passwords and service requests

2011-03-23 Thread Shawn Milochik
It's not possible to have a system that can access another, yet block access to the other system if hacked. This is why it is impossible to have unbreakable encryption in consumer devices. You can't make a Blu-Ray player that doesn't contain the capability to decrypt Blu-Ray discs. Therefore, all

Re: Django 1.3 released -- say thanks!

2011-03-23 Thread emonk
http://www.revsys.com/django/cheatsheet/ 2011/3/23 Shawn Milochik > Everyone: > >I just donated $25 to the Django Software Foundation. I would like > to suggest that others who appreciate all the hard work chip in a > couple of bucks if they are able. Especially those

Re: Slow query on MySQL

2011-03-23 Thread Javier Guerra Giraldez
On Wed, Mar 23, 2011 at 1:35 PM, Brian Neal wrote: > So you are suggesting I need to shrink the number of topics or > possibly link the posts directly to the forum? right. since you only want the 30 latest posts, scanning 12k topics is absurd. i guess just ordering by

Form Field References When Writing Field Validators

2011-03-23 Thread hank23
I'm writing a new field validator and I don't want it to raise an error if another field on the same form is not set to a certain value. When I reference the other field which I'm not editting with this validator I get this error: global name 'rptlist' is not defined So can I reference the

Django 1.3 URL resolvers is not working

2011-03-23 Thread NavaTux
Here just i am authenticating a user in django and logout him authentication view is working fine and i wriiten a log out view which is here def view_logout(request): from django.contrib.auth import logout as django_logout django_logout(request) return

Re: Slow query on MySQL

2011-03-23 Thread Brian Neal
On Mar 23, 12:59 pm, Javier Guerra Giraldez wrote: > On Wed, Mar 23, 2011 at 12:56 PM, Javier Guerra Giraldez > > wrote: > > in this case the problem arises because of the big mismatch between > > the forums_forum table (just 15 records) and the

Re: Slow query on MySQL

2011-03-23 Thread Brian Neal
On Mar 23, 11:45 am, Javier Guerra Giraldez wrote: > > >http://dpaste.com/524865/ > > ok, now it's obvious. > > the second query (the one with topic__forum__in=forums, right?) is > scanning the whole topic table (12Krows).  it seems to be guessing > that picking a significant

Re: Slow query on MySQL

2011-03-23 Thread Javier Guerra Giraldez
On Wed, Mar 23, 2011 at 12:56 PM, Javier Guerra Giraldez wrote: > in this case the problem arises because of the big mismatch between > the forums_forum table (just 15 records) and the forums_topic table > (12k records)  that, and the need to sort by a field on another >

Re: Slow query on MySQL

2011-03-23 Thread Javier Guerra Giraldez
On Wed, Mar 23, 2011 at 11:51 AM, Christophe Pettus wrote: > Looking at the SQL, it looks like the way MySQL executes the IN is to read in > and sort all of the Topic records, then probing for the matching ones once > they're sorted. it only does a linear when the number of

newbie question regarding passwords and service requests

2011-03-23 Thread Danny Shevitz
Howdy, This is a newbie question on best practices of web design and django. I have the following problem: Imagine my django app is wonderful and secure and uses the auth module and all that. I need to run some other web service provided by other developers in my company on another platform.

Re: How does localization work in Django?

2011-03-23 Thread Andre Lopes
Hi, Thanks for the reply. I have installed getttext on windows. What more details do you need to get the cause of the error? I'm using Django 1.3 Best Regards, On Mar 23, 4:46 pm, Andre Terra wrote: > This has more to do with how you setup your python environment than

Re: Is there any Open Source Django Newspaper CMS?

2011-03-23 Thread shacker
Django is used by a lot of newspaper / news sites, but they generally use it to build the CMS that fits their exact needs. That's kind of the point of using a framework like Django rather than a CMS like Drupal - you don't suffer from the "opinions" of the CMS, and instead use the tools provided

Re: Slow query on MySQL

2011-03-23 Thread Christophe Pettus
On Mar 23, 2011, at 8:45 AM, Brian Neal wrote: > Sorry, my bad. I've been tweaking things in vain. Here are the correct > EXPLAINS. > > http://dpaste.com/524865/ In both cases, what it's doing is grabbing a set of records from Topic, sorting them, then using those to select Posts. In the

Re: How does localization work in Django?

2011-03-23 Thread Andre Terra
This has more to do with how you setup your python environment than with the localization/internationalization itself. I suggest using virtualenv and virtualenvwrapper to easily setup your django environment. Using virtualenv is pretty much the standard amongst developers nowadays. You can use

Turning off USE_L10N more than doubled my site performance!

2011-03-23 Thread Carsten Fuchs
Dear Django folks, just an information that I would like to share (and be happy to hear some feedback): The users of my mod_wsgi hosted app reported bad performance in a large view that consists of a table of hundreds of rows and dozens of columns. I first used the Django Debug Toolbar to

Re: Slow query on MySQL

2011-03-23 Thread Javier Guerra Giraldez
On Wed, Mar 23, 2011 at 10:45 AM, Brian Neal wrote: > Sorry, my bad. I've been tweaking things in vain. Here are the correct > EXPLAINS. > > http://dpaste.com/524865/ ok, now it's obvious. the second query (the one with topic__forum__in=forums, right?) is scanning the whole

Re: Where to put generic Database Tables?

2011-03-23 Thread shacker
On Mar 22, 10:44 am, Andre Lopes wrote: > Hi, > > I'm trying to start with Django. > > I'm developing an App. This App is called "Directory" and will store > info about websites. > > I must to create a database table called "Genders", but this is a > generic database table

Re: Generic views v.s. shortcuts

2011-03-23 Thread Andre Terra
Hello Kevin, Generic Views are much more powerful than simple shortcut functions. With a generic view, you can easily display a queryset, or details about a queryset item without writing much code. Shortcut functions only make the _call_ to rendering easier and lack the ability to "automagically"

Re: How does localization work in Django?

2011-03-23 Thread Ramiro Morales
On Wed, Mar 23, 2011 at 1:03 PM, Andre Lopes wrote: > > But is not working, I got this error: > > [quote] >        Traceback (most recent call last): >          File "C:\Python27\Lib\site-packages\djan >        odule> >                from django.core import management >  

How does localization work in Django?

2011-03-23 Thread Andre Lopes
Hi, I have reading some topics of http://docs.djangoproject.com/en/1.3/topics/i18n/localization/ But have not understand what I need to do. First what I intend to do... I have created a new App, called "directorio", and now I need to have the capability of translate the data inside some

Re: Slow query on MySQL

2011-03-23 Thread Brian Neal
On Mar 23, 8:49 am, Javier Guerra Giraldez wrote: > are the EXPLAINs from these exact SQL queries?  i don't see why it > cares about the forum_forum table, which isn't mentioned on the > queries. Sorry, my bad. I've been tweaking things in vain. Here are the correct EXPLAINS.

Re: Show differents views in a single template

2011-03-23 Thread Alberto Morales Fernández
I think you need to ask a clearer question. You don't use templates to display views. You use templates within views (among other places) to render output. So, you can create any number of views, each of which use the same template. There's nothing tricky about that. I'm guessing you may be

Re: Inline Foreign Key Filter

2011-03-23 Thread bernatbonet
I've been trying doing this: class ArticuloTallaInline(admin.TabularInline): model = Articulo_Talla extra = 0 def get_formset(self, request, obj=None, **kwargs): self.padre = obj return super(ArticuloTallaInline, self).get_formset(request,

Looking for development services

2011-03-23 Thread Aryeh Leib Taurog
My employer (not me) is looking for development services to build a relatively small site/service with django. Required experience: python django processing paypal payments advantageous: deployment & sysadmin experience experience developing workflow systems (in python) Please send

Re: Configuring common site URL paths for use in templates

2011-03-23 Thread emre yılmaz
> and then make these accessible in some random template using somthing like > the following: > > Can anyone suggest a good way of doing this? > 1) write your own context_processors http://docs.djangoproject.com/en/dev/ref/templates/api/#writing-your-own-context-processors 2) write your own

Re: Error installing permissions superuser when a userprofile has been defined

2011-03-23 Thread Jason Culverhouse
On Mar 23, 2011, at 4:25 AM, Malcolm Box wrote: > Further investigation: looks like it's a South/syncdb interaction. The > UserProfile will be created by the south migration, but of course that > hasn't run when the auth post_install runs to prompt for a superuser. > > Sadly syncdb --migrate

Re: Generic views v.s. shortcuts

2011-03-23 Thread Kevin Renskers
Hi Andre, Well, it would be much easier if get_context_data only needs to return a dictionary. Guess I'll build my own class for that :) But apart from that, my real question is why there are generic views *and* shortcut functions. Which is recommended in which case? Cheers, Kevin -- You

Re: Generic views v.s. shortcuts

2011-03-23 Thread Andre Terra
The rationale behind class-based views is that they are meant to be reused. While all of the listed approaches work, CBVs have greater functionality and modularity. It might seem like more code at first, but the possibility of using Mixins and overriding just bits and pieces of other views you

Configuring common site URL paths for use in templates

2011-03-23 Thread Ian Stokes-Rees
I have a bunch of regular site paths that I'd like to be able to refer to both in my Python code and in my templates, e.g. settings.py: site_root = "/portal" contact_url = site_root + "/contact" sitemap_url = site_root + "/sitemap" login_url = site_root + "/account/login" logout_url = site_root

Re: Show differents views in a single template

2011-03-23 Thread Shawn Milochik
2011/3/23 Alberto Morales Fernández : > I have a problem, i need show differents "views" in a single template, how i > can  achive this? I think you need to ask a clearer question. You don't use templates to display views. You use templates within views (among other places) to

DZone wants to make a Django 'Refcard'

2011-03-23 Thread Mitch Pronschinske
Hi all, I'm the chief editor at DZone.com, a social linking and blogging community for developers. We've got this weekly 6pg cheat sheet (sorta like spark charts) that we produce every week on a developer topic. Look here for some examples: refcardz.dzone.com Even after 130 cards, we really

Inline Foreign Key Filter

2011-03-23 Thread bernatbonet
Hi, I've been trying to solve one probleme, and I'll explain what I want to do. First I'll show my models; class Tallaje(models.Model): cod = models.CharField(max_length=5) desc = models.CharField(max_length=60) class Talla(models.Model): tallaje =

Show differents views in a single template

2011-03-23 Thread Alberto Morales Fernández
hello guys I have a problem, i need show differents "views" in a single template, how i can achive this? Regards Alberto Morales -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Django 1.3 released -- say thanks!

2011-03-23 Thread Shawn Milochik
Everyone: I just donated $25 to the Django Software Foundation. I would like to suggest that others who appreciate all the hard work chip in a couple of bucks if they are able. Especially those who, like me, want to express their gratitude but haven't yet contributed back to the community by

Re: Slow query on MySQL

2011-03-23 Thread Javier Guerra Giraldez
On Wed, Mar 23, 2011 at 7:51 AM, Brian Neal wrote: > Any other thoughts? Thanks. > are the EXPLAINs from these exact SQL queries? i don't see why it cares about the forum_forum table, which isn't mentioned on the queries. other than that, i don't see why it would be so slow

Re: SlugField With URL

2011-03-23 Thread nadaeivar
Good Envoyé par mon BlackBerry® smartphone de Tigo -Original Message- From: Tsolmon Narantsogt Sender: django-users@googlegroups.com Date: Wed, 23 Mar 2011 20:01:32 To: Reply-To: django-users@googlegroups.com Subject: Re: SlugField

Re: Is there any Open Source Django Newspaper CMS?

2011-03-23 Thread Kenneth Gonsalves
On Wed, 2011-03-23 at 12:56 +0100, Matthias Kestenholz wrote: > That wasn't very helpful. > > He could tell it himself, but you should really read the messages you > are replying to. but then he says drupal and joomla are newspaper cmss - they are not. Maybe ellington, but that is not free. --

Re: Is there any Open Source Django Newspaper CMS?

2011-03-23 Thread Kenneth Gonsalves
On Wed, 2011-03-23 at 03:57 -0700, Rehmetjan wrote: > Hello all, I am new to django. > I am heard about Django is comes from a Newspaper group, but never > found a > Newspaper CMS. (Not meant Django-CMS) > PHP has many Newspaper CMS like Joomla! and Drupal. If anyone tell me > where > can I find

Re: Slow query on MySQL

2011-03-23 Thread Brian Neal
On Mar 22, 11:01 pm, Javier Guerra Giraldez wrote: > On Tue, Mar 22, 2011 at 10:42 PM, Brian Neal wrote: > > This is what I came up with to reduce the long times I was > > seeing (but it still is slow). This is probably going to get ugly in > > email, maybe

Re: SlugField With URL

2011-03-23 Thread nadaei...@gmail.com
class Partenaires(models.Model): PARTENAIRE_TYPE = ( (u'LIG', u'Light'), (u'PRE', u'Premium'), ) email = models.EmailField('Email') slug = models.SlugField(unique= True) user = models.ForeignKey(User, unique=True) nom = models.CharField(u'Nom',

Re: SlugField With URL

2011-03-23 Thread Tsolmon Narantsogt
I'm waiting On Wed, Mar 23, 2011 at 4:57 PM, wrote: > Ok give me few minutes > > Envoyé par mon BlackBerry® smartphone de Tigo > -- > *From: * Tsolmon Narantsogt > *Sender: * django-users@googlegroups.com > *Date: *Wed, 23 Mar

Re: Is there any Open Source Django Newspaper CMS?

2011-03-23 Thread Matthias Kestenholz
On Wed, Mar 23, 2011 at 12:31 PM, Mika Sjöman wrote: > django-cms.org > That wasn't very helpful. He could tell it himself, but you should really read the messages you are replying to. Quoting Rehmetjan: > I am heard about Django is comes from a Newspaper group, but

Design help

2011-03-23 Thread Ajay
Hi all, I have a flow which I am not sure how to design with maximum reuse of existing apps/features. Flow :- 1) A non registered user comes and uploads his profile - (NOTE - there is no user sign up form,only profile upload form). 2) Admin comes , approves the profile, edits it if he wants and

Re: ANN: Django 1.3 released

2011-03-23 Thread Xavier Ordoquy
Hi there I just checked with Chrome (10.0.648.151 / osx) and it worked with sha & md5. The issue seems to be on your side. Regards, Xavier. Le 23 mars 2011 à 12:01, Chris Matthews a écrit : > Thanks it was. > Chrome consistently downloaded it with only 799,034 bytes. I used Windows > Internet

Re: Is there any Open Source Django Newspaper CMS?

2011-03-23 Thread Mika Sjöman
django-cms.org //mika On Wed, Mar 23, 2011 at 7:14 PM, Rehmetjan Tursun < rehmetjan.tur...@gmail.com> wrote: > I Googled many times, not a beautifull answer (except > http://code.google.com/p/crimson-online/ ) Demo: > http://www.thecrimson.com/ > > Do you know others? > -- You received this

Re: Error installing permissions superuser when a userprofile has been defined

2011-03-23 Thread Malcolm Box
Further investigation: looks like it's a South/syncdb interaction. The UserProfile will be created by the south migration, but of course that hasn't run when the auth post_install runs to prompt for a superuser. Sadly syncdb --migrate doesn't do the right thing either. For now, I'm just creating

Re: Is there any Open Source Django Newspaper CMS?

2011-03-23 Thread Rehmetjan Tursun
I Googled many times, not a beautifull answer (except http://code.google.com/p/crimson-online/ ) Demo: http://www.thecrimson.com/ Do you know others? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

RE: ANN: Django 1.3 released

2011-03-23 Thread Chris Matthews
Thanks it was. Chrome consistently downloaded it with only 799,034 bytes. I used Windows Internet Explorer which downloaded 6,504,003 bytes and the SHA1 is correct and 7Zip is happy with it. PS: I am not punting Internet Explorer ;-) -Original Message- From:

Re: Is there any Open Source Django Newspaper CMS?

2011-03-23 Thread Mika Sjöman
Hi What about trying google first before asking? Try to google> Django cms. // mika On Wed, Mar 23, 2011 at 7:03 PM, Rehmetjan wrote: > I mean a out-of-box ready for production newspaper CMS. thanks > > -- > You received this message because you are subscribed to

Re: Clueless Monk

2011-03-23 Thread Mika Sjöman
Hi It is installed by default in Mac OS X since it is a unix system. No need to install anything else than django - if you want that too will say. If you wanna learn python programing, I can recommend TheNewBoston python tutorials on youtube. Google it and you will find his videos. You can run

Re: Is there any Open Source Django Newspaper CMS?

2011-03-23 Thread Rehmetjan
I mean a out-of-box ready for production newspaper CMS. 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-users@googlegroups.com. To unsubscribe from this group, send email to

Is there any Open Source Django Newspaper CMS?

2011-03-23 Thread Rehmetjan
Hello all, I am new to django. I am heard about Django is comes from a Newspaper group, but never found a Newspaper CMS. (Not meant Django-CMS) PHP has many Newspaper CMS like Joomla! and Drupal. If anyone tell me where can I find Open source CMS for Newspaper written in Django? Thanks -- You

Generic views v.s. shortcuts

2011-03-23 Thread Kevin Renskers
Hi, I am wondering why Django 1.3 has both class-based generic views (like TemplateView and RedirectView) and shortcuts like django.shortcut.render and django.shortcut.redirect. What is the recommended way to write your views? Is a call to render() from within your own view function better

Re: Clueless Monk

2011-03-23 Thread Sadra Kasraian
I have a black Macbook with OS-X. I was wondering how do I start using it python. What do I download? On Tue, Mar 22, 2011 at 4:38 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Shawn is right, Python *is* awesome ^_^ > > Soon you will be whispering sweet

Re: ANN: Django 1.3 released

2011-03-23 Thread Russell Keith-Magee
On Wed, Mar 23, 2011 at 6:25 PM, Chris Matthews wrote: > I must add my SHA1 on Django-1.3.tar.gz is > 63e62f9a4834c1c8dbb591aac4ef2b1b84c5ea63 (on all of the downloads I did). > In which case, there's something going screwy with your downloads. The correct SHA1 for

Django form's widget input format

2011-03-23 Thread Lior Sion
Some form widgets, namely DateInput and DateTimeInput, check data change using a pre-set format to know if the data on the field was change. Today many front end developers dynamically change the format for those types of input (and other localizations) on the client side after the form is

RE: ANN: Django 1.3 released

2011-03-23 Thread Chris Matthews
I must add my SHA1 on Django-1.3.tar.gz is 63e62f9a4834c1c8dbb591aac4ef2b1b84c5ea63 (on all of the downloads I did). From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Chris Matthews Sent: 23 March 2011 12:20 To: django-users@googlegroups.com Subject: RE:

RE: ANN: Django 1.3 released

2011-03-23 Thread Chris Matthews
Well done! Thanks for all the hard work. I downloaded my version from http://www.djangoproject.com/download/ and Chrome says it comes from http://media.djangoproject.com/releases/1.3/Django-1.3.tar.gz 7zip says "Data error in Django-1.3.tar' File is broken". I have downloaded it a few times

Re: ANN: Django 1.3 released

2011-03-23 Thread Andre Lopes
I'm kind of sad :) I have installed 1.2 one day ago... :O Just kidding. Congratulations to all people involved. Best Regards, On Wed, Mar 23, 2011 at 10:02 AM, Sultan Imanhodjaev wrote: > Wow!!! Congratulations people, thanks to developers! > > On Wed, Mar

Error installing permissions superuser when a userprofile has been defined

2011-03-23 Thread Malcolm Box
Hi, I'm running into an error when doing a syncb on a clean DB during the installation of the auth system. I get the normal prompt "You just installed Django's auth system, which means you don't have any superusers defined. Would you like to create one now? (yes/no):" and answer yes. But when

Re: ANN: Django 1.3 released

2011-03-23 Thread Sultan Imanhodjaev
Wow!!! Congratulations people, thanks to developers! On Wed, Mar 23, 2011 at 3:59 PM, Marco wrote: > so happy > > On Wed, Mar 23, 2011 at 5:34 PM, bruno desthuilliers < > bruno.desthuilli...@gmail.com> wrote: > >> On 23 mar, 07:15, James Bennett

Re: ANN: Django 1.3 released

2011-03-23 Thread Marco
so happy On Wed, Mar 23, 2011 at 5:34 PM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > On 23 mar, 07:15, James Bennett wrote: > > It's here! > > > > Django 1.3 has been officially released. > > Yay great ! Congrats guys. > > -- > You received this message

Re: ANN: Django 1.3 released

2011-03-23 Thread bruno desthuilliers
On 23 mar, 07:15, James Bennett wrote: > It's here! > > Django 1.3 has been officially released. Yay great ! Congrats guys. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: SlugField With URL

2011-03-23 Thread nadaeivar
Ok give me few minutes Envoyé par mon BlackBerry® smartphone de Tigo -Original Message- From: Tsolmon Narantsogt Sender: django-users@googlegroups.com Date: Wed, 23 Mar 2011 16:56:05 To: Reply-To: django-users@googlegroups.com Subject:

Re: SlugField With URL

2011-03-23 Thread Tsolmon Narantsogt
Can you send me some example On Wed, Mar 23, 2011 at 4:51 PM, wrote: > Hi > In url.py > > Envoyé par mon BlackBerry® smartphone de Tigo > -- > *From: * Tsolmon Narantsogt > *Sender: * django-users@googlegroups.com > *Date:

SlugField With URL

2011-03-23 Thread Tsolmon Narantsogt
Hello comrades I defined a some dynamic pages. The slug should look like : http://localhost:8000/store/{shoes} How should i setup my urlpatterns ? Thanks Tsolmon. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: SlugField With URL

2011-03-23 Thread Tsolmon Narantsogt
And how to create generic view. > Thanks > Tsolmon. > > > -- 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 to

Re: SlugField With URL

2011-03-23 Thread nadaeivar
Hi In url.py Envoyé par mon BlackBerry® smartphone de Tigo -Original Message- From: Tsolmon Narantsogt Sender: django-users@googlegroups.com Date: Wed, 23 Mar 2011 16:49:23 To: Reply-To: django-users@googlegroups.com Subject: SlugField

Re: Clueless Monk

2011-03-23 Thread Kenneth Gonsalves
On Tue, 2011-03-22 at 20:32 +, Cal Leeming [Simplicity Media Ltd] wrote: > One thing I will give you a heads up on, is the dir() function. If > someone > had pointed that out to me to begin with, it would have saved me *a > lot* of > time :D +1 -- regards KG http://lawgon.livejournal.com

Re: Some clues on multi language webapp on Django

2011-03-23 Thread Kenneth Gonsalves
On Tue, 2011-03-22 at 14:18 +, Andre Lopes wrote: > I'm new to Django. I need some clues on how to design a multi language > webapp on Django. There are some some examples, tips and tricks about > the best way of doing it? read up on internationalization and django-transmeta -- regards KG

Re: About database composite keys.

2011-03-23 Thread Derek
On Mar 22, 12:31 pm, Andre Lopes wrote: > Hi, > > I'm new to Django and I have some doubts about the Database Design. I > design Databases two years from now but I'm not accustomed to design > databases without composite keys. > > I have read that Django does not support

ANN: Django 1.3 released

2011-03-23 Thread James Bennett
It's here! Django 1.3 has been officially released. Blog post here: http://www.djangoproject.com/weblog/2011/mar/23/13/ Release notes here: http://docs.djangoproject.com/en/dev/releases/1.3/ Download here: http://www.djangoproject.com/download/ -- "Bureaucrat Conrad, you are technically