can anyone help me to solve the following error in django-vue integration

2019-08-01 Thread Pradeep Singh
F:\django-vue project\djangoVueProject\frontend\webpack.config.js:81 'vue$': 'vue/dist/vue.esm.js' ^ SyntaxError: Unexpected token : at Module._compile (internal/modules/cjs/loader.js:721:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at

CustomAuthToken

2019-08-01 Thread shubham joshi
With reference to the documentation, https://www.django-rest-framework.org/api-guide/authentication/#how-authentication-is-determined I was trying to use CustomAuthToken, in my app view and import it in url from rest_framework.authtoken.views import ObtainAuthTokenfrom

ValueError at /products/

2019-08-01 Thread Olawumi Fadero
Environment: Request Method: GET Request URL: http://127.0.0.1:8000/products/ Django Version: 2.1 Python Version: 3.7.4 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages',

Re: Deleting a record exactly once

2019-08-01 Thread Adam Parsons
Hi Ian, There's a few things you could try out. You could employ locking in your database, so that two workers cannot interact with the same row at the same time. Step 4, sever B no-op'ing implies you're already using a technique to require unique values in Records, perhaps apply the same

Deleting a record exactly once

2019-08-01 Thread Ian Hoffman
Hi everyone, I work on a medium-sized app where we might have tens of concurrent requests in flight at once. The application runs on Django 1.11, Python 3.5. The problem I have is this: the web client requests to delete a record. On a successful delete, the app creates an "audit" record

Re: Problem with migrating a fresh db - jango.db.utils.ProgrammingError: column "structure_depth" specified more than once

2019-08-01 Thread Marius Räsener
Hey again, so to solve this case, a guy from our local user group had the solution, which involved of course our custom Field. changing contribute_to_class to the following changes it. If you have an understanding if the two setattr() are needed, please reply :) def

Re: Recreating SQL query in ORM

2019-08-01 Thread Jonathan Spicer
Thanks Simon, that's a great help. On Wednesday, 31 July 2019 15:03:55 UTC+1, Simon Charette wrote: > > Hello, > > assuming you have a FullMatch model mapped to your FullMatches table > the following should do. > > FullMatch.objects.filter( > job_id=job_id, > ).values( >

Python and Django dev available

2019-08-01 Thread Sithembewena L. Dube
Hi everyone, I'm a developer with just over 10 years' experience under my belt. I've worked with many languages and frameworks, including the popular Django web framework. I'm currently in the market for remote opportunities. Please reply if looking for a resource. Serious enquiries only please.

ji18n question

2019-08-01 Thread Yves de Champlain
Hi I have this error : File "/opt/miniconda/envs/cert_tool/lib/python3.7/gettext.py" in _tokenize 93. raise ValueError('invalid token in plural form: %s' % value) Exception Type: ValueError at /editor/jsi18n/ Exception Value: invalid token in plural form: EXPRESSION The problem

I think I've found a bug in the Dev server

2019-08-01 Thread Isaac Way
If I send a request to an invalid URL, the NEXT request sent to that URL is processed incorrectly by Django. I've ruled out any client side shenanigans I've detailed it in a stack overflow question:

Re: django-vue

2019-08-01 Thread niranjan shukla
hey > you know how to build the following/unfollowing system in django for >> social site > > -- 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

Re: django-vue

2019-08-01 Thread Sam W
*Udemy * The Complete Guide to Django REST Framework and Vue JS https://www.udemy.com/the-complete-guide-to-django-rest-framework-and-vue-js/ On Thursday, August 1, 2019 at 2:46:10 AM UTC-5, Pradeep Singh wrote: > > can anyone sugget me django-vue tutorial > -- You received this message

HERE ANYONE KNOW DJANGO-FRIENDSHIP

2019-08-01 Thread niranjan shukla
So please help me in using it -- 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 view this discussion on the web

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Lim Kai Wey
Glad it all worked out. Good luck at your journey. -- 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 view this

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Franck Tchouanga
coool am glad it was helpful. Welcome . On Thu, Aug 1, 2019 at 12:13 PM Sammy Agrawal wrote: > Thank you all so much! Franck's suggestion did it and now I'm further > along on my Django journey! > > On Thu, Aug 1, 2019 at 6:42 AM Lim Kai Wey wrote: > >> Besides that, I do recommend

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Franck Tchouanga
Yes, so respect the syntaxes exactly it is written by default in django, its a better practice to avoid unwanted errors. Just need to give modification depending on the project you created On Thu, Aug 1, 2019 at 12:07 PM Nde Nguti wrote: > Just out of curiosity, Python is case sensitive. The

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Rana Sarkar
You check your app name ,then check Include ('appname.urls') U also create urls.py inside your app. On Thu, Aug 1, 2019, 17:07 Sunny Kumar wrote: > Hi, > > I also having the same problem. And the actual reason was *(poll instead > of polls). *Please check once in your view or url file. I am

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Sammy Agrawal
Thank you all so much! Franck's suggestion did it and now I'm further along on my Django journey! On Thu, Aug 1, 2019 at 6:42 AM Lim Kai Wey wrote: > Besides that, I do recommend Morzilla's Django Tutorial too, as it covers > more in the tutorial compared to Django's own tutorial. > > Link: > >

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Nde Nguti
Just out of curiosity, Python is case sensitive. The function names, 'path' and variable 'urlpatterns'. I have gone through the tutorials with no problem. On Thu, Aug 1, 2019, 11:04 Franck Tchouanga wrote: > Firstly in your mysite/mysite/URLs.py in the url patterns portion instead > type this

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Sunny Kumar
Hi, I also having the same problem. And the actual reason was *(poll instead of polls). *Please check once in your view or url file. I am sure you also having the same issue. [image: Mailtrack] Sender

Re: Document flow between parties

2019-08-01 Thread Kean Dumba
Hi Mike, Thanks you for the direction. II’m new to django and python, So will have to read-up on how to utilise this resource, before Iearning and applying. As a newbie, I’m really enjoying my journey in programming, Best, K On Thu, 1 Aug 2019 at 07:14, Mike Dewhirst wrote: > On 1/08/2019

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Lim Kai Wey
Besides that, I do recommend Morzilla's Django Tutorial too, as it covers more in the tutorial compared to Django's own tutorial. Link: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website Regards, Kai Wey On Thu, Aug 1, 2019 at 6:35 PM Lim Kai Wey

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Lim Kai Wey
I do agree that you Sammy could try changing the mysite/mysite/setting.py INSTALLED_APPS=[ 'polls.apps.PollsConfig', The rest of the code """ ] And I too was wondering if he placed 'polls/' as his URL in mysite/polls/urls.py that cause the

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Franck Tchouanga
I wanted to precise at the level of the syntax from what I wrote above Urlpatterns = [ Path(' ',include('polls.URLs')), Path('admin/', admin.site.urls), ] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Franck Tchouanga
In the mysite/mysite/setting.py do as follows INSTALLED_APPS=[ 'Polls.apps.pollsConfig', The rest of the code """ ] So you should erase the polls you wrote at the end. Hope will be helpful waiting for your feedbacks -- You received this

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Franck Tchouanga
Firstly in your mysite/mysite/URLs.py in the url patterns portion instead type this Urlpatterns=[ Path('',include ('polls.URLs')), Path('admin/',admin.site.URLs), ] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Franck Tchouanga
Got the solution to your problem -- 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 view this discussion on the web

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
他说,他要在他社交网站弄个 用户关注 -- 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 view this discussion on the web visit

Re: Error arises again and again\

2019-08-01 Thread niranjan shukla
> > I want to build user following system in Django for my social site > I want to build user following system in Django for my social site -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
我找了一篇帖子 主要讲如何在django 中使用ajax 来实现前端和后端的通信。 可以参考一下这篇帖子 https://blog.csdn.net/IqqIqqIqqIqq/article/details/52160662 当然这篇帖子中有一部分内容是中文。但是代码逻辑是相同的。 Translate: I found an article, that mainly teaches the backend and frontend between Django and Ajax. Although the article is in mandarin, but the logic of

Re: Error arises again and again\

2019-08-01 Thread 胡超
多谢了 兄弟: 我找了一篇帖子 主要讲如何在django 中使用ajax 来实现前端和后端的通信。 可以参考一下这篇帖子 https://blog.csdn.net/IqqIqqIqqIqq/article/details/52160662 当然这篇帖子中有一部分内容是中文。但是代码逻辑是相同的。 帮我翻译。幸苦了兄弟。 > 在 2019年8月1日,下午5:31,Lim Kai Wey 写道: > > 他还有问要怎么弄才行。 > > --

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
他还有问要怎么弄才行。 -- 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 view this discussion on the web visit

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
> > I want to build the follow system in my website how i can do that >> > beacuse i am using that ajax so that i can > building follow system > and i am learning from https://learning.oreilly.com/library/view/django-2-by/9781788472487/d61f6f4a-a9f1-4f9f-b0eb-18ae1518a2dd.xhtml 翻译:

Django security releases issued: 2.2.4, 2.1.11, and 1.11.23.

2019-08-01 Thread Carlton Gibson
Today the Django team issued 2.2.4, 2.1.11, and 1.11.23 as part of our security process. These releases address security issues, and we encourage all users to upgrade as soon as possible: https://www.djangoproject.com/weblog/2019/aug/01/security-releases/ -- You received this message because

Re: Error arises again and again\

2019-08-01 Thread niranjan shukla
> > I want to build the follow system in my website how i can do that >> > beacuse i am using that ajax so that i can building follow system > and i am learning from https://learning.oreilly.com/library/view/django-2-by/9781788472487/d61f6f4a-a9f1-4f9f-b0eb-18ae1518a2dd.xhtml -- You

Re: Error arises again and again\

2019-08-01 Thread niranjan shukla
> > I want to build the follow system in my website how i can do that > beacuse i am using that ajax so that i can building follow system -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
请翻译 : 问题是由于python2.7 和python3.6 之间的版本差异导致的。 这位小兄弟在使用python3.6 的版本。加载一个python2.7 版本的包。django-common。 需要寻找这个包的python3.6 版本, 如果没有这个版本的话 就需要寻找其他的解决方案。 Translates: The problem is due to the difference between the Python version 2.7 and 3.6. Because you’re using Python 3.6, you’ll have to have another

Re: Error arises again and again\

2019-08-01 Thread niranjan shukla
Yes translate and share with us please and how I can talk with you if I got another error -- 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

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
哈哈哈 我真不介意,大家都来这学习嘛。互相帮忙是应该的。 Translation: I really don’t mind translating, this is where we all learn. It’s a must to help each other out. Ps. The three letters he said translate that I’m a nice person Regards, Kai Wey -- You received this message because you are subscribed to the Google

Re: Error arises again and again\

2019-08-01 Thread 胡超
多谢了。兄弟 ,请翻译 : 问题是由于python2.7 和python3.6 之间的版本差异导致的。 这位小兄弟在使用python3.6 的版本。加载一个python2.7 版本的包。django-common。 需要寻找这个包的python3.6 版本, 如果没有这个版本的话 就需要寻找其他的解决方案。 > 在 2019年8月1日,下午4:56,Lim Kai Wey 写道: > > 如果有需要, 我能帮忙翻译,看你俩聊好像有点痛苦。 > > Translation: > I can help translate if you guys want... I don’t

Re: Error arises again and again\

2019-08-01 Thread 胡超
好人啊 > 在 2019年8月1日,下午4:56,Lim Kai Wey 写道: > > 如果有需要, 我能帮忙翻译,看你俩聊好像有点痛苦。 > > Translation: > I can help translate if you guys want... I don’t mind translating > > Regards, > Kai Wey > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. >

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
如果有需要, 我能帮忙翻译,看你俩聊好像有点痛苦。 Translation: I can help translate if you guys want... I don’t mind translating Regards, Kai Wey -- 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

Re: Error arises again and again\

2019-08-01 Thread 胡超
The answer is change for python2.7 & python3.6 . This pack is worked in python2.7 Could you try fond the pack worked in python3.6 > 在 2019年8月1日,下午4:07,胡超 写道: > > When you install Django-common , exam the function ajax_required . Try to > fond error. > > Im sorry for my bad English. > >>

Re: Error arises again and again\

2019-08-01 Thread niranjan shukla
> > > # -*- coding: utf-8 -*- > """ > Contains view's decorators which automates common tasks. > """ > > import traceback > > from django.shortcuts import render_to_response > from django.template import RequestContext > > from common.http import HttpResponseJson > > def render_to(template): >

Re: Error arises again and again\

2019-08-01 Thread 胡超
When you install Django-common , exam the function ajax_required . Try to fond error. Im sorry for my bad English. > 在 2019年8月1日,下午4:01,niranjan shukla 写道: > > views.py > > > from django.http import JsonResponse > from django.views.decorators.http import require_POST > from

Re: Error arises again and again\

2019-08-01 Thread niranjan shukla
> > views.py > from django.http import JsonResponse from django.views.decorators.http import require_POST from common.decorators import ajax_required from .models import Contact @ajax_required @require_POST @login_required def user_follow(request): user_id = request.POST.get('id')

Re: Error arises again and again\

2019-08-01 Thread 胡超
You can uninstall Django-common and install common. Try it. > 在 2019年8月1日,下午3:49,niranjan shukla 写道: > > Python -- 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

Email activation confirmation

2019-08-01 Thread Suraj Thapa FC
https://www.reddit.com/r/django/comments/ckk2v8/email_activation_confirmation/?utm_medium=android_app_source=share -- 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

Re: Error arises again and again\

2019-08-01 Thread niranjan shukla
AFTER INSTALLING THE DJANGO-COMMON AND I AM USING PYTHON 3.6 > from common.decorators import ajax_required > File > "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\common\decorators.py", > > line 61 > except Exception, ex: > ^ > SyntaxError:

django-vue

2019-08-01 Thread Pradeep Singh
can anyone sugget me django-vue tutorial -- 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 view this discussion on

Re: Error arises again and again\

2019-08-01 Thread 胡超
Y > 在 2019年8月1日,下午3:43,niranjan shukla 写道: > > pip install django-common > > or > > pip install common > > -- > 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 >

Re: Error arises again and again\

2019-08-01 Thread niranjan shukla
pip install django-common or pip install common -- 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 view this

Re: Error arises again and again\

2019-08-01 Thread 胡超
Maybe you need pip the pack; > 在 2019年8月1日,下午3:39,niranjan shukla 写道: > > ModuleNotFoundError -- 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

Error arises again and again\

2019-08-01 Thread niranjan shukla
I am using the Django 1.11 but I always encounter the same error. if you know anything to this then tell me, brother, from common.decorators import ajax_required ModuleNotFoundError: No module named 'common -- You received this message because you are subscribed to the Google Groups

Re: Document flow between parties

2019-08-01 Thread niranjan shukla
I am using the Django 1.11 but I always encounter the same error. if you know anything to this then tell me, brother, from common.decorators import ajax_required ModuleNotFoundError: No module named 'common -- You received this message because you are subscribed to the Google Groups

Django otp help

2019-08-01 Thread Suraj Thapa FC
Can anyone help me with Django otp in email -- 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 view this discussion

Re: Document flow between parties

2019-08-01 Thread Mike Dewhirst
On 1/08/2019 1:35 am, Kean wrote:  Hi . Please can anyone refer me to a good source to learn how to write a programme which supports document creation, flow, conversion, management and tracking between parties? https://djangopackages.org/grids/g/document-management/ These are all django