Re: Need help for saving JSON object into Django Model (class object)

2018-09-04 Thread Sonali Vighne
Thanks I will try it. On Tuesday, September 4, 2018 at 8:29:58 PM UTC+5:30, pgopa...@gmail.com wrote: > > # Please try to use this logic in your views.py file. > # first extract the data from the request > > question_text = request.data['question_text'] > pub_date = request.data['pub_date ']

Re: Implementing a django cart using Django cart module Error: unhashable type dict

2018-09-04 Thread carl collins
Thanks Gopal On Tue, Sep 4, 2018 at 4:12 PM wrote: > Dear Carl, >> > > I'm sorry, I've no idea what the Cart is. I'm assuming that it is a > class which can be instantiated with some dictionary data. > So you try passing request.data instead of just request to the Cart. > > Try to check by p

mysqlclient is already installed but it will give an error,please help

2018-09-04 Thread Deepak Kumar jha
deepak@deepak-HP-Pavilion-x360-Convertible:~/Desktop/mini_project/tutor$ python manage.py runserver Unhandled exception in thread started by .wrapper at 0x7f1f1d2e5b70> Traceback (most recent call last): File "/home/deepak/.local/lib/python3.6/site-packages/django/db/utils.py", line 110, in lo

Re: saleor error NoReverseMatch at /en/

2018-09-04 Thread TimT Vogt
All good now! Thanx! Verstuurd vanaf mijn iPhone > Op 4 sep. 2018 om 15:41 heeft RONAK JAIN het > volgende geschreven: > > I think should be there cot's issues look like that you should right there: > > > > > Thanks > Ronak Jain > >> On Tue, Sep 4, 2018 at 6:44 PM Ravi Kiran Katukam

Re: relation "polls_article" does not exist

2018-09-04 Thread Dario Heinisch
You need to run python manage.py migrate. The database tables do not exists. > On 4. Sep 2018, at 21:10, xcode101 wrote: > > Any gist file we could check it out? Sorry to hear that you've been at this > for days. > The piece of code accessing polls_article. > > On Tuesday, 4 September 2018 2

Re: relation "polls_article" does not exist

2018-09-04 Thread xcode101
Any gist file we could check it out? Sorry to hear that you've been at this for days. The piece of code accessing polls_article. On Tuesday, 4 September 2018 20:15:14 UTC+3, Sandy Leon wrote: > > Hello everyone, I have been using Heroku to try and deploy my Django site. > When running the comman

Re: relation "polls_article" does not exist

2018-09-04 Thread xcode101
Any gist file we could check it out? On Tuesday, 4 September 2018 20:15:14 UTC+3, Sandy Leon wrote: > > Hello everyone, I have been using Heroku to try and deploy my Django site. > When running the command 'heroku open' Django gives me this error > > > Environment: > > > Request Method: GET > Re

Re: saleor error NoReverseMatch at /en/

2018-09-04 Thread Kasper Laudrup
Hi Ravi, On 04/09/2018 14.42, Ravi Kiran Katukam wrote: any one developed kivy app for enterprise needs along with django web need help There might be someone here who has experience with that, but why not ask for help in the appropriate mailing list. This seems to be the one: https://gr

relation "polls_article" does not exist

2018-09-04 Thread Sandy Leon
Hello everyone, I have been using Heroku to try and deploy my Django site. When running the command 'heroku open' Django gives me this error Environment: Request Method: GET Request URL: https://secure-waters-81472.herokuapp.com/ Django Version: 2.0 Python Version: 3.6.6 Installed Applications

Trying to understand Long Polling using Channel 2

2018-09-04 Thread xcode101
Channels has to be one of the great libs I've used. However didn't find enough examples on how to implement long polling. So according to my understanding is that when request is received the " LongPollConsumer" consumer handler function send a "don't close body" by using more_body=True param.

Channels 2 on AWS Elastic Beanstalk

2018-09-04 Thread Carlos Zillner
It works on my localhost. But when I deploy on AWS ElasticBeanstalk, I get this error: Traceback (most recent call last): File "/opt/python/run/venv/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner response = get_response(request) File "/opt/python/run

Re: Implementing a django cart using Django cart module Error: unhashable type dict

2018-09-04 Thread pgopal1166
> > Dear Carl, > I'm sorry, I've no idea what the Cart is. I'm assuming that it is a class which can be instantiated with some dictionary data. So you try passing request.data instead of just request to the Cart. Try to check by printing request.data, it'll be a dict. FYI you can check the

Re: Need help for saving JSON object into Django Model (class object)

2018-09-04 Thread pgopal1166
# Please try to use this logic in your views.py file. # first extract the data from the request question_text = request.data['question_text'] pub_date = request.data['pub_date '] #Then store this data in your model. Question.objects.create(question_text =question_text , pub_date = pub_date )

Re: How can i modify the base_site.html Template?

2018-09-04 Thread gustavorzs88
THANKS El lunes, 3 de septiembre de 2018, 11:04:33 (UTC-4), gustav...@gmail.com escribió: > > Hello, i want to change de title and the default text in the header of the > Django-Admin site but i don´t know do that. > -- You received this message because you are subscribed to the Google Groups

Re: Trying to build a cart using django cart. "" error unhashable type dict ""

2018-09-04 Thread Julio Biason
Hi Carl, The problem seems to be the use of `get_template`: https://docs.djangoproject.com/en/2.1/topics/templates/#usage The second parameter (the one you're using a dict) is not the values to pass to the template, but the name of the template engine to be used. I'd suggest using `render` ( htt

Re: saleor error NoReverseMatch at /en/

2018-09-04 Thread RONAK JAIN
I think should be there cot's issues look like that you should right there: Thanks Ronak Jain On Tue, Sep 4, 2018 at 6:44 PM Ravi Kiran Katukam wrote: > any one developed kivy app for enterprise needs along with django web > need help > > On Tue, Sep 4, 2018 at 5:46 PM, Julio Biason > wro

Re: Trying to update pip in a venv enviroment using python 3.7 but an error occur.

2018-09-04 Thread RONAK JAIN
I am not getting What you want install there ? On Tue, Sep 4, 2018 at 6:44 PM Christian Haugland < haugland.christ...@gmail.com> wrote: > this is the output i get using python 3.7: any idea? > > (venv) D:\Code\CompanyVTC\venv\Scripts>python -m pip install --upgrade pip > Collecting pip > Using

Re: Trying to build a cart using django cart. "" error unhashable type dict ""

2018-09-04 Thread RONAK JAIN
Are you not using class ? On Tue, Sep 4, 2018 at 6:44 PM carl collins wrote: > Here is the code for view.py in my cart app please help(also see the > screenshot): > > > from django.template import loader > from django.http import HttpResponse > from django.template.loader import render_to_strin

Re: Need help for saving JSON object into Django Model (class object)

2018-09-04 Thread RONAK JAIN
hello Sonali Please use: python manage.py makemigrations python manage.py migrate Thanks Ronak Jain On Tue, Sep 4, 2018 at 5:52 PM Sonali Vighne wrote: > Hi, > I have create a model > > Models.py > > from django.db import models > import datetime > from django.utils import timezone > > class

Trying to update pip in a venv enviroment using python 3.7 but an error occur.

2018-09-04 Thread Christian Haugland
this is the output i get using python 3.7: any idea? (venv) D:\Code\CompanyVTC\venv\Scripts>python -m pip install --upgrade pip Collecting pip Using cached https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl In

Trying to build a cart using django cart. "" error unhashable type dict ""

2018-09-04 Thread carl collins
Here is the code for view.py in my cart app please help(also see the screenshot): from django.template import loader from django.http import HttpResponse from django.template.loader import render_to_string import django.template.loader from cart.cart import Cart from .models import Product

Re: saleor error NoReverseMatch at /en/

2018-09-04 Thread Ravi Kiran Katukam
any one developed kivy app for enterprise needs along with django web need help On Tue, Sep 4, 2018 at 5:46 PM, Julio Biason wrote: > Hey Tim, > > Are you sure your view is defined with spaces in the urls.py? Shouldn't it > be {% url 'manifest' %} instead, with no spaces around the name? > > O

Implementing a django cart using Django cart module Error: unhashable type dict

2018-09-04 Thread carl collins
from django.template import loader from django.http import HttpResponse from django.template.loader import render_to_string import django.template.loader # Create your views here. # Create your views here. from cart.cart import Cart from .models import Product '''from cart.models import Category,

System check Framework error checking Admin Fieldsets in 2.1

2018-09-04 Thread Richard E. Cooke
This Field set definition: fieldsets = ( ('Job Work Sheet', { 'fields': ( ('number', 'job_history', 'hw_customer',), ('status', 'contracted_out',), ('adn_parts_required', 'atn_required', 'atn_tech', 'cancel_job',

Need help for saving JSON object into Django Model (class object)

2018-09-04 Thread Sonali Vighne
Hi, I have create a model Models.py from django.db import models import datetime from django.utils import timezone class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __str__(self): return self

Re: saleor error NoReverseMatch at /en/

2018-09-04 Thread Julio Biason
Hey Tim, Are you sure your view is defined with spaces in the urls.py? Shouldn't it be {% url 'manifest' %} instead, with no spaces around the name? On Tue, Sep 4, 2018 at 6:28 AM, Tim Vogt (Tim Vogt) wrote: > I have made saleor local > > after restart I get this error > > Tried to change the “

saleor error NoReverseMatch at /en/

2018-09-04 Thread Tim Vogt (Tim Vogt)
I have made saleor local after restart I get this error Tried to change the “ “ into ‘ ‘ bout before it worked. Any tips how to solve this? Tim NoReverseMatch at /en/ Reverse for ' manifest ' not found. ' manifest ' is not a valid view function or pattern name. Request Method: GET Request URL

Re: Language code twice in url

2018-09-04 Thread RONAK JAIN
I am not getting direct error because more time you will get this type of error if you want to solve this one we can do connect on team viewer and then Maybe, I will solve your error. Thanks Ronak Jain On Tue, Sep 4, 2018 at 1:49 PM Kaelig wrote: > Debug is already set to True.. Even if I onl

Re: Language code twice in url

2018-09-04 Thread Kaelig
Why is it working with a GET and not a POST if my url mapping is wrong ?? Le mardi 4 septembre 2018 10:19:32 UTC+2, Kaelig a écrit : > > Debug is already set to True.. Even if I only put one url in urlpatterns, > I get this error. I don't think it's from a wrong url mapping. It looks > like the

Re: Language code twice in url

2018-09-04 Thread Kaelig
Debug is already set to True.. Even if I only put one url in urlpatterns, I get this error. I don't think it's from a wrong url mapping. It looks like the path is empty even if it should not (it should be /aves/ in this case) Le mardi 4 septembre 2018 10:13:59 UTC+2, RONAK JAIN a écrit : > > oka

Re: Language code twice in url

2018-09-04 Thread RONAK JAIN
okay one more thing you can do please go to settings and look there option DEBUG=False please do True. On Tue, Sep 4, 2018 at 1:41 PM Kaelig wrote: > [image: error_message.png] > > Here is the error message I get > > -- > You received this message because you are subscribed to the Google Groups

Re: Language code twice in url

2018-09-04 Thread RONAK JAIN
Please analyse your url mapping in django.. Thanks On Tue, Sep 4, 2018 at 1:40 PM Kaelig wrote: > [image: error_message.png] > > Here is the error message I got from debug > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe

Re: Language code twice in url

2018-09-04 Thread Kaelig
[image: error_message.png] Here is the error message I get -- 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

Re: Language code twice in url

2018-09-04 Thread Kaelig
[image: error_message.png] Here is the error message I got from debug -- 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.c

Re: Django configuration settings

2018-09-04 Thread Andréas Kühne
Hi, You should not run django from inside the packages directory. If you want to install and run django - try to check one of the tutorials - I recommend either the official tutorial: https://docs.djangoproject.com/en/2.1/intro/tutorial01/ Or the django girls tutorial: https://tutorial.djangogirl

Re: Trouble installing Django

2018-09-04 Thread PASCUAL Eric
Hi Phil, As suggested by other posters, creating a virtualenv is the safest way to work with Python, since it avoids tampering with the system level installation (f.i. several Linux distros use Python for a lot of their system tools in nowadays versions) and it lets you have customized environ

Re: Hi

2018-09-04 Thread Devender Kumar
There are few things to keep in mind while playing with images 1. media url in setting file 2. upload_to field in model 3 enctype="multipart/form-data" in form tag. Enjoy Dev On Mon, Sep 3, 2018 at 10:44 PM Mohammad Aqib wrote: > Add below line into your model. > > image = models.ImageField(upl

Re: How can i modify the base_site.html Template?

2018-09-04 Thread Devender Kumar
Don't modify the base_site.html instead you should override the method or fuctions which will be good practice On Tue, Sep 4, 2018 at 11:50 AM victor jack wrote: > *Ok i see, you create an admin folder in your template folder then create > a base_site.html and an index. html file , these file wi

Re: Trouble installing Django

2018-09-04 Thread Devender Kumar
If you wanna install across the system then just Use *root user *Or* sudo **pip install **Django* . this is install the django in your system. but Best practices is to use special env If you need any help installing django with env reply me i will help in that. Thanks enjoy Dev On Mon, Sep 3, 2018