Re: GET and POST in forms. Please help me understand the logic!

2013-11-28 Thread Andrew Taylor
Awesome I feel much better about this now. Thanks for your help! On Thursday, 28 November 2013 09:29:05 UTC, Daniel Roseman wrote: > > On Thursday, 28 November 2013 03:24:11 UTC, Andrew Taylor wrote: >> >> Hi, >> >> I'm struggling with the concepts of get and post and where these status >> come

Re: DjangoProject.com community feeds

2013-11-28 Thread Silvio J. Gutierrez
Thanks for the info Russ. If you guys need any help, please let me know. I'd be happy to contribute. - Silvio On Wed, Nov 27, 2013 at 6:44 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > Hi Silvio, > > I've just checked the record for the feed in our database, and it worked > as

Signals not working as expected

2013-11-28 Thread Aamu Padi
I am trying to create a project for creating feeds/activity feeds of a user with the help of a blog . These are the models - class StreamItem(models.Model): > user = models.ForeignKey(User) >

Re: Admin File CSS Not Working Properly

2013-11-28 Thread Aamu Padi
Ok, you are using WAMP, so Apache as the server. Right? If so, have you tried this command -- manage.py collectstatic And then run the server again. Hope this helped. Cheers! On Fri, Nov 29, 2013 at 2:22 AM, Aamu Padi wrote: > Are you running the development server? > >

Re: Admin File CSS Not Working Properly

2013-11-28 Thread Aamu Padi
Are you running the development server? On Fri, Nov 29, 2013 at 12:30 AM, nagendra palla wrote: > Hi Developers, > >I am new to Django App Development. My part-1 training is completed > successfully. But when i go for part-2, my Admin page is not working > properly.

Re: Problem with clearsession admin command and file based sessions

2013-11-28 Thread Douglas Fraser
well, yes, I see that. But anything relying upon get_expiry_age returning the actual number of seconds left (like in the clearsessions logic) rather than a constant all the time is going to fail in this scenario. If SESSION_EXPIRES_AT_BROWSER_CLOSE is True, that is the global expiry policy

Re: Problem with clearsession admin command and file based sessions

2013-11-28 Thread Tom Evans
On Thu, Nov 28, 2013 at 5:10 PM, Douglas Fraser wrote: > > > On Thursday, November 28, 2013 4:49:37 PM UTC, Douglas Fraser wrote: >> >> Hi, >> >> The website I deal with uses file based sessions, and there is no >> logging in of users or anything like that. Most of the

Re: Problem with clearsession admin command and file based sessions

2013-11-28 Thread Douglas Fraser
On Thursday, November 28, 2013 4:49:37 PM UTC, Douglas Fraser wrote: > > Hi, > > The website I deal with uses file based sessions, and there is no > logging in of users or anything like that. Most of the time, no data is > put into the session, and the session expiry time is not explicitly

How to get the class name of a ContentType in django

2013-11-28 Thread Aamu Padi
How do I get the class name in string of a ContentType? I tried it this way, but it didn't worked out: class StreamItem(models.Model): user = models.ForeignKey(User) content_type = models.ForeignKey(ContentType) object_id = models.PositiveIntegerField() pub_date =

Problem with clearsession admin command and file based sessions

2013-11-28 Thread Douglas Fraser
Hi, The website I deal with uses file based sessions, and there is no logging in of users or anything like that. Most of the time, no data is put into the session, and the session expiry time is not explicitly set in the code. I've set SESSION_COOKIE_AGE to 48 hours, and so I'd expect the

Re: How do I display the human readable name of a choice?

2013-11-28 Thread Vibhu Rishi
you just need to enclose it in a get__display and it will display it in the template file. in your example below, you will need to show it as follows in your templates html file: object.get_state_display where object is whatever the object name you have passed via the view. Hope this helps. V.

Re: discution

2013-11-28 Thread Diogene Laerce
2013/11/27 Assane Ka > je suis sur un projet qui utilise django mais j'ai encore peu d'idée sur le fonctionnement de django ( ses capacités, dans les script python, avec les sgbd, ses

Re: GET and POST in forms. Please help me understand the logic!

2013-11-28 Thread Petr Přikryl
Have a look at the book RESTful Web Services, page 5 (Chapter 1) and on. http://it-ebooks.info/book/391/   You can read it on-line http://it-ebooks.info/read/391/ -- physical page 26/440, section "HTTP: Documents in Envelopes".   Have a nice day,    P.

Re: discution

2013-11-28 Thread Alioune Dia
Hi all ofcourse it exists an python community in french and it exists also an python django community in senegal http://blog.dakarlug.org/ where I supose Amadou is ( I am refering to his University).My opinion is that is it more difficult to understand french than english . Also I recommend

Re: discution

2013-11-28 Thread Rafael E. Ferrero
The original post was on French, my recommendation was both English and French, yours was only on english... so i suppose that your message was for me, Avraham. Avraham, I say "almost" and say "on this group"... off course there are a lot of python and django regional communities, PYAR its my

Re: Trying to run jobs in the background using multiprocessing

2013-11-28 Thread Pau Creixell
Cool, thanks Javier. I will look into the different solutions you suggest. Cheers, Pau On Thursday, November 28, 2013 9:32:15 AM UTC+1, Javier Guerra wrote: > > On Thu, Nov 28, 2013 at 2:42 AM, Pau Creixell > > wrote: > > I guess if there isn't another simpler way, I'll

Re: lambda callable in foreignkey default

2013-11-28 Thread Philippe Raoult
For the record I figured it out but it had nothing to do with the lambda: in my template I have a something like: {{ my_project_lookup_class.classname.get_verbose_name }} lookup_class.classname will the return the django model class, and the template engine apparently checks if the class is

Re: GET and POST in forms. Please help me understand the logic!

2013-11-28 Thread Daniel Roseman
On Thursday, 28 November 2013 03:24:11 UTC, Andrew Taylor wrote: > > Hi, > > I'm struggling with the concepts of get and post and where these status > come from in the workflow. I have worked my way through the official pages > on forms but I have not quite understood this to my satisfaction. >

Re: Trying to run jobs in the background using multiprocessing

2013-11-28 Thread Javier Guerra Giraldez
On Thu, Nov 28, 2013 at 2:42 AM, Pau Creixell wrote: > I guess if there isn't another simpler way, I'll have to dig into Celery. there _are_ simpler alternatives to Celery: - worker threads: similar to your proposal, but with very well-thought process control. pros: no