Having problems installing Heroku database
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 not find any downloads that satisfy the requirement dj-database-url No distributions at all found for dj-database-url Storing complete log in /var/lib/postgresql/.pip/pip.log Any suggestions would be greatly appreciated! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/45c46fbb-b224-4a8c-87b1-e8db8e97785d%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: app to record and play video
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 collect and store files. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6e5b36f5-f69b-4403-b59d-aff08d5744cc%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/52D33C7F.1000506%40dewhirst.com.au. For more options, visit https://groups.google.com/groups/opt_out.
app to record and play video
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 receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6e5b36f5-f69b-4403-b59d-aff08d5744cc%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: nginx server not reflecting changes
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 restart [gunicorn-program-name] if you changed media root and static root settings then you have to point nginx to the right location of those assets in nginx site configuration. i.e. in the file that you create inside /etc/nginx/sites-enabled/ for your app. Hope you can resolve it. Best, On Sunday, 12 January 2014 00:09:19 UTC+5:30, sandy wrote: > > Hello, > I have deployed my Django site with nginx server, gunicorn and supervisor > and it is working fine. But recently I made some changes in settings file > of the project and that changes are not visible on the nginx server, > however same changes reflect on runserver. > What can be the possible reason for this? > > -- > Sandeep Kaur > E-Mail: mkaur...@gmail.com > Blog: sandymadaan.wordpress.com > > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7103da99-b12e-4f5f-b98a-34e7c1c741d9%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: using success_url
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(CreateView): success_url = '/requstform/success' model=myModel ... > def form_valid(self, form): > obj = form.save(commit=False) > obj.created_by = self.request.user > obj.save() > return HttpResponseRedirect(self.get_success_url()) > A mixin may be necessary, to provide get_success_url method added to the class. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f5490254-6cbc-4beb-90f7-92549268d731%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: __unicode__() addition not working in basic poll application.
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. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b566b0d6-6db0-4258-8038-83a945029c5d%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.