Re: Internship

2019-11-26 Thread Integr@te System
Hi Pro, For which role you gonna to handle in this field or entirely, on internet with ocean of sources. Don't worry for research and resolve! On Wed, Nov 27, 2019, 13:29 Ganesh Babu wrote: > Hi Friends, > > I want some suggestion from you. I started Data science using python > 3. >

Re: Internship

2019-11-26 Thread Ganesh Babu
Hi Friends, I want some suggestion from you. I started Data science using python 3. Can you suggest me, how can i start and if you have any video please provide to me On Friday, November 22, 2019 at 5:03:26 PM UTC+5:30, Scyil sharma wrote: > > I am sahil sharma, a student of

Re: self.foreign_related_fields[0] IndexError: tuple index out of range

2019-11-26 Thread Integr@te System
Hi friend, check again docs to see what benefit for u: https://realpython.com/django-migrations-a-primer/#ensuring-model-definitions-and-the-database-schema-in-sync Auth customizing: https://docs.djangoproject.com/en/2.2/topics/auth/customizing/ On Wed, Nov 27, 2019, 12:34 Raja Sekar Sambath

Re: Question

2019-11-26 Thread Allaberdi Yazhanow
If you want to run django Server you have to write command like this ( cd “location file manage.py “ then ( python manage.py runsever Sent from my iPhone > On Nov 26, 2019, at 4:52 PM, kennedy musyoki > wrote: > > I am new in Django and programming as well, I am to run the following code in

Re: self.foreign_related_fields[0] IndexError: tuple index out of range

2019-11-26 Thread Raja Sekar Sambath
Hi, If you have deleted your old db and creating a fresh database, then delete all files generated previously using migration command and do migration (have a backup before deleting files) ;) On Tue, 26 Nov 2019 at 23:57, Ahmad Saki wrote: > Hi friend, > > When I want to create my custom

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Raja Sekar Sambath
Hi, * path('viewLit/edit/', include('editLit.urls')),* path('viewLit/', include('viewLit.urls')), * path('edit/', include('editLit.urls'))*, look at above in project level urls.py, give a try by commenting any one On Wed, 27 Nov 2019 at 03:30, Patrick Carra wrote: > It's actually

Re: Django begginer

2019-11-26 Thread JVALREY JVALREY
Hola Daniel, Creo que al no declarar el campo "project" como un atributo (CharField, etc) que pueda interpretar el ORM de Django, no lo detecta al momento de declararlo en el admin.register. Tal vez te pueda funcionar declarar ese campo "project" de la clase Task, que apunte a la clase

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
It's actually this I copy and pasted the wrong thing: Edit Circuit Info My project level urls.py is: from django.contrib import admin from django.urls import path, include from django.conf.urls import url import debug_toolbar urlpatterns = [ path('admin/', admin.site.urls), path('',

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
This is the link ? Edit Jira Info My project level urls.py is: from django.contrib import admin from django.urls import path, include from django.conf.urls import url import debug_toolbar urlpatterns = [ path('admin/', admin.site.urls), path('', include('homepage.urls')),

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Ha that was my mistake my brain has turned to mush anyhow the change was made and it still is broken :( On Tuesday, November 26, 2019 at 3:34:45 PM UTC-6, Patrick Carra wrote: > > Correct me if i'm wrong but I think you meant: > > urlpatterns= [ > path('circuit/', >

Re: Question

2019-11-26 Thread Olumayowa Hephyang
You have not selected the right directory On Tue, Nov 26, 2019, 8:47 PM kennedy musyoki wrote: > I am new in Django and programming as well, I am to run the following code > in cd but getting the error below, please advise > > C:\Users\Kennedy>py Mysite.py runserver >

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Correct me if i'm wrong but I think you meant: urlpatterns= [ path('circuit/', views.editLit.as_view(),name='editLit'), ] I did make that change but the results were the same. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

eager DB fetching of nested objects

2019-11-26 Thread Elico
Hi, I would like to query an object from a DB and fetch all nested objects. For example: class ModelA(models.Model): ... class ModelB(models.Model): a = models.ForeignKey(ModelA) ... class ModelC(models.Model): b = models.ForeignKey(ModelB) ... I want to query C by it's

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
Easy, urlpatterns from editLit.urls must be: urlpatterns= [ path('jira/', views.editLit.as_view(),name='editLit'), ] Missatge de Patrick Carra del dia dt., 26 de nov. 2019 a les 22:09: > Yea! This toolbar is an awesome tool thanks for the tip. So now I guess > I'm not understanding how

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Yea! This toolbar is an awesome tool thanks for the tip. So now I guess I'm not understanding how to route url's really. The a href is: Edit Jira Info My project level urls.py is: from django.contrib import admin from django.urls import path, include from django.conf.urls import url import

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
Yeah! Can you see the error? *WHERE* "circuitinfotable"."circuitid" = 'edit/circuit/STTK-100G-18040-01-WRBB' would be : *WHERE* "circuitinfotable"."circuitid" = 'STTK-100G-18040-01-WRBB' Link incorrect, or uls pattern incorrect Edit Circuit Info Missatge de Patrick Carra del dia dt., 26 de

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
I figured out the weirdness with the django-debug-toolbar I wasn't serving my static files from the apache/mod_wsgi configuration. After I figured that out this is what I have now: QueryTimelineTime (ms)Action +

Re:

2019-11-26 Thread sum abiut
Check your url, you are passing a primary key in the edit_profile function but you are not indicating that in your url. On Mon, 25 Nov 2019, 05:50 Paras Jain, wrote: > its showing error like this: > TypeError at /edit_profile/ > > edit_profile() missing 1 required positional argument: 'pk' > >

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
After the page is loaded, click to SQL queries and paste or make a screenshot of the content. In this tab you will see all transactions to DB Missatge de Patrick Carra del dia dt., 26 de nov. 2019 a les 19:57: > Okay I have worked on it I do have the toolbar on there but it's not > display

Re: Question

2019-11-26 Thread Elico
Hi Kennedy, What is Mysite.py? You should run $ python manage.py runserver You run this from the directory where manage.py is located. On Tue 26. Nov 2019 at 20:47, kennedy musyoki wrote: > I am new in Django and programming as well, I am to run the following code > in cd but getting the

Question

2019-11-26 Thread kennedy musyoki
I am new in Django and programming as well, I am to run the following code in cd but getting the error below, please advise C:\Users\Kennedy>py Mysite.py runserver C:\Users\Kennedy\AppData\Local\Programs\Python\Python38\python.exe: can't open file 'Mysite.py': [Errno 2] No such file or

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Okay I have worked on it I do have the toolbar on there but it's not display correctly it shows up at the bottom of each page and looks like this: - Hide » - Versions Django 2.2.4 - Time CPU: 51.78ms (56.68ms)

Re: self.foreign_related_fields[0] IndexError: tuple index out of range

2019-11-26 Thread Ahmad Saki
Hi friend, When I want to create my custom authentication model User. I have got error such as 'FieldDoesNotExist 'userid''. So, I have deleted all of these previous migration_files, re-create database and makemigrations. But cannot able to migrate again. On Wednesday, November 27, 2019 at

Re: self.foreign_related_fields[0] IndexError: tuple index out of range

2019-11-26 Thread Integr@te System
Hi friend, plz check these files: ' # Generated by Django 2.2.3 on 2019-11-26 15:36 ' and another (if u have), to see separating. On Tue, Nov 26, 2019, 23:44 Ahmad Saki wrote: > Hello Dear, > Please explain with more words. How do I solve this problem? What can I do? > > On Tuesday, November

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
and Configuring Internal IPs The Debug Toolbar is shown only if your IP address is listed in the INTERNAL_IPS setting. This means that for local development, you *must* add '127.0.0.1' to INTERNAL_IPS

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
I installed the django-debug-toolbar but its not doing anything. I imported it added it to settings.py installed apps and middleware, added the if statement to the project level urls.py and Debug is set to True. -- You received this message because you are subscribed to the Google Groups

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
Can you try to add to the view class this argument? https://docs.djangoproject.com/en/2.2/ref/class-based-views/mixins-single-object/#django.views.generic.detail.SingleObjectMixin.pk_url_kwarg pk_url_kwarg = 'circuitid' And check what query is doing with django-debug-toolbar Missatge de Gil

Re: self.foreign_related_fields[0] IndexError: tuple index out of range

2019-11-26 Thread Ahmad Saki
Hello Dear, Please explain with more words. How do I solve this problem? What can I do? On Tuesday, November 26, 2019 at 9:54:26 PM UTC+6, Integr@te System wrote: > > Hi man, > > And u see error occur again, isn't it? > Do you differ two file that app output when you migrated? > > On Tue, Nov 26,

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
May be, Or you aren t querying for circuitid ( by view class code) , normally the urls are with the int pk parameter... For this, django-debug-toolbar can help to see what are you quering to db, i recommend to install and play with this great tool I will read about, i want to know whats

Re: self.foreign_related_fields[0] IndexError: tuple index out of range

2019-11-26 Thread Integr@te System
Hi man, And u see error occur again, isn't it? Do you differ two file that app output when you migrated? On Tue, Nov 26, 2019, 22:40 Ahmad Saki wrote: > organization.Organization model: > > from django.db import models > > class Organization(models.Model): >orgid =

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Could it possibly be that it is trying to match this entire value? /viewLit/edit/circuit/STTK-100G-18040-01-WRBB/ and if so what am I doing wrong in my urls and views that I am not dropping /viewLit/edit/circuit/? -- You received this message because you are subscribed to the Google Groups

Re: self.foreign_related_fields[0] IndexError: tuple index out of range

2019-11-26 Thread Ahmad Saki
organization.Organization model: from django.db import models class Organization(models.Model): orgid = models.IntegerField(max_length=6, primary_key=True) name = models.CharField(max_length=50) phone = models.CharField(max_length=20,null=True,blank=True,default=None) email =

Re: self.foreign_related_fields[0] IndexError: tuple index out of range

2019-11-26 Thread Integr@te System
hi, inspect your typo and Organization model. On Tue, Nov 26, 2019, 16:31 Ahmad Saki wrote: > Dear, > Thanks for your response. > I use the foreign key field 'orgid' or not but got the same error. If I > want to use this then where is my fault for this error! > > > On Tuesday, November 26, 2019

Which tool for editable text file uploading ?

2019-11-26 Thread Olivier
Hello, I'm quite new to Django. I'm working with Django 2.2. I would like to let my web app admin users, to be able to: - upload some text files - edit those files through appropriate view. Other requirements: - Factory Boy integration - PostgreSQL support I've seen these Django Packages:

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Thanks for the reply Gil i did this and was able to find this object. Python 3.6.8 (default, Aug 7 2019, 17:28:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from editLit.models import

Django begginer

2019-11-26 Thread Elijah O. Raji
What exactly do you want the variable 'project' to do because you did not Include any field with 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 begginer

2019-11-26 Thread Daniel Almeida
HI guys I´m trying to make a simple timesheet app, first time I´m programming. So I have this code where I set in models.py the Client and then I want to have the Project class sync with the Client class. So for each Client I have a different set of Projects. Now my problem is in Task class I

Re: self.foreign_related_fields[0] IndexError: tuple index out of range

2019-11-26 Thread Ahmad Saki
Dear, Thanks for your response. I use the foreign key field 'orgid' or not but got the same error. If I want to use this then where is my fault for this error! On Tuesday, November 26, 2019 at 12:11:58 PM UTC+6, Integr@te System wrote: > > Hi man, > > Check 'class UserManager(): ..orgid =