Find duplicates with regex

2015-01-25 Thread yakkadesign
I posted this question to stackover flow but didn't get a good answer: http://stackoverflow.com/questions/28080545/django-find-duplicates-with-queryset-and-regex I want to find duplicates in db fields with a regex. I know I can use this to find duplicates: self.values('Website').annotate(count=

wysiwyg image manager suggestions

2014-08-20 Thread yakkadesign
Any suggestions on a wysiwyg editor for Django that will allow: - browser images and insert image in wysiwyg - upload image to server to user specified dir - delete image from server - create new folder on server - delete folder on server - open source with flexible license(i

Re: wysiwyg image manager suggestions

2014-08-20 Thread yakkadesign
I tried django-ckeditor-updated . The file browser never loaded and images were given the full path. Also it would automatically upload to a path with the date; I wanted to user to tell where to upload. -- You received this message beca

problem implementing admin inline

2014-11-20 Thread yakkadesign
I have a model that has a foreignKey to a model. I want to be able to edit the model within the admin in moduleApp.models I have something like: class module(models.Model): HTML = models.TextField( blank=True, null=True ) in articleApp.models I have something like: class article(models.Mo

Does ticket 19866 apply to Django 1.4

2014-12-04 Thread yakkadesign
Does ticket 19866 apply to Django 1.4? Reading through the notes, it seems it does but I'm still getting a 500 error. If not, is there a way to keep Django from returning a 500 error. I've found other people filtering these out. I don't want to

Django-stripe-payments example project

2014-05-28 Thread yakkadesign
Does anyone know of an example project with django-stripe-payments? All the documentation and tutorials I've found stops after configuring the admin backend. I'm not sure how to setup the forms so that the end user can pay and manage their subscription. I want to use stripe. I'm open to o

LiveServerTestCase modifies production database when ran in python script

2014-06-11 Thread yakkadesign
When I run my tests in a python script it modifies my production database. If I run from the command line it doesn't. When I say modify, it wipes out my existing users and replaces them with the users I create for testing. I followed this for the setup: https://docs.djangoproject.com/en/1.4

Re: LiveServerTestCase modifies production database when ran in python script

2014-06-18 Thread yakkadesign
The solution was to use DjangoTestSuiteRunner. I ended up copying the method DjangoTestSuiteRunner.run_tests and modifying to use a test suite. The code is from django.test.simple import DjangoTestSuiteRunnerfrom django.utils import unittest suite_payment = unittest.TestLoader().loadTestsF

Form on each page problem when upgrading from Django 1.4

2017-11-12 Thread yakkadesign
I'm in the process of upgrading a website from Django 1.4 and I'm run into a problem of getting my code that shows a form on almost every page migrated. I eventually want to upgrade to Django 1.11 but I'm currently working on upgrading from Django 1.4 to Django 1.5. I have a “request informat

Re: Form on each page problem when upgrading from Django 1.4

2017-11-15 Thread yakkadesign
@Matthew, It's not a login form. It's a normal form. I don't like the AJAX way. It adds moving parts and requires a front end rework (and more tests, browser compatibility tests, potential issues with plugins blocking, etc.). On Sunday, November 12, 2017 at 12:56:53 PM UTC-5, yakka...@gm

Re: Form on each page problem when upgrading from Django 1.4

2017-11-15 Thread yakkadesign
Anyone else have ideas using the Django backend? On Sunday, November 12, 2017 at 12:56:53 PM UTC-5, yakka...@gmail.com wrote: > > I'm in the process of upgrading a website from Django 1.4 and I'm run into > a problem of getting my code that shows a form on almost every page > migrated. I eventu

bulk add m2m relationship for multiple instances

2015-08-11 Thread yakkadesign
My app is getting killed by adding m2m relationships. I can bulk create the objects but for the m2m I have to iterate over them which is super slow. I'm looking for a way to bulk add the m2m relationships. Here is a example: class Sensor(models.Model): Name = models.CharField( max_

Re: bulk add m2m relationship for multiple instances

2015-08-12 Thread yakkadesign
Hi Erik, In the actually code I create and preload all the DataPoints and Sensors outside the loop. I found a dict was too slow for DataPoints. I ended up sorting the DataPoints query by date and using the fact that they were in the same order as the CSV to speed things up. Looping through

Re: bulk add m2m relationship for multiple instances

2015-08-12 Thread yakkadesign
I'll run a test with the dict vs list+position counter. I know I saw a speed improvement but I can't remember if that was the only thing I changed. I'd have to change a lot of code if I change the DB scheme so I'm not wanting to create an intermediate table. I'm going to go down the SQL pa

Re: bulk add m2m relationship for multiple instances

2015-09-08 Thread yakkadesign
I reviewed my code and the slow speed I was talking about was when I said |if a in myList]. I switched to the dict and I haven't noticed a performance hit from keeping a pointer to a list. I ended up switching to Postgres COPY for the importing. It's a lot faster. Brian -- You rec