Re: NoReverseMatch at /catalog/author/1

2018-10-09 Thread Manjunath
No issues.. Glad I was of some help. :) On Wednesday, October 10, 2018 at 12:07:24 AM UTC+5:30, victor jack wrote: > > Manjunath thanks i have fixed the bug in my code , the problem was in the > author_detail page. THanks so much for your time , i really appreciate your > help > On Tue, Oct 9, 2

Configuration settings for Sql Server database in django

2018-10-09 Thread Rakhee Menon
Hello Everyone, Please could anyone specify what are the configuration settings to be done in Django for using SQL Server 2014 as database instead of the default sqlite. Thanks in Advance Rakhee -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: Create Gantt chart for Tasks

2018-10-09 Thread Shareef 617
https://plot.ly/python/gantt/ - started use plotly graph. suggest me if thi has any limitations On Tuesday, October 9, 2018 at 5:20:26 PM UTC+4, Shareef 617 wrote: > > Help me to create gantt chart using python , Django and javascript. > suggest Best and easy way to achieve this > > Please uplo

Re: Django Code distribution to customers.

2018-10-09 Thread James Bennett
Have them sign licensing agreements that force them to pay you lots and lots of money if they copy your code. Seriously, this is the kind of problem you solve with lawyers, not with code. On Tue, Oct 9, 2018 at 10:10 PM vineeth sagar wrote: > We deploy our web applications on the infrastructure

Django Code distribution to customers.

2018-10-09 Thread vineeth sagar
We deploy our web applications on the infrastructure provided by the customer, how do you keep the code non-accessible to others. WHAT are the strategies you use. It doesn't have to be fool proof just it should become very hard to look at the code. Any ideas? -- You received this message becau

Re: Create Gantt chart for Tasks

2018-10-09 Thread Mohammad Shareef M
Help me out to implement Gantt Chart. not graph Thanks & Regards, Mahammad Shareef M +919741482617 +971501340618 +971581756035 On Tue, Oct 9, 2018 at 5:59 PM Pawel Grajewski wrote: > > https://simpleisbetterthancomplex.com/tutorial/2018/04/03/how-to-integrate-highcharts-js-with-django.html

Re: Django model object filter with empty values

2018-10-09 Thread Moreplavec
Thank you, i will solve it with Q, it makes sense and will make it clear in future edits. On Tuesday, 9 October 2018 21:50:50 UTC+2, Mateusz wrote: > > There are many ways to resolve your problem. According to > https://stackoverflow.com/questions/769843/how-do-i-use-and-in-a-django-filter > th

Django Admin Filtering Drop Down Menu by Date

2018-10-09 Thread mab . mobile . 01
Hello, I am trying to develop an employee schedule based on upcoming events and I only need to make additions or updates in Django Admin. To add a new event I would like to pick from a drop down list of only the events that are in the future or on todays date not the entire table list of event

Re: Django model object filter with empty values

2018-10-09 Thread Mateusz
There are many ways to resolve your problem. According to https://stackoverflow.com/questions/769843/how-do-i-use-and-in-a-django-filter this should work: from django.db.models import Q date_range = Q(date_stop__range=[today, today_plus_ten]) date_none = Q(date_start=today, date_stop=None) cours

Re: beginner guide

2018-10-09 Thread ashok kumar reddy
Thank you so much On Tue, 9 Oct 2018, 15:14 Devender Kumar, wrote: > Hi, > Best way to learn django is to start coding it and keep referencing it > with django docs. Or find a mentor work/help with him on some project and > keep learning he can guide you too. > > Find some code on GitHub and re

Re: beginner guide

2018-10-09 Thread ashok kumar reddy
Thank you so much On Tue, 9 Oct 2018, 19:29 Kim Sunga, wrote: > If you're interested on the newest django (2.X) try to read Django 2 by > Example by Antonio Mele > > On Tue, Oct 9, 2018 at 7:37 PM 'puhlmann7' via Django users < > django-users@googlegroups.com> wrote: > >> Hi Ashok, >> >> You may

Re: beginner guide

2018-10-09 Thread ashok kumar reddy
Thank you so much On Tue, 9 Oct 2018, 17:08 'puhlmann7' via Django users, < django-users@googlegroups.com> wrote: > Hi Ashok, > > You may have a look on this: https://tutorial.djangogirls.org/en/ > > Am Montag, 8. Oktober 2018 18:39:29 UTC+2 schrieb Ashok Reddy: >> >> hello every one .i am beginn

Re: Django model object filter with empty values

2018-10-09 Thread Mateusz
There are many ways to resolve your problem. According to https://stackoverflow.com/questions/769843/how-do-i-use-and-in-a-django-filter one (or both) of these should work: #1 coursedates_ending = CourseDate.objects.filter(date_stop__range=[today, today_plus_ten], date_stop=None).order_by('dat

Re: NoReverseMatch at /catalog/author/1

2018-10-09 Thread victor jack
Manjunath thanks i have fixed the bug in my code , the problem was in the author_detail page. THanks so much for your time , i really appreciate your help On Tue, Oct 9, 2018 at 9:40 AM Manjunath wrote: > No issues. > So, is the issue resolved now? > > On Tuesday, October 9, 2018 at 10:51:13 AM U

RE: psycopg2 Substr SQL generator bug?

2018-10-09 Thread Matthew Pava
Yeah, that makes sense now that I think about it. You can combine the Cast in the first annotate method. Conference.objects.annotate(year_string=Cast(ExtractYear('start_date'), CharField())).filter(website__contains=F('year_string')).values_list('website', flat=True) From: django-users@google

auth.Group.permissions: (fields.E340) The field's intermediary table 'auth_group_permissions' clashes with the table name of 'mesrecettes.AuthGroupPermissions'

2018-10-09 Thread 'odile Lambert' via Django users
Hello I need to use an existing SQL database with Django. The database was under MSAccess. I generated a Dump of the database. I use SQL" source" command to generate my SQL database. Then I do Python manage.py inspectDB. I incorporate the proposed Django model in mode

Re: psycopg2 Substr SQL generator bug?

2018-10-09 Thread Jakob Karstens
Unfortunately, using the `output_field` keyword argument leads to the same error: >>> Conference.objects.annotate(year=ExtractYear('start_date', output_field= CharField())).filter(website__contains=F('year')) Traceback (most recent call last): File "/Users/jakobkarstens/confir/virt/lib/python3.

RE: psycopg2 Substr SQL generator bug?

2018-10-09 Thread Matthew Pava
Oh, I see. Then just use Cast, or the output_field argument . Conference.objects.annotate(year=ExtractYear('start_date', output_field=CharField())).filter(website__contains=F('year')) From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Jakob Karstens Sent: Tue

Re: psycopg2 Substr SQL generator bug?

2018-10-09 Thread Jakob Karstens
Thanks Matthew, I'll submit a ticket. Unfortunately, ExtractYear does not return a string, so it seems like I would still need to explicitly cast the year annotation to a string: >>> Conference.objects.annotate(year=ExtractYear('start_date')).filter( website__contains=F('year')) Traceback (most

Django model object filter with empty values

2018-10-09 Thread Moreplavec
Hello, I have DB with courses and each course has many dates (with starting and ending date). I'm trying to make report with starting and ending course dates in 10 days. The problem is, that one day courses usually don't have ending date (date_stop) filled. Right now i'm using query: coursedat

RE: Alternatives to using __contains?

2018-10-09 Thread Matthew Pava
No. Usually, you would try to keep all of your filtering in the managers module, and then you would be able to limit your refactoring of filters in that file. You could try using *args and **kwargs syntax, but that would make it difficult to maintain. I suppose you could functions in SQLAlchemy,

Re: Best option for hosting django website

2018-10-09 Thread Nereus Nemrod
Hi, Yeah, Heroku supports Mysql. You have to install the ClearDB addon On Tuesday, October 9, 2018 at 4:32:13 PM UTC+1, Muhammad Tahir wrote: > > does heroku supports mysql? as for as i know , they dont. Please confirm > On Tue, Oct 9, 2018 at 6:59 PM Kim Sunga > > wrote: > > > > Try Heroku

Alternatives to using __contains?

2018-10-09 Thread megaman
I’m pretty new to Django. I have just learnt that could filter a query set this way: Questions.objects.filter(question_text__contains=‘what’) This kind of scares me a little because the filter “contains” is actually part of the field name. And I guess there are other operators appended to a fi

Re: Best option for hosting django website

2018-10-09 Thread Muhammad Tahir Abbas Janjua
does heroku supports mysql? as for as i know , they dont. Please confirm On Tue, Oct 9, 2018 at 6:59 PM Kim Sunga wrote: > > Try Heroku and for hosting static and media files Google drive and > Cloudinary. Works very well for me > > > On Tue, Oct 9, 2018 at 12:33 PM Muhammad Tahir wrote: >> >> T

Re: Change sqlite database to sql server

2018-10-09 Thread Jason
the error is saying your remote server doesn't allow external connections, so look at the docs for how to enable that -- 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 emai

Re: Django Channels - core.py error

2018-10-09 Thread Simon Vézina
Hi itsnate_b, Would you mind elaborating on your fix? I'm getting this exact error and I'm at a complete loss. Everything works fine in local, but on my live server, after a couple of minutes/hours of working fine, I start getting this error in the logs. Thanks! Le dimanche 2 septembre 2018

Re: Create Gantt chart for Tasks

2018-10-09 Thread Pawel Grajewski
https://simpleisbetterthancomplex.com/tutorial/2018/04/03/how-to-integrate-highcharts-js-with-django.html wt., 9 paź 2018 o 15:21 Shareef 617 napisał(a): > Help me to create gantt chart using python , Django and javascript. > suggest Best and easy way to achieve this > > Please upload example c

Re: Best option for hosting django website

2018-10-09 Thread Kim Sunga
Try Heroku and for hosting static and media files Google drive and Cloudinary. Works very well for me On Tue, Oct 9, 2018 at 12:33 PM Muhammad Tahir wrote: > Thank You All > On Monday, October 8, 2018 at 4:10:04 PM UTC+5, Muhammad Tahir wrote: >> >> i need to host my django website on live serv

Re: beginner guide

2018-10-09 Thread Kim Sunga
If you're interested on the newest django (2.X) try to read Django 2 by Example by Antonio Mele On Tue, Oct 9, 2018 at 7:37 PM 'puhlmann7' via Django users < django-users@googlegroups.com> wrote: > Hi Ashok, > > You may have a look on this: https://tutorial.djangogirls.org/en/ > > Am Montag, 8. O

RE: psycopg2 Substr SQL generator bug?

2018-10-09 Thread Matthew Pava
I would submit a ticket for that issue. Also, instead of using string functions to solve your problem, I would use the ExtractYear function. Conference.objects.annotate(year=ExtractYear('start_date')).filter(website__contains=F('year')) From: django-users@googlegroups.com [mailto:django-users@

Create Gantt chart for Tasks

2018-10-09 Thread Shareef 617
Help me to create gantt chart using python , Django and javascript. suggest Best and easy way to achieve this Please upload example codes -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Django 2.1.1 creating CharField in a Form in Django on a Raspberry pi

2018-10-09 Thread konstantin Heinrich
Hi Michal, yes that was the error. Thank you so much. Strange that no error was shown. Am Di., 9. Okt. 2018 um 14:39 Uhr schrieb Michal Petrucha < michal.petru...@konk.org>: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Hi, > > On Tue, Oct 09, 2018 at 02:28:25PM +0200, konstantin H

Re: Django 2.1.1 creating CharField in a Form in Django on a Raspberry pi

2018-10-09 Thread Michal Petrucha
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, On Tue, Oct 09, 2018 at 02:28:25PM +0200, konstantin Heinrich wrote: > I replaced code with {{ form }} but nothing changed.? There's one more error in your code, and it's right here: > return render(request, 'base.html', {' form ': frm}

Re: Django 2.1.1 creating CharField in a Form in Django on a Raspberry pi

2018-10-09 Thread konstantin Heinrich
I replaced code with {{ form }} but nothing changed.? Am Di., 9. Okt. 2018 um 14:19 Uhr schrieb Joel : > You passed form to template, so you have to refer to that. > > On Tue, 9 Oct, 2018, 5:33 PM konstantin Heinrich, < > kheinrichdja...@gmail.com> wrote: > >> I declared in views.py variable call

Re: Django 2.1.1 creating CharField in a Form in Django on a Raspberry pi

2018-10-09 Thread Joel
You passed form to template, so you have to refer to that. On Tue, 9 Oct, 2018, 5:33 PM konstantin Heinrich, wrote: > I declared in views.py variable called frm so I have to use it > in my html file to have access to that file.? > > > > Am Di., 9. Okt. 2018 um 13:54 Uhr schrieb Joel : > >> inste

Re: Django 2.1.1 creating CharField in a Form in Django on a Raspberry pi

2018-10-09 Thread konstantin Heinrich
I declared in views.py variable called frm so I have to use it in my html file to have access to that file.? Am Di., 9. Okt. 2018 um 13:54 Uhr schrieb Joel : > instead of {{ frm }}, try: > > {{ form }} > > I think you'll understand what you did wrong. > > On Tue, 9 Oct, 2018, 5:07 PM , wrote

Re: Django 2.1.1 creating CharField in a Form in Django on a Raspberry pi

2018-10-09 Thread Joel
instead of {{ frm }}, try: {{ form }} I think you'll understand what you did wrong. On Tue, 9 Oct, 2018, 5:07 PM , wrote: > hello, > > I've tried to create a simple CharField in a Form and show it in my > webbrowser > but I didn't see anything on my webbrowser? > > > Below my code: > > *form

Re: beginner guide

2018-10-09 Thread 'puhlmann7' via Django users
Hi Ashok, You may have a look on this: https://tutorial.djangogirls.org/en/ Am Montag, 8. Oktober 2018 18:39:29 UTC+2 schrieb Ashok Reddy: > > hello every one .i am beginner to Django. Could you please suggest me the > best source to learn,i am very enthusiastic to learn. > -- You received th

Re: django-allauth facebook doesn't collect more information other than "name" and "id"

2018-10-09 Thread Pepal
Google gives you permission to access user data, but it will not send unless you ping the endpoint to get the birthday. so make sure your app is pinging the correct endpoint. On Wednesday, 29 November 2017 03:00:24 UTC+5:30, Shahab Emami wrote: > > no one is here to answer my question? > > On Mo

Django 2.1.1 creating CharField in a Form in Django on a Raspberry pi

2018-10-09 Thread kheinrichdjango
hello, I've tried to create a simple CharField in a Form and show it in my webbrowser but I didn't see anything on my webbrowser? Below my code: *forms.py* from django import forms class menuForm(forms.Form): image = forms.CharField(initial = 'Your Name') date = forms.DateField()

Re: Change sqlite database to sql server

2018-10-09 Thread Rakhee Menon
Hey Thanks!!! but now I get this error , Actually I am trying it on my localhost machine not able to figure out what exactly is the issue. TCP Provider: No connection could be made because the target machine actively refused it.\r\n (10061) (SQLDriverConnect); [08001] [Microsoft][ODBC Driver 1

Re: Refer tutorials to make multitenant application with shared database with multiple schma

2018-10-09 Thread Devender Kumar
Thank you all for putting some light on these. Regard Dev On Wed 3 Oct, 2018, 12:59 AM heriberto ochoa, wrote: > I have try this library: > https://django-tenant-schemas.readthedocs.io/en/latest/ > > and with db postgres > > El miércoles, 19 de septiembre de 2018, 1:09:20 (UTC-6), Devender Kumar

Re: same card can belong to multiple users but only in different time periods

2018-10-09 Thread Devender Kumar
Hi, I think finding solution to this can consume time. Simply make a function which will change the user reference of the card over a given period of time. Regards Dev On Mon 8 Oct, 2018, 10:47 PM Derek, wrote: > Apart from setting up a unique key (user, card, start, end), you may also > want

Re: beginner guide

2018-10-09 Thread Devender Kumar
Hi, Best way to learn django is to start coding it and keep referencing it with django docs. Or find a mentor work/help with him on some project and keep learning he can guide you too. Find some code on GitHub and read it once carefully. I am also looking for junior to help me with my work and i

Re: NoReverseMatch at /catalog/author/1

2018-10-09 Thread Manjunath
No issues. So, is the issue resolved now? On Tuesday, October 9, 2018 at 10:51:13 AM UTC+5:30, victor jack wrote: > > Will check it out . Thanks for your input very much appreciated > > On Tue, 9 Oct 2018 6:17 AM Manjunath, > > wrote: > >> Hi Victor, >> Are you sure book.author.pk has value? >> c

Re: NoReverseMatch at /catalog/author/1

2018-10-09 Thread Manjunath
Change the line path('date/', views.timeinfo) to path('date/', view=views.timeinfo) Check if it is working. On Tuesday, October 9, 2018 at 11:22:51 AM UTC+5:30, Pradeep Singh wrote: > > tell me how to map correctly > > On Tue, 9 Oct 2018 at 11:21, Pradeep Singh > wrote: > >> how to correct it g

Re: What are packages or tool that are useful to make a Human resource management system

2018-10-09 Thread PASCUAL Eric
Well... it only depends on you and your skills, plus what you want your app to do exactly. How do you want people other than you answer such a question ? Eric From: django-users@googlegroups.com on behalf of Md.iftequar iqbal Sent: Tuesday, October 9, 2018