Recipe to upgrade to Python 3.x on Ubuntu 12.04 and 14.04

2016-09-06 Thread Mike Dewhirst
I'm looking for a step-by-step system admin recipe to get away from Python 2.7 because unicode on 2.7 is doing my head in. This is ugly I know but that's how it is. Staging server is Ubuntu 12.04on local hardwarewith Python 2.7 and it runs Apache2 and mod_wsgi. It serves Django, Subversion, Bu

Re: Django form Datetime field valid error after add django.middleware.locale.LocaleMiddleware'

2016-09-06 Thread 广宏伟
Resloved, datetime format issue, More see stackoverflow 在 2016年9月5日星期一 UTC+8上午12:15:35,广宏伟写道: > > I use django version 1.10, When a add LocaleMiddleware into settings.py, > form valid error. I have been makemessage and compile it > > Here is my model and form, > > > > class User(AbstractUser)

Re: Maintaining old django code

2016-09-06 Thread Andreas Kuhne
2016-09-06 16:07 GMT+02:00 Andromeda Yelton : > +1 to Erik's plan. > > In deciding whether to stop at 1.8 or go all the way to 1.10 I'd ask > myself the following questions: > > * Are there features from 1.10 (that aren't in 1.8) that I'd really like > to have? (channels is the big one for me) > >

Re: Try to read data from remote database

2016-09-06 Thread Tim Graham
Please take a look at https://docs.djangoproject.com/en/stable/howto/legacy-databases/ On Tuesday, September 6, 2016 at 3:16:29 PM UTC-4, MPY wrote: > > Hi everyone , I am new with Django and I try to connect with external > database to read the data and show in my view. > > Hi create a new ent

Try to read data from remote database

2016-09-06 Thread MPY
Hi everyone , I am new with Django and I try to connect with external database to read the data and show in my view. Hi create a new entry in setting.py file with the new database info that I want connect. Something like this. 'externDB': { 'ENGINE': 'django.db.backends.mysql',

Re: FileField with UUID filename

2016-09-06 Thread Jon Ribbens
On Tuesday, 6 September 2016 17:05:39 UTC+1, Tim Graham wrote: > > See https://code.djangoproject.com/ticket/4345 for the ticket that > disallowed primary_key/unique on FileField. > I've now opened a new ticket #27188 to suggest reversing this change ;-) > You can write a custom field to get F

Re: FileField with UUID filename

2016-09-06 Thread Tim Graham
See https://code.djangoproject.com/ticket/4345 for the ticket that disallowed primary_key/unique on FileField. You can write a custom field to get FileField to use a UUID in the database (and likely also lift the other restrictions you want to bypass). On Sunday, September 4, 2016 at 11:54:06 A

Re: Django migrations taking all the memory on Django 1.9

2016-09-06 Thread Tim Graham
Per our support versions policy, Django 1.9.x is only receiving fixes for security and data loss issues. Migrations optimizations are unlikely to qualify for a backport to Django 1.10.x either. Hopefully that doesn't demotivate you from contributing an improvement. https://docs.djangoproject.co

Re: Maintaining old django code

2016-09-06 Thread bobhaugen
We migrated a huge codebase from 1.4 to 1.8 like this: https://github.com/FreedomCoop/valuenetwork/issues?q=is%3Aissue+is%3Aclosed+label%3Aupgrade Might give you some clues. Short version: one release at a time. -- You received this message because you are subscribed to the Google Groups "Dja

Re: Maintaining old django code

2016-09-06 Thread Andromeda Yelton
+1 to Erik's plan. In deciding whether to stop at 1.8 or go all the way to 1.10 I'd ask myself the following questions: * Are there features from 1.10 (that aren't in 1.8) that I'd really like to have? (channels is the big one for me) * Are there important third-party dependencies that are only

Re: Maintaining old django code

2016-09-06 Thread Michal Petrucha
On Tue, Sep 06, 2016 at 11:12:14AM +0200, Andreas Kuhne wrote: > 2016-09-06 10:57 GMT+02:00 Erik Cederstrand : > > > > > > Den 6. sep. 2016 kl. 10.20 skrev Lekan Wahab : > > > > > > Good morning guys. > > > I was handed a project at work which was written as far back as 2012. > > > Quiet a lot of

Re: Maintaining old django code

2016-09-06 Thread Andreas Kuhne
2016-09-06 10:57 GMT+02:00 Erik Cederstrand : > > > Den 6. sep. 2016 kl. 10.20 skrev Lekan Wahab : > > > > Good morning guys. > > I was handed a project at work which was written as far back as 2012. > > Quiet a lot of the packages used in the project are either no longer > being maintained. > > R

Re: Maintaining old django code

2016-09-06 Thread Erik Cederstrand
> Den 6. sep. 2016 kl. 10.20 skrev Lekan Wahab : > > Good morning guys. > I was handed a project at work which was written as far back as 2012. > Quiet a lot of the packages used in the project are either no longer being > maintained. > Rebuilding the project from scratch is not option. > There

Maintaining old django code

2016-09-06 Thread Lekan Wahab
Good morning guys. I was handed a project at work which was written as far back as 2012. Quiet a lot of the packages used in the project are either no longer being maintained. Rebuilding the project from scratch is not option. There are way too many moving parts and way too many apps to rebuild it.