Re: Django 2.1.2 update, admin interface broken: render() got an unexpected keyword argument 'renderer'

2018-10-08 Thread carlos
Hi, many third party app same error for example django-autocomplete-light, this solution https://github.com/stuartaccent/django-autocomplete-light/commit/cfc5f4a25fcb4937cf07fc65ef4ed549ca0d1338 add renderer parameter in the function render this solve the problem . you need find in you widget app

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread Pradeep Singh
tell me how to map correctly On Tue, 9 Oct 2018 at 11:21, Pradeep Singh wrote: > how to correct it give me step by step instruction > > On Mon, 8 Oct 2018 at 22:43, victor jack wrote: > >> Your application'software URL is not mapped correctly , from the error >> page it is only the admin that

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread Pradeep Singh
how to correct it give me step by step instruction On Mon, 8 Oct 2018 at 22:43, victor jack wrote: > Your application'software URL is not mapped correctly , from the error > page it is only the admin that can be loaded . > > On Tue, 9 Oct 2018 6:40 AM Pradeep Singh, wrote: > >> >> >> On Mon, 8

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread victor jack
Your application'software URL is not mapped correctly , from the error page it is only the admin that can be loaded . On Tue, 9 Oct 2018 6:40 AM Pradeep Singh, wrote: > > > On Mon, 8 Oct 2018 at 22:30, victor jack wrote: > >> screenshot of the error message Singh will be helpful >> >> On Tue,

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread Pradeep Singh
please.. help guys.. On Tue, 9 Oct 2018 at 11:10, Pradeep Singh wrote: > > > On Mon, 8 Oct 2018 at 22:30, victor jack wrote: > >> screenshot of the error message Singh will be helpful >> >> On Tue, 9 Oct 2018 6:24 AM Pradeep Singh, wrote: >> >>> i am using python 3.7+django 2.0 >>> >>> On Tue,

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread Pradeep Singh
On Mon, 8 Oct 2018 at 22:30, victor jack wrote: > screenshot of the error message Singh will be helpful > > On Tue, 9 Oct 2018 6:24 AM Pradeep Singh, wrote: > >> i am using python 3.7+django 2.0 >> >> On Tue, 9 Oct 2018 at 10:52, Pradeep Singh wrote: >> >>> what is wrong with my...code...and se

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread victor jack
screenshot of the error message Singh will be helpful On Tue, 9 Oct 2018 6:24 AM Pradeep Singh, wrote: > i am using python 3.7+django 2.0 > > On Tue, 9 Oct 2018 at 10:52, Pradeep Singh wrote: > >> what is wrong with my...code...and setting please tell me >> >> On Tue, 9 Oct 2018 at 10:52, Prade

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread Manjunath
Please Send the screenshot of your 404 page. On Tuesday, October 9, 2018 at 10:53:07 AM UTC+5:30, Pradeep Singh wrote: > > please help me ...i am always getting django 404 error .how to fix it > > On Mon, 8 Oct 2018 at 22:17, Manjunath > > wrote: > >> Hi Victor, >> Are you sure book.author.pk

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread Pradeep Singh
i am using python 3.7+django 2.0 On Tue, 9 Oct 2018 at 10:52, Pradeep Singh wrote: > what is wrong with my...code...and setting please tell me > > On Tue, 9 Oct 2018 at 10:52, Pradeep Singh wrote: > >> please help me ...i am always getting django 404 error .how to fix it >> >> On Mon, 8 Oct

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread Pradeep Singh
what is wrong with my...code...and setting please tell me On Tue, 9 Oct 2018 at 10:52, Pradeep Singh wrote: > please help me ...i am always getting django 404 error .how to fix it > > On Mon, 8 Oct 2018 at 22:17, Manjunath wrote: > >> Hi Victor, >> Are you sure book.author.pk has value? >>

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread victor jack
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? > can you send the model definition of Book & Author to verify? > Or you can verify yourself by using django Shell. > > > On Tuesday,

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread Manjunath
Hi Victor, Are you sure book.author.pk has value? can you send the model definition of Book & Author to verify? Or you can verify yourself by using django Shell. On Tuesday, October 9, 2018 at 12:52:28 AM UTC+5:30, victor jack wrote: > > > Thanks Manjunath, i will post two screen shots of the tem

Re: what if i want to use mysql with django?

2018-10-08 Thread Muhammad Tahir
Thank You On Monday, October 8, 2018 at 6:15:38 PM UTC+5, Rizwan Ahmed wrote: > > Follow this YouTube video. This guy explained it very well. > https://www.youtube.com/watch?v=s16p32pndK0 > > On Mon, Oct 8, 2018 at 6:26 PM Nishan Akib > wrote: > >> of course not. you can use mysql, oracle, postg

Re: Best option for hosting django website

2018-10-08 Thread Muhammad Tahir
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 server. what are the best options? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Django 2.1.2 update, admin interface broken: render() got an unexpected keyword argument 'renderer'

2018-10-08 Thread Aileen
Thanks for the response! Which lines of the widget code should we update? We are also using Docker to host our Django dev/production environments - is there a way to update widget code that will persist between builds? On Monday, October 8, 2018 at 7:25:43 PM UTC-7, Aileen wrote: > > Hello, > >

Re: Django 2.1.2 update, admin interface broken: render() got an unexpected keyword argument 'renderer'

2018-10-08 Thread carlos
yes verison 2.1 remove see this link https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-2-1 you need update you code in widget part. On Mon, Oct 8, 2018 at 8:25 PM Aileen wrote: > Hello, > > After upgrading Django from 2.0.8 to 2.1.2, the admin interface no long

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

2018-10-08 Thread Md.iftequar iqbal
Thank you for reply Cay you tell me how much time it will take to complete the hrm software On Mon, 8 Oct 2018, 4:39 pm Rizwan Ahmed, wrote: > go throu this link it may help u. > *http://awesome-django.com/ * > > otherwise you can look at github. > > On Mon, Oct 8,

Sqlalchemy json column - how to perform filter based on list of ids on a key

2018-10-08 Thread pradam
I have a list of ids like: tracker_ids = [69, 70] I need to get all the APInformation objects based on the tracker_id. data looks like this: { 'tracker_id' : 69, 'cpu_core_avg': 89.890', 'is_threshold': true,'datetime':1539053379040 } { 'tracker_id' : 70, 'cpu_core_avg': 65.0', 'is_threshold':

Re: Best option for hosting django website

2018-10-08 Thread Huan Ran Ng
That is not a easy question to answer. Currently I am using Google Cloud Platform. There are really many options out there. I personally think that Heroku is one of the easiest to deploy. Google App engine is not that hard too. Platforms like Digitalocean requires more efforts. My suggestions

Django 2.1.2 update, admin interface broken: render() got an unexpected keyword argument 'renderer'

2018-10-08 Thread Aileen
Hello, After upgrading Django from 2.0.8 to 2.1.2, the admin interface no longer seems to work due to some problems with our widgets. This is the error that I get: [image: image.png] And here is the full call stack: Environment: Request Method: GET Request URL: http://localhost:8000/admin/w

Re: Are forms supposed to submit empty strings for blank fields?

2018-10-08 Thread HashRocketSyntax
Shouldn't they be None? -- 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-us

Are forms supposed to submit empty strings for blank fields?

2018-10-08 Thread HashRocketSyntax
I'm running into problems downstream with empty strings. Are django forms supposed to submit empty strings for form fields that are not filled out? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei

RE: "No such table" error, with different tablename as in query

2018-10-08 Thread Michel Lavoie
I have (tried running migrations), although I didn't change my models and I'm not sure if I did it after or before the problem started. You're probably right though, if the current database has issues but not the new one, the old one might have somehow been corrupted... It's probably a good tim

RE: "No such table" error, with different tablename as in query

2018-10-08 Thread Matthew Pava
It almost seems like your database is corrupt. Did you run migrations before running the server? From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Michel Lavoie Sent: Monday, October 8, 2018 1:15 PM To: django-users@googlegroups.com Subject: Re: "No such ta

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread victor jack
Thanks Manjunath, i will post two screen shots of the templates On Saturday, October 6, 2018 at 7:25:50 AM UTC+1, Manjunath wrote: > > Seems like you are not passing the argument along with the url. > Please share your template file to verify. > > On Saturday, October 6, 2018 at 7:06:08 AM UTC+5:

Re: "No such table" error, with different tablename as in query

2018-10-08 Thread Michel Lavoie
Hi, *@Matthew: *I've just tried with a blank database, and everything appeared to work perfectly. I couldn't reproduce the bug I'm seeing now. The database structure looks identical though; in both cases the table name is "finance_transaction", not "main.finance_transactions". *@Michal: *I'm pret

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

2018-10-08 Thread Derek
Apart from setting up a unique key (user, card, start, end), you may also want to check if the date range for that card overlaps with another date range; e.g. see https://stackoverflow.com/questions/9044084/efficient-date-range-overlap-calculation-in-python --> do that check in the clean meth

Re: beginner guide

2018-10-08 Thread carl collins
Follow this awesome tutorial> https://docs.djangoproject.com/en/2.1/intro/tutorial01/ On Mon, Oct 8, 2018 at 5:39 PM Ashok Reddy wrote: > 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 this m

beginner guide

2018-10-08 Thread 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 this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, se

Rest API for plane tracker

2018-10-08 Thread Caleb Bryson
Hey guys I am trying to figure out how to create a api using the django rest frame work to display a airplane flight tracker on a website. I am not really sure how to do it as from what i have seen as examples the api's have been used form simple data like names, height, id number, etc. I am lo

Re: "No such table" error, with different tablename as in query

2018-10-08 Thread Michal Petrucha
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Mon, Oct 08, 2018 at 10:29:30AM -0400, Michel Lavoie wrote: > Hi Matthew, > > Thank you for the suggestion, but as I mentioned the error is not limited > to my views.py; it's also present in the auto generated admin page. > Basically in the examp

query models

2018-10-08 Thread whistler whitherfaith
context: i'm working on an app that monitors when an employee has read a memo, how many employees have not read a memo, and how many employees have read a memo but after the deadline. when a memo is released, an employee has 30 days to read it. Each employee has an account. When th

RE: "No such table" error, with different tablename as in query

2018-10-08 Thread Matthew Pava
Hi Michel, I’ve reviewed your code and everything looks like it should be working fine. Have you tried using a fresh, blank database? Could it be an issue with your settings? I can’t imagine what else it could be at the moment. Thanks, Matthew From: django-users@googlegroups.com [mailto:djang

Re: While registering the user with django form, it gives "UNIQUE constraint failed: auth_user.username" error

2018-10-08 Thread Nelson Varela
You do not have to save the user 2 times in your form: user = user_form.save() user.save() Maybe this is also the 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

Re: "No such table" error, with different tablename as in query

2018-10-08 Thread Michel Lavoie
Hi Matthew, Thank you for the suggestion, but as I mentioned the error is not limited to my views.py; it's also present in the auto generated admin page. Basically in the example I gave, I call the delete() method from my transaction object, by id. There's also the "main."prefix in the error that

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

2018-10-08 Thread Nelson Varela
Django has DateRangeField but that is only available if you are using postgres On Monday, October 8, 2018 at 1:10:04 PM UTC+2, Shareef 617 wrote: > > Consider a project where users can have many cards (or anything else, card > is just an example), and the same card can belong to multiple users *

RE: "No such table" error, with different tablename as in query

2018-10-08 Thread Matthew Pava
Hi Michel, The error states that there is no such table finance_transactions with an s on the end. Maybe you could show us your view code, but that would be the place that I would start at. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Michel Lavoie S

Re: what if i want to use mysql with django?

2018-10-08 Thread Rizwan Ahmed
Follow this YouTube video. This guy explained it very well. https://www.youtube.com/watch?v=s16p32pndK0 On Mon, Oct 8, 2018 at 6:26 PM Nishan Akib wrote: > of course not. you can use mysql, oracle, postgres & so on. just search on > Google or see the doc. > > On Mon, Oct 8, 2018, 6:01 PM Muhamm

Re: what if i want to use mysql with django?

2018-10-08 Thread Nishan Akib
of course not. you can use mysql, oracle, postgres & so on. just search on Google or see the doc. On Mon, Oct 8, 2018, 6:01 PM Muhammad Tahir wrote: > is PostgreSQL the only DB we can use with django? what if i want to use > mysql with django? > > -- > You received this message because you are s

what if i want to use mysql with django?

2018-10-08 Thread Muhammad Tahir
is PostgreSQL the only DB we can use with django? what if i want to use mysql with 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

Re: Best option for hosting django website

2018-10-08 Thread Joel
You need to know something about webservers too to set it up, though with helper modules like wsgi_express it has become easy. Get a vps, or a droplet from digitalocean or linode. On Mon, 8 Oct, 2018, 4:39 PM Muhammad Tahir, wrote: > i need to host my django website on live server. what are the

Re: geodjango raster field get pixel value

2018-10-08 Thread Pradeep Singh
there is no effect...i am facing these problem many days On Mon, 8 Oct 2018 at 04:08, 'Vinod Kumar' via Django users < django-users@googlegroups.com> wrote: > replace below code in urls.py > > > from django.contrib import adminfrom django.urls import include, path > > from testapp import views >

Re: Best option for hosting django website

2018-10-08 Thread mottaz hejaze
If you are a biggener and don't know how to setup and configure a VPS , use pythonanywhere or if you have a linux experience , use Digitalocean اذا محتاج اي مساعدة .. راسلني .. اخوك معتز من مصر -- You received this message because

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

2018-10-08 Thread Jason
What is the question you have? -- 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 dj

Best option for hosting django website

2018-10-08 Thread Muhammad Tahir
i need to host my django website on live server. what are the best options? -- 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

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

2018-10-08 Thread Rizwan Ahmed
go throu this link it may help u. *http://awesome-django.com/ * otherwise you can look at github. On Mon, Oct 8, 2018 at 8:51 AM django_learner wrote: > I am newbie to django. I am trying to make a Human resource management > system software but it is very hard to ma

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

2018-10-08 Thread Shareef 617
Consider a project where users can have many cards (or anything else, card is just an example), and the same card can belong to multiple users *but only in different time periods*. So if a card is assigned to user from 1.09.2014 to 1.10.2014 (dd/mm/), then the same card can be assigned to

Re: geodjango raster field get pixel value

2018-10-08 Thread 'Vinod Kumar' via Django users
replace below code in urls.py from django.contrib import adminfrom django.urls import include, path from testapp import views urlpatterns = [ path('hello/', views.welcome), path('admin/', admin.site.urls),] On Mon, Oct 8, 2018 at 4:33 PM Vinod Kumar wrote: > replace url(welcome.view

Re: geodjango raster field get pixel value

2018-10-08 Thread 'Vinod Kumar' via Django users
replace url(welcome.views ) into your-app-name.views.funtion in your case replace url path *welcome.views* into *testapp.views.welcome* On Mon, Oct 8, 2018 at 4:25 PM Pradeep Singh wrote: > brother please help why i am getting django 404. > > On Mon, 8 Oct 2018 at 16:24, Pradeep Singh

Re: geodjango raster field get pixel value

2018-10-08 Thread Pradeep Singh
brother please help why i am getting django 404. On Mon, 8 Oct 2018 at 16:24, Pradeep Singh wrote: > > > On Mon, 8 Oct 2018 at 16:23, Pradeep Singh wrote: > >> >> >> On Mon, 8 Oct 2018 at 16:23, Pradeep Singh wrote: >> >>> >>> >>> On Sun, 7 Oct 2018 at 04:11, Majid Hojati wrote: >>> >

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

2018-10-08 Thread PASCUAL Eric
Hi, Just my $0.02, but human resources management is a quite broad topic, and the kind of project you're planning is not a toy (i.e. "Hello world" style) application :) In addition, since you are a Django newbie, I'm afraid that it could be out of reach with your actual skills. It would thus

Re: Channels: rejecting web socket connections with a custom close code

2018-10-08 Thread Matt F
Hi Andrew, Thanks for clarifying. I didn't think to look at the ASGI spec but it is described quite well there under the WebSocket/Close section. Thanks for your hard work on this project. Regards, Matt On Saturday, 6 October 2018 10:47:46 UTC+1, Andrew Godwin wrote: > > Hi Matt, > > This i