Re: Find duplicates with regex

2015-01-25 Thread Stephen J. Butler
The benefit to doing stuff like this in the database is that the database can do it smarter than you can in Python. Is that true in this case? I think not. If we were talking raw MySQL I'd suggest running your Website column through something like REPLACE(Website, '://www.', '') and then the count

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=

Re: sending email

2015-01-25 Thread sum abiut
Hi Collin, Thank you very much for your help. its works perfectly. The next thing i want to do is to send an email to a specific user that i select on a table. when an authorized user select a user to approve his or her leave i want an email to be send to the user. so basically when i click on the

gis: geo_db_type error in run_checks() in 1.7 (not 1.6)

2015-01-25 Thread dnelson
Hi, Wanted to throw this out there, not sure truly if it is my fault or a bug. Just upgraded from (python 2.6.x, django 1.6) to (python 2.7.x, django 1.7). If I invoke manage.py on any subcommand, I get an error as follows: [app_dev]$ python2.7 manage.py sql Traceback (most recent c

Re: syncdb error with Mysql database on Windows 7

2015-01-25 Thread Carlos Andre
install PyMySQL, after create a user e a databases in mysql terminal; e.g:1º)create user 'root'@'localhost' identified by 'fish1777'; 2º) create database Mydb; 3º) grant all privileges on Mydb.* to 'root'@'localhost' identified by 'fish1777'; use syncdb. 2015-01-25 6:04 GMT-02:00 olek.russ : >

Re: Why using admin.py in apps?

2015-01-25 Thread Aliane Abdelouahab
it seems that i need to time and practice to get that logic, my old way was using the same code and import it like a normal module (as a file and not as a whole structure). Le dimanche 25 janvier 2015 20:49:20 UTC+1, Jorge Andrés Vergara Ebratt a écrit : > > You can make one, but imagine having

Re: Why using admin.py in apps?

2015-01-25 Thread Jorge Andrés Vergara Ebratt
You can make one, but imagine having 12-15 apps and managin all of them in one admin.py file, that would make debugging harder, the admin.py per app approach helps you keep all of your app's login inside the app, makes it easy to re-use it On Sun Jan 25 2015 at 2:47:18 PM Aliane Abdelouahab wrote

Re: Why using admin.py in apps?

2015-01-25 Thread Aliane Abdelouahab
ah! because the admin in my mind was something i manade the entries? something like database management interface, then it would be easier to make it general of the global application, no? Le dimanche 25 janvier 2015 20:07:25 UTC+1, Kristofer Pettijohn a écrit : > > Your admin.py is specific to

Re: Why using admin.py in apps?

2015-01-25 Thread Kristofer Pettijohn
Your admin.py is specific to each app, on how you want the models for your app to show up (or not show up) in the admin page. Each app's admin.py will be unique to the models specific in that app. The tutorial in the Django documentation shows a good example. From: "Aliane Abdelouahab" To

Why using admin.py in apps?

2015-01-25 Thread Aliane Abdelouahab
Hi, My question seem dumb, but what is the purpose of repeating the admin.py in the apps? as i understand, if i want to have a good practice, i separate my application on mini apps so i can re-use them, and one of the apps that is always used, are Logins (Registrations), so, why i have to repe

Re: A sample project showing server side rendering with React and Django

2015-01-25 Thread bobhaugen
Ustun, Please say more about the advantages? As in, what can you do by adding a node.js server to the mix (and so requiring everybody else who wants to use your Django project to do the same, learn and manage node.js, etc.) that you could not do with just plain Django on the server and React.js

Re: A sample project showing server side rendering with React and Django

2015-01-25 Thread Ustun Ozgur
On Sunday, January 25, 2015, bobhaugen wrote: > Ustun, do you think it is necessary to use a node.js server to interact > with react.js on the client side? Seems like a lot of added complexity. But > I could be missing something important... > Hi Bob, This is definitely not the only way but I d

Django for backend and frontend

2015-01-25 Thread john
Hello, Shall I use Django for backend and frontend or is it a good idea to use Angular JS for frontend and Django for backend. What are the advantages and disadvantages? I am trying to set up one single page website. It is not a platform. Most of the work is done at the backend. The frontend h

Re: syncdb error with Mysql database on Windows 7

2015-01-25 Thread olek.russ
I also followed note for create schema ( have watched https://www.youtube.com/watch?v=EL39BGSUkzw video in addition ) and got success. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Smoke tests

2015-01-25 Thread Cal Leeming
Hi Tom, Personally I'm not convinced by the concept of smoke tests in production, if you have a proper development workflow, and your build works in dev, then you should be confident that your build will work in prod. Testing URL endpoints in prod should be part of your devops testing, and kept co

Re: A sample project showing server side rendering with React and Django

2015-01-25 Thread bobhaugen
Ustun, do you think it is necessary to use a node.js server to interact with react.js on the client side? Seems like a lot of added complexity. But I could be missing something important... On Saturday, January 24, 2015 at 7:13:56 AM UTC-6, Ustun Ozgur wrote: > > Last year I gave a conference ta

Re: Django + Bamboo

2015-01-25 Thread Cal Leeming
CircleCI is also worthy of mentioning, I preferred them over Codeship due to flexibility. Cal On Fri, Jan 23, 2015 at 6:46 PM, Daniel França wrote: > I gave up Bamboo and start using codeship, 100 times easiet > > On Fri 23 Jan 2015 at 19:17 Gabriel Patiño wrote: >> >> Daniel, >> >> Did you mak