Re: python virtual environment

2013-11-30 Thread Avraham Serour
you need to activate the virtualenv before using: on windows: env\Scripts\activate on linux: source env/bin/activate On Fri, Nov 29, 2013 at 7:44 PM, tino wrote: > > > Hello > > I am trying to run a project that was setup in another server, but getting > the following error. I am using python 2

Re: Difference between signals and celery

2013-11-30 Thread Avraham Serour
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 Lery wrote: > Thank all so much for you replies. Just one more question though. Does > this means Celery needs a different server? > > >

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

2013-11-30 Thread Timothy W. Cook
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 variable or kwargs in a view and use it in a template. Something like: context['classname'] = type(myinstance) or kwa

Re: How to use primary key as an attribute

2013-11-30 Thread Timothy W. Cook
I'm not sure what you are trying to accomplish. Since the 'pk' field is going to be defined on your instances anyway, do you need a 'thread_pk' field? On Sat, Nov 30, 2013 at 3:38 PM, Aamu Padi wrote: > This may be a lame question, but how do I use the primary key as a default > value for an attr

Re: Finished and Published Tango with Rango Tutorials

2013-11-30 Thread Lee
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 div for the top nav bar. Regarding the Find a category not working, I had the same issue and there was a problem in the tutorial with an extra t

Re: Group subscription management

2013-11-30 Thread Steve Sawyer
Thanks, Felipe. For anyone else who might have trouble with this, go to the My Groups item on the left nav bar which displays the groups of which you're a member. Then click the "Edit Memberships" tab at the top. This will give you a drop-down to manage the subscription for all of your groups.

How to use primary key as an attribute

2013-11-30 Thread Aamu Padi
This may be a lame question, but how do I use the primary key as a default value for an attribute? This is my models.py: *class Thread(models.Model):thread_pk = models.PositiveIntegerField(default=self.pk )* This gives me an error: *self is not defined* How do I go

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

2013-11-30 Thread Aamu Padi
Yes!!! Can I use it as a string in template? On Sat, Nov 30, 2013 at 2:45 PM, Timothy W. Cook wrote: > You can use type() on your instance(s) to find out their model class. > > If you have an instance of the model: > > stream = StreamItem.objects.create(user,ct,oid,pdate) > > Then type(stream)

Re: Difference between signals and celery

2013-11-30 Thread Robin Lery
Thank all so much for you replies. Just one more question though. Does this means Celery needs a different server? On Sat, Nov 30, 2013 at 12:41 AM, Carlos Daniel Ruvalcaba Valenzuela < clsdan...@gmail.com> wrote: > Signals are like events, for example, when the ORM has done an update. > Celery

Re: Group subscription management

2013-11-30 Thread Felipe Brunelli de Andrade
Go to groups.google.com and manage your groups! --- Felipe Brunelli de Andrade http://www.fandrade.com.br/ --- Cel: (16) 98121-5290 Skype: fbruandrade --- 2013/11/30 Steve Sawyer > I am drowni

Group subscription management

2013-11-30 Thread Steve Sawyer
I am drowning in emails, and I can't seem to figure out how to un-subscribe from everything that gets posted to this group. I tried to subscribe just to a daily digest so I only get one email a day, but now I can't even find that setting to turn it off, as it appears to also turn on an echo of

Finished and Published Tango with Rango Tutorials

2013-11-30 Thread Amimo Benja
Hello, I finished the Tango with Rango Tutorials and published the app at amimobenja.pythonanywhere.com/rango/ however it is not working as expected. Check out the site and review the whole whole code at https://github.com/amimobenja/tango_with_django and recommend any necessary changes. --

Re: Email Templates and the full website URL

2013-11-30 Thread Fred Stluka
I had the same problem. Wrote this: def get_web_server_base_url(request, settings_override_name=None): # Allow the value in the settings file to override any computed value. url = None if settings_override_name: url = getattr(settings, settings_override_name, None) if not

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

2013-11-30 Thread Timothy W. Cook
You can use type() on your instance(s) to find out their model class. If you have an instance of the model: stream = StreamItem.objects.create(user,ct,oid,pdate) Then type(stream) should return Is that what you wanted? On Sat, Nov 30, 2013 at 1:14 AM, Simon Charette wrote: > Do you want

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

2013-11-30 Thread Aamu Padi
Yes. Could you kindly please show me how? On Sat, Nov 30, 2013 at 8:44 AM, Simon Charette wrote: > Do you want to retrieve the class name of the model class associated with > a content type? > > Le jeudi 28 novembre 2013 12:04:34 UTC-5, Aamu Padi a écrit : > >> How do I get the class name in str