Re: __unicode__() addition not working in basic poll application.

2014-01-12 Thread shmengie
trojactory has the right idea. __unicode__ has two underscores on either side of _ _ unicode _ _ If you don't spell __unicode__ with two underscores on both sides, you are not overriding the default method __unicode__ You are getting the default output for __unicode__ instead of the expected.

Re: using success_url

2014-01-12 Thread shmengie
On Friday, January 10, 2014 2:36:56 PM UTC-5, Brad Rice wrote: > > I can't seem to find success using success_url > > If I try this in my urls.py file > > url(r'^step2/', AnswersCreate.as_view(success_url='/requestform/success'), > name='answers'), > > and then in my view: > class AnswersCreate

Re: nginx server not reflecting changes

2014-01-12 Thread Manu
Try to reload nginx. sudo nginx -s reload or stop it and restart sudo nginx -s stop > sudo nginx if it's still not reflecting those changes, check which settings.py is being used by runserver and the gunicorn. Or, the problem could be that you have to restart gunicorn sudo supervisorctl r

app to record and play video

2014-01-12 Thread Piyush D
Hi, I'm trying to build an app that records videos using webcam and plays it on demand. Are there any resources/documentations on how to do this in Django? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: app to record and play video

2014-01-12 Thread Mike Dewhirst
On 13/01/2014 5:05am, Piyush D wrote: Hi, I'm trying to build an app that records videos using webcam and plays it on demand. Are there any resources/documentations on how to do this in Django? Look at https://docs.djangoproject.com/en/1.6/ref/models/fields/#filefield which indicates how to c

Having problems installing Heroku database

2014-01-12 Thread Scott Meyers
Trying to get started with Django. My tutorial tells me to run pip install dj-database-url. When I do that, I get: postgres@precise64:/vagrant/projects2/microblog$ pip install dj-database-url Downloading/unpacking dj-database-url Cannot fetch index base URL http://pypi.python.org/simple/ Could