Re: 'MySQLdb.constants.FIELD_TYPE' has no attribute 'JSON'

2021-02-17 Thread Mohammad Anarul
You can run it pip install mysqlclient==2.0.1 On Wed, Feb 17, 2021 at 8:53 PM Brijesh Soni wrote: > Hello All, > > > I have Install the Python 3.6 32Bit with My SQL 32bit and Install the > mysqlclient==1.3.11 > > but when I am starting the Django with the > > runserver command, I am getting be

Re: setting up urls of many apps

2021-02-17 Thread RANGA BHARATH JINKA
Hi, Please follow these docs https://docs.djangoproject.com/en/3.1/ref/urls/#include On Thu, Feb 18, 2021 at 12:12 PM Peter Kirieny wrote: > if self.pattern.name is not None and ":" in self.pattern.name: > TypeError: argument of type 'type' is not iterable > > that's the error > > On Thu, 1

Re: setting up urls of many apps

2021-02-17 Thread Peter Kirieny
if self.pattern.name is not None and ":" in self.pattern.name: TypeError: argument of type 'type' is not iterable that's the error On Thu, 18 Feb 2021 at 09:39, Peter Kirieny wrote: > thanks sir > that's done though the error still persists > > On Thu, 18 Feb 2021 at 09:32, RANGA BHARATH JI

Re: setting up urls of many apps

2021-02-17 Thread Peter Kirieny
thanks sir that's done though the error still persists On Thu, 18 Feb 2021 at 09:32, RANGA BHARATH JINKA wrote: > Hi, > > Please check namespace='core' in project urls.py. For shops app also > namespace is same. Please change this namesapce to Shops. > > All the best > > On Thu, Feb 18, 2021 at

Re: setting up urls of many apps

2021-02-17 Thread RANGA BHARATH JINKA
Hi, Please check namespace='core' in project urls.py. For shops app also namespace is same. Please change this namesapce to Shops. All the best On Thu, Feb 18, 2021 at 11:56 AM Peter Kirieny wrote: > in the projects urls.py > > from django.conf import settings > from django.conf.urls.static im

Re: setting up urls of many apps

2021-02-17 Thread Peter Kirieny
in the projects urls.py from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('accounts/', include('allauth.urls')), path('', include('cor

Re: I have a 2drop down list and 1 description box i want to save the data from all this to my postgresql data base

2021-02-17 Thread itmind club
SAME ISSUE WITH ME On Wed, Feb 17, 2021 at 2:09 PM neha bhurke wrote: > Hii Everyone, > > I have created a form with 2dropdown list , 1 description box and 1 > datetime field but data is not saved in the database. I am getting problem > due to date can anyone help me please.. > > This is my mod

'MySQLdb.constants.FIELD_TYPE' has no attribute 'JSON'

2021-02-17 Thread Brijesh Soni
Hello All, I have Install the Python 3.6 32Bit with My SQL 32bit and Install the mysqlclient==1.3.11 but when I am starting the Django with the runserver command, I am getting below Error Thanks in Advance. === Error occurred while reading WSGI handler: Traceback (most recent

Re: setting up urls of many apps

2021-02-17 Thread Nicolas nasr
Can you please show your urls.py file On Wednesday, February 17, 2021 at 8:31:50 AM UTC+2 kirien...@gmail.com wrote: > someone to help me to set up urls of two different apps in django project > please, i keep on getting errors > am new > -- You received this message because you are subscrib

Raw View class without form and model

2021-02-17 Thread Tal Bar-Or
Hello , I would like to write Raw view model for current scenario, i started writing portal for self service AD change password , the view for the change password is no need any model ,since it should be is using background ldap3 library , in addition i would like in a POST method to read th

Re: Timezone UTC Problem

2021-02-17 Thread neha bhurke
Tysm Sir It is working Regards Neha On Wednesday, February 17, 2021 at 5:19:56 PM UTC+5:30 professional...@gmail.com wrote: > DATETIME_FORMAT = '%Y-%m-d %H:%M:%S' > > LANGUAGE_CODE = 'en-us' > > TIME_ZONE = 'Asia/Karachi' > > > USE_I18N = True > > USE_L10N = True > > USE_TZ = True > On We

Re: Timezone UTC Problem

2021-02-17 Thread Atif Usman
DATETIME_FORMAT = '%Y-%m-d %H:%M:%S' LANGUAGE_CODE = 'en-us' TIME_ZONE = 'Asia/Karachi' USE_I18N = True USE_L10N = True USE_TZ = True On Wed, Feb 17, 2021 at 4:48 PM Omkar Parab wrote: > LANGUAGE_CODE = 'en-us' > > TIME_ZONE = 'Asia/Kolkata' > > USE_I18N = True > > USE_L10N = True > > USE_T

Re: Timezone UTC Problem

2021-02-17 Thread Omkar Parab
LANGUAGE_CODE = 'en-us' TIME_ZONE = 'Asia/Kolkata' USE_I18N = True USE_L10N = True USE_TZ = True On Wed, Feb 17, 2021, 5:13 PM neha bhurke wrote: > How to set the Time zone in Setting.py > How to set UTC.. > > -- > You received this message because you are subscribed to the Google Groups >

Timezone UTC Problem

2021-02-17 Thread neha bhurke
How to set the Time zone in Setting.py How to set UTC.. -- 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: How to pass multiple query sets in Django?

2021-02-17 Thread Luciano Martins
show the sql you're trying to ... Em terça-feira, 16 de fevereiro de 2021 às 10:58:44 UTC-3, anilse...@gmail.com escreveu: > > How to pass multiple query sets in Django? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from th

Re: I have created a application in which i want to filter table between dates (from and to date) but i am not getting desired out put... Please guide me

2021-02-17 Thread neha bhurke
tysm sir On Wednesday, February 17, 2021 at 9:24:54 AM UTC+5:30 subaru_87 wrote: > Neha, try changing your template for loop from: > {% for results in formdata %} > > To: > {% for results in search %} > > The name of your queryset in your context (d = {'search': search, 'fd': > fd, 'td': td})

I have a 2drop down list and 1 description box i want to save the data from all this to my postgresql data base

2021-02-17 Thread neha bhurke
Hii Everyone, I have created a form with 2dropdown list , 1 description box and 1 datetime field but data is not saved in the database. I am getting problem due to date can anyone help me please.. This is my models.py class data(models.Model): machinename = models.CharField(max_length=100) act

Re: setting up urls of many apps

2021-02-17 Thread Peter Kirieny
Exception in thread django-main-thread: Traceback (most recent call last): File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner self.run() File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run

how to display the latest updated records in table -Django

2021-02-17 Thread Shailesh Yadav
I am having a table in the template file and I'm updating the data by using the .xls file. Can anyone please help me with how to display the latest added records with some hint(or by adding another column) *OR* how to differentiate which are updated records and which are newly added records?