Re: The view blog.views.create didn't return an HttpResponse object. It returned None instead.can any one help me this issue please nooob here

2017-09-11 Thread Luis Zárate
if request.method == "GET": if request.method == "POST": Uppercase is needed. 2017-09-11 17:36 GMT-06:00 harsh sharma : > here i m learning django and i m stuck on one thing > the web page returning > > The view blog.views.create didn't return an HttpResponse

The view blog.views.create didn't return an HttpResponse object. It returned None instead.can any one help me this issue please nooob here

2017-09-11 Thread harsh sharma
here i m learning django and i m stuck on one thing the web page returning The view blog.views.create didn't return an HttpResponse object. It returned None instead. and here is my views.py file def home(request): story = Story.objects.all() return

Revert database scheme based on django migrations

2017-09-11 Thread Luis Zárate
Hello people, I really would like you to help me with some thing I need to solve. I have an app that do automated deployment of django apps, that also can update existing deployments. So I need to revert my database to last state if something went wrong. So, my question is, how can I revert all

Re: type object 'Story' has no attribute 'object'

2017-09-11 Thread harsh sharma
Thanks for helping -- 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

Re: setup.py for Django project?

2017-09-11 Thread Scot Hacker
Thanks for the feedback everyone. Good to get some real-world input on non-standard approaches like this. I'm going to try and steer the project away from it. And I agree that manage.py and setup.py are not interchangeable at all - especially since not everything *goes* through manage.py. ./s

Re: type object 'Story' has no attribute 'object'

2017-09-11 Thread SHAILESH NEGI
objects it is On Mon, Sep 11, 2017 at 4:26 PM, harsh sharma wrote: > why i m getting this > error :-type object 'Story' has no attribute 'object' > > > this is my views.py file: > > from django.shortcuts import render,render_to_response > from django.http import

Re: I am getting an error that django core commands are listed as settings are not properly configured

2017-09-11 Thread Jani Tiainen
Hi. Information you provided isn't much. What you tried to do to get that error. And please don't paste images or binary files they're quite hard to handle on certain devices. 11.9.2017 17.21 "margana harika" kirjoitti: > I am getting the error which i have shown in

bad request(400)

2017-09-11 Thread Pankaj -
I am getting below error while launching host ip -- 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

Re: Retrieving objects created in trasaction

2017-09-11 Thread Александр Христюхин (roboslone)
Thanks to everyone and sorry for the delay, I've missed your responses. I've tried to use transaction.on_commit, it didn't work for me. For some strange reason Django thought the code wasn't running in a transaction. I'm using Django 1.10 and PostgreSQL 9.6. Bar uses standard manager and yes, I

Re: type object 'Story' has no attribute 'object'

2017-09-11 Thread James Schneider
On Sep 11, 2017 7:20 AM, "harsh sharma" wrote: why i m getting this error :-type object 'Story' has no attribute 'object' this is my views.py file: from django.shortcuts import render,render_to_response from django.http import HttpResponseRedirect from

Re: Django Documentation 1.7 shows "django-admin.py" whereas it should be "django-admin"

2017-09-11 Thread Deep Sukhwani
The answer is in the first post in this thread! -- Regards Deep L Sukhwani On 11 September 2017 at 10:51, margana harika wrote: > > hello sir, >even i got the same problem can you just tell me how did > you solve this please!! > > -- > You received

Re: Django Documentation 1.7 shows "django-admin.py" whereas it should be "django-admin"

2017-09-11 Thread margana harika
hello sir, even i got the same problem can you just tell me how did you solve this please!! -- 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

type object 'Story' has no attribute 'object'

2017-09-11 Thread harsh sharma
why i m getting this error :-type object 'Story' has no attribute 'object' this is my views.py file: from django.shortcuts import render,render_to_response from django.http import HttpResponseRedirect from django.template import RequestContext from .models import * from django.http import

Django runserver not working after installing redis for django channels

2017-09-11 Thread Artem Malyshev
Hi, Please check your redis installation. It should be at least minimum required version by redis-py. Regards, Artem. -- 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

Django runserver not working after installing redis for django channels

2017-09-11 Thread Robin Lery
I am learning the Django-channels concepts and I am stuck when after install the asgi_redis and the redis server . If I have the CHANNEL_LAYERS configured

Jquery datepicker in a django form

2017-09-11 Thread giuseppe ricci
Hi guys, I need to insert 2 datapicker in a django form. I have not a form.py file. My views.py related to the datepicker: class DatePicker(forms.DateInput): template_name = 'dkey.html' class Media: js = ( 'js/jquery.min.js', 'js/jquery-ui.min.js', ) css = { 'all': ( 'css/jquery-ui.css', ) }