Re: Finished and Published Tango with Rango Tutorials

2013-12-01 Thread Amimo Benja
Yeah, that's what I also thought... I will update the recommended changes... Thanks Lee. On Sat, Nov 30, 2013 at 11:09 PM, Lee wrote: > Presumably you are talking about the left menu being broken and the 'Find > a category' not working? > > For the first, looks like you are missing a closing di

Re: Inconsistent Django test results depending upon how the test is called in Django 1.5.1 running on Python 2.7.4

2013-12-01 Thread Russell Keith-Magee
On Mon, Dec 2, 2013 at 8:24 AM, Paul Whipp wrote: > I have test cases that pass when tested individually, pass when the full > app is tested but fail when the tests for the entire project are run: > > (lsapi)~ $ django test > Creating test database for alias 'default'... > ...

Re: python virtual environment

2013-12-01 Thread Paul Whipp
Looks like you already have an active virtual environment but those instructions only install a few default things (like Django) into that environment. Therefore it sounds like your new virtual environment does not have all of the required python modules installed in it. There should be a requ

Inconsistent Django test results depending upon how the test is called in Django 1.5.1 running on Python 2.7.4

2013-12-01 Thread Paul Whipp
I have test cases that pass when tested individually, pass when the full app is tested but fail when the tests for the entire project are run: (lsapi)~ $ django test Creating test database for alias 'default'... ...

Re: Can i Use history.js in Django?

2013-12-01 Thread Scot Hacker
On Sunday, December 1, 2013 4:21:33 AM UTC-8, Robert Jonathan Šimon wrote: > > Hello everyone, > I want to use history.js on one page in my website, where there will be a > photo gallery, and I want to know before I will write the code, if it can > be done, and if so is there any problem with it

Re: Difference between signals and celery

2013-12-01 Thread fchow
Question: If a view saves a model that has a post-save hook, does the view return after the post-save hook has completed? Or does the view return and the hook runs in the background like a celery task would? On Friday, November 29, 2013 10:52:04 AM UTC-8, Robin Lery wrote: > > This may be a l

Re: auto populating the fields in the models

2013-12-01 Thread Aamu Padi
Yes, that's what I was looking for, the save method. Can you please kindly show me how, so that I don't have to create a new thread first or create a new set of ThreadParticipants. I just want it to be on the background, so that all I have to do is create a message and send it to the user. Thank yo

Re: auto populating the fields in the models

2013-12-01 Thread Rafael E. Ferrero
sorry my previous message... it was not quite clear... here again: 2013/12/1 Rafael E. Ferrero > IMHO with this design you first need an user and a thread to create a new > message. > > In the admin interface you gonna look a + button to create a user and > other to create a thread. > OR Yo

Re: auto populating the fields in the models

2013-12-01 Thread Rafael E. Ferrero
IMHO with this design you first need an user and a thread to create a new message. In the admin interface you gonna look a + button to create a user and other to create a thread. For example class Message(models.Model): thread = models.ForeignKey(Thread) sent_date = models.DateTimeField(d

auto populating the fields in the models

2013-12-01 Thread Aamu Padi
Hello, please have a look at my models.py. *models.py:* > class Thread(models.Model): > pass > > class ThreadParticipant(models.Model): > thread = models.ForeignKey(Thread) > user = models.ForeignKey(User) > > class Message(models.Model): > thread = models.ForeignKey(Thread) >

Re: How to use primary key as an attribute

2013-12-01 Thread Aamu Padi
You are really are a life saver. Thank you so much sir. I have posted a more specific question. Please kindly have a look at it. Thank you. On Sun, Dec 1, 2013 at 5:09 PM, Timothy W. Cook wrote: > If I understand what you are building. You want some way to group > messages into threads? I assu

Django Weekend Cardiff - call for papers

2013-12-01 Thread Daniele Procida
Django Weekend Cardiff - the first-ever Django conference in the UK - will take place from the 7th to the 9th February 2014, for three days of talks, tutorials, code sprints and clinics. The conference is Django-focused, but all aspects of Python fall within its r

Can i Use history.js in Django?

2013-12-01 Thread Robert Jonathan Šimon
Hello everyone, I want to use history.js on one page in my website, where there will be a photo gallery, and I want to know before I will write the code, if it can be done, and if so is there any problem with it? -- You received this message because you are subscribed to the Google Groups "Dj

Re: How to get the class name of a ContentType in django

2013-12-01 Thread Timothy W. Cook
Be sure to post the results back here for the archive so others may find it in searches. On Sun, Dec 1, 2013 at 8:32 AM, Aamu Padi wrote: > Ok, I will try it! Thank you so very much!!! > > > On Sun, Dec 1, 2013 at 3:41 AM, Timothy W. Cook wrote: >> >> On Sat, Nov 30, 2013 at 3:37 PM, Aamu Padi

Re: How to use primary key as an attribute

2013-12-01 Thread Timothy W. Cook
If I understand what you are building. You want some way to group messages into threads? I assume that a Thread will have many messages? Unless I am missing something you might want something like this: class Thread(models.Model): subject = models.CharField(max_length=256) class Message(mod

Re: How to get the class name of a ContentType in django

2013-12-01 Thread Aamu Padi
Ok, I will try it! Thank you so very much!!! On Sun, Dec 1, 2013 at 3:41 AM, Timothy W. Cook wrote: > On Sat, Nov 30, 2013 at 3:37 PM, Aamu Padi wrote: > > Yes!!! Can I use it as a string in template? > > > > > I haven't tested it but it seems you should be able to assign it to a > context var

Re: How to use primary key as an attribute

2013-12-01 Thread Aamu Padi
Actually I need to use *Thread* class in other class as a ForeignKey. Here is the whole code: class Thread(models.Model): thread_pk = models.PositiveIntegerField(default=self.pk) class ThreadParticipant(models.Model): thread = models.ForeignKey(Thread) user = models.ForeignKey(User)

Re: Difference between signals and celery

2013-12-01 Thread Robin Lery
oh..ok. Thank you so much! :) Its really great to learn something new. On Sun, Dec 1, 2013 at 7:42 AM, Avraham Serour wrote: > No, you can run celery from the same server, the problem is you won't be > able to do that on many cheap shared hostings > > > On Sat, Nov 30, 2013 at 7:35 PM, Robin