Squashed migration showing unapplied in python3 but applied in python2

2022-03-11 Thread Vaibhav lodha
Hi Everyone, In my org, we are trying to migrate from python2 to python3 with the django version as 1.9.4, but stuck in one issue which is we have 2 migrations which squashed, when we apply them in python2, it shows applied and migrate doesn't re-run it but when we run migrate with python3, it

Re: Django Admin Custom View Query Generation

2020-04-26 Thread Vaibhav Mishra
You can use built-in Django ORM methods to perform calculated operations on existing models On Thursday, December 12, 2019 at 11:21:14 PM UTC+5:30, Balaji wrote: > > Hi > > Can anyone please tell me how can we generate Custome Model view for > different report where we use avg, min , max, sum, c

Re: Need to Store All Model data in RAM

2019-03-13 Thread Vaibhav Mishra
ist = list(Modelname.objects.all()) > > I hope this clears your confusion. > > > > Regards, > Chetan Ganji > +91-900-483-4183 > ganji....@gmail.com > http://ryucoder.in > > > On Wed, Mar 13, 2019 at 9:32 PM Vaibhav Mishra > wrote: > >> Thanks Andre

Re: Need to Store All Model data in RAM

2019-03-13 Thread Vaibhav Mishra
ould need to create a list from the items, then do the comparison in > python - which probably will be slower (but not necessarily). > > Regards, > > Andréas > > > Den ons 13 mars 2019 kl 12:44 skrev Vaibhav Mishra >: > >> Hi All, >> >> I have a table

Re: Need to Store All Model data in RAM

2019-03-13 Thread Vaibhav Mishra
Hi Chetan, Thanks for your help, I have a confusion , the code uses another_list as a list on line 1 ,and is being queried in the loop below , but where did it get populated ? Sorry if I sound stupid. On Wednesday, March 13, 2019 at 10:08:39 AM UTC-4, Chetan Ganji wrote: > > Hi V

Need to Store All Model data in RAM

2019-03-13 Thread Vaibhav Mishra
Hi All, I have a table of over 100,000 rows which I need to compare with another list to find if the entry matching a rows is in there or not The following does not work getdata = data.objects.all() mydata= getdata.filter(mycriteria) Process information and comparision from 'mydata' .

Django Queryset for Multiple set

2019-03-13 Thread Vaibhav Mishra
Hi All, I am trying to achieve below , variable = object.filter(clientname =cname , clienttype='windows' and clienttype='unix', errorcode='20') Notice that I want to filter by two or more values in second parameter.. How can we do this ? -- You received this message because you are subscr

Work from home opportunites

2019-02-22 Thread Vaibhav Kumar Chaudhary
Hi all, I am looking for work from home opportunities in Django. I have worked on a few personal projects and want to gain some industrial experience. So if anyone of you knows any opportunities. Please let me know. Thank you. -- You received this message because you are subscribed to the Goo

Django Channels

2019-01-27 Thread Vaibhav Kumar Chaudhary
I am trying to create a chat app with Django Channels and facing a bit problem here. when I type chat room's name is the form it redirects with to that link but my urls .py can not match that url and can not connect me to my views here is urls.py from django.urls import path from django.conf.u

Re: Geodjango Error

2018-10-03 Thread VAIBHAV GUPTA
2018, 13:53:41 (UTC-6), VAIBHAV GUPTA escribió: >> >> It is installed automatically at that location. I didn't specified any >> location. >> So according to you, where should I install this GDAL? >> >> On Wed, Oct 3, 2018 at 12:48 AM heriberto ochoa

Re: Geodjango Error

2018-10-02 Thread VAIBHAV GUPTA
the path de other path of python?, the path of GDAL have > all .dll file required > > El martes, 2 de octubre de 2018, 5:26:16 (UTC-6), VAIBHAV GUPTA escribió: >> >> Yaa I got the error as what you (Michal Petrucha) stated about that the >> path of GDAL_LIBRARY_PATH that I

Re: Geodjango Error

2018-10-02 Thread VAIBHAV GUPTA
Yaa I got the error as what you (Michal Petrucha) stated about that the path of GDAL_LIBRARY_PATH that I had given was of Linux. Now I changed the path (given below) according to the windows OS , still the problem is not resolved. GDAL_LIBRARY_PATH = 'C:\\Users\\gaurav\\Anaconda3\\Lib\\site-pack

Re: Geodjango Error

2018-10-01 Thread vaibhav . gupta_cs16
On Tuesday, October 2, 2018 at 3:32:18 AM UTC+5:30, vaibhav.g...@gla.ac.in wrote: > > I have installed PROJ4, GDAL and GEOS libraries using OSGeo4W installer > . But the problem is with GDAL library. > Earlier there was an error showing :- > django.core.excepti

Re: Geodjango Error

2018-10-01 Thread vaibhav . gupta_cs16
I have installed PROJ4, GDAL and GEOS libraries using OSGeo4W installer . But the problem is with GDAL library. Earlier there was an error showing :- django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal202", "gdal201", "gdal20

Geodjango Error

2018-10-01 Thread vaibhav . gupta_cs16
Currently, I am working on Geodjango. I have gone through all the procedures written in https://docs.djangoproject.com/en/2.1/ref/contrib/gis/install/#requirements for windows OS. But still I am facing an error showing : OSError: [WinError 126] The specified module could not be found You can r

Re: User Registration

2016-06-08 Thread vaibhav
HI, You can create a custom model like this and define all custom fields within it: class UserInfo(AbstractTimestampClass): user = models.ForeignKey(User) address = models.TextField(blank=True, null=True) city = models.CharField(max_length=25, blank=True, null=True) postal_code = m

Test cases are always referring to default database in case of Multiple databases

2016-06-08 Thread vaibhav
Hi, I am trying to run some test cases on one of the apps of my Django Project. My settings.py file specifies two different databases as follows: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),

Re: Getting django.db.utils.IntegrityError When migrating data from SQLite to postgreSQL

2016-02-25 Thread vaibhav jain
I have tried everything. I think now my only option is to write a Script which will read the data from SQLite and save it on postgreSQL. But how can I query different DB in Django?? can someone please tell me that. On Wednesday, February 24, 2016 at 5:48:17 PM UTC+5:30, vaibhav jain wrote

Getting django.db.utils.IntegrityError When migrating data from SQLite to postgreSQL

2016-02-24 Thread vaibhav jain
Please can someone help me to fix this issue -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from thi

Django unique constaint not working

2015-01-28 Thread vaibhav jain
Need help with this django-unique-constaint-not-working -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails f

custome not working

2014-01-18 Thread vaibhav Upadhyay
-- 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-users@googlegroups.com. V

Database doubt

2011-07-26 Thread vaibhav agarwal
Hey, I am coding in django for the first time and I had this doubt about database.At the start of coding , you are not sure of all the fields in the models of your site. So you end up making a few fields and proceed . But if at some other time , you might realise that you have to add a new field .

Re: Doubt : Redirect after registration

2011-07-26 Thread vaibhav agarwal
o-registration? In the > > database - is the user created and the active flag is true? > > > On Jul 24, 2:16 pm, vaibhav agarwal wrote: > > > > Hi, > > > > I am using Django 1.3. I have started building my first site in django > > > and it seems real fun

Re: Doubt : Redirect after registration

2011-07-25 Thread vaibhav agarwal
Hi. Yes I did set AUTHENTICATION_BACKENDS to django.contrib.auth.backends.ModelBackend in settings.py . Also doesnt Django by default set AUTHENTICATION_BACKENDS to the value even if I dont set it in the settings.py folder? Inspite of this , the solution hasnt worked :(. Thanks Vaibhav On Jul

Doubt : Redirect after registration

2011-07-24 Thread vaibhav agarwal
. How do I rectify this ? Thanks in advance for the help . Cheers Vaibhav -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email