Re: Error UnicodeDecodeError when access http://127.0.0.1:8000/admin/

2013-08-02 Thread Hoàng Trần
Hi Mike, Thank you for trying to help me. I've found the origin of my problem. It was that my computer is infected by some viruses. So in every .html files, they were included with a snippet of VBScript Code. It make Template Engine can not parse template files. In my case, every .html files in

Re: Custom column names in ManyToMany Field intermediate table

2013-08-02 Thread Drew Ferguson
Hi If I understand you correctly, you can use the db_column option for any field to specify the name of a column in the database. For example othertable = models.ManyToManyField('OtherTable',db_column='otid') Instead of the database column name defaulting to "othertable_id", it will be "otid"

Custom column names in ManyToMany Field intermediate table

2013-08-02 Thread Akshay Kapoor
Hi, I am building a UI for java application in django. I want to create Java tables according to the ones created by JPA. For this when i use the ManyToMany Field, the newly created intermediate table has column names which are not matching the ones with the JPA. Is there any way that i can g

Re: Error UnicodeDecodeError when access http://127.0.0.1:8000/admin/

2013-08-02 Thread Mike Dewhirst
On 3/08/2013 2:44am, Hoàng Trần wrote: Hi everybody, I am very new to Django. I've just installed it and walked through https://docs.djangoproject.com/en/1.5/intro/tutorial01/ My environment is: windows 7 / Python 2.6.6 / Django 1.5.1 / MySQL 5.5.27 I've finished the 01 tutorial, and intend t

Re: Problem with static in Django 1.5 virtualenv

2013-08-02 Thread Jairo Alonso Velásquez
Problem is due to a bug on Django or Python, You should to set DEBUG = True in settings.py And problem gone. https://bugzilla.redhat.com/show_bug.cgi?id=962223 Hope this helps others. El jueves, 1 de agosto de 2013 21:52:51 UTC-5, Jairo Alonso Velásquez escribió: > > Hi community, I posted a

Re: Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-02 Thread Nikolas Stevenson-Molnar
Right: wget isn't necessary when you have a GUI. However, chances are you'll need gcc for something eventually (e.g., any package that isn't pure Python), so it's probably worth installing XCode /w command line tools package (incl. gcc) anyway. I agree it's a hassle to install everything else when

Error UnicodeDecodeError when access http://127.0.0.1:8000/admin/

2013-08-02 Thread Hoàng Trần
Hi everybody, I am very new to Django. I've just installed it and walked through https://docs.djangoproject.com/en/1.5/intro/tutorial01/ My environment is: windows 7 / Python 2.6.6 / Django 1.5.1 / MySQL 5.5.27 I've finished the 01 tutorial, and intend to follow tutorial 02 at here: https://d

Re: Django App - Accessing Remote MySQL Database

2013-08-02 Thread Ji Park
Thanks! I've just started really getting into Django, I had no idea there was a way to connect multiple databases and still be able to use django's ORM to control them. On Friday, August 2, 2013 6:26:23 AM UTC-7, Christian Schmitt wrote: > > You could use django's inbuild ORM: > https://docs.dja

Re: Django App - Accessing Remote MySQL Database

2013-08-02 Thread Ji Park
I was actually thinking about updating local database with raw data, but now that you mention it, I think I'd rather not. On Friday, August 2, 2013 5:58:38 AM UTC-7, Branko Majic wrote: > > On Thu, 1 Aug 2013 17:50:35 -0700 (PDT) > Ji Park > wrote: > > > Hello, I'm trying to make an app that ca

Re: Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-02 Thread Justin Michalicek
I install it on my Mac running 10.8.4 using pip on a pretty regular basis for starting new projects and testing things. I use postgres from homebrew, virtualenv and virtualenvwrapper installed as system packages, then install django as needed into virtualenvs using pip. On Friday, August 2, 20

Re: Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-02 Thread Thomas Lockhart
On 8/2/13 7:41 AM, Sithembewena Lloyd Dube wrote: Hi everyone, I just began using a new Mac at work (running OSX 10.8.2 Mountain Lion) and it seems such a mission to install Django. Python 2.7.2. is already installed. Following the official Django installation instructions, I get no further t

Re: Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-02 Thread Josh Finnie
You can get the C compiler using this: https://github.com/kennethreitz/osx-gcc-installer No need to install XCode. Josh Finnie -- mobile: (860) 716-5996 home: (202) 657-5346 On Fri, Aug 2, 2013 at 10:50 AM, Larry Martell wrote: > On Fri, Aug 2, 2013 at 8:41 AM

Re: Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-02 Thread Larry Martell
On Fri, Aug 2, 2013 at 8:41 AM, Sithembewena Lloyd Dube wrote: > Hi everyone, > > I just began using a new Mac at work (running OSX 10.8.2 Mountain Lion) and > it seems such a mission to install Django. Python 2.7.2. is already > installed. Following the official Django installation instructions,

Re: Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-02 Thread François Schiettecatte
Use curl instead, it is included by default in Mac OS X: macpro: ~ > which curl /usr/bin/curl François On Aug 2, 2013, at 10:41 AM, Sithembewena Lloyd Dube wrote: > Hi everyone, > > I just began using a new Mac at work (running OSX 10.8.2 Mountain Lion) and > it seems such a mission to inst

Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-02 Thread Sithembewena Lloyd Dube
Hi everyone, I just began using a new Mac at work (running OSX 10.8.2 Mountain Lion) and it seems such a mission to install Django. Python 2.7.2. is already installed. Following the official Django installation instructions, I get no further than trying to get wget-> which I will ned to compile wi

Re: django.contrib.auth and username's field size

2013-08-02 Thread Tom Evans
On Fri, Aug 2, 2013 at 3:21 PM, Ivan Voras wrote: > On Thursday, 25 July 2013 23:36:49 UTC+2, jondbaker wrote: >> >> Hi Ivan, and welcome. Django >= 1.5 features custom User models, which I >> believe would solve your problem: >> https://docs.djangoproject.com/en/dev/topics/auth/customizing/#speci

Re: django.contrib.auth and username's field size

2013-08-02 Thread Ivan Voras
On Thursday, 25 July 2013 23:36:49 UTC+2, jondbaker wrote: > Hi Ivan, and welcome. Django >= 1.5 features custom User models, which I > believe would solve your problem: > https://docs.djangoproject.com/en/dev/topics/auth/customizing/#specifying-a-custom-user-model > Hello, I have looked at th

Re: Where is CBV & Formset docs

2013-08-02 Thread Drew Ferguson
Excellent! Thanks On Fri, 2 Aug 2013 23:27:56 +1000 Lachlan Musicman wrote: > You want Andrew Ingram's django-extra-views > https://github.com/AndrewIngram/django-extra-views > > I did extensive research (ie, no coding) and django-extra-views looks > to be the best of the options. > > Django c

Re: Where is CBV & Formset docs

2013-08-02 Thread Lachlan Musicman
You want Andrew Ingram's django-extra-views https://github.com/AndrewIngram/django-extra-views I did extensive research (ie, no coding) and django-extra-views looks to be the best of the options. Django core doesn't deal with teh cbv/formset problem very well (yet) - there are ways they can be ma

Re: Django App - Accessing Remote MySQL Database

2013-08-02 Thread Christian Schmitt
You could use django's inbuild ORM: https://docs.djangoproject.com/en/dev/topics/db/multi-db/ And just copy the database. Am Freitag, 2. August 2013 02:50:35 UTC+2 schrieb Ji Park: > > Hello, I'm trying to make an app that can periodically access a remote > mysql database. > > This app will query

Re: Django App - Accessing Remote MySQL Database

2013-08-02 Thread Branko Majic
On Thu, 1 Aug 2013 17:50:35 -0700 (PDT) Ji Park wrote: > Hello, I'm trying to make an app that can periodically access a remote > mysql database. > > This app will query the remote database and copy some data to the local > postgresql database. > > So far I know that celery can be used to sch

Where is CBV & Formset docs

2013-08-02 Thread Drew Ferguson
Hi I am having trouble locating documentation illustrating use of formsets with CBVs. Can someone point me at a page please? Issue #17700 in the tracker has been closed suggesting there is something somewhere -- Drew Ferguson -- You received this message because you are subscribed to the Goog

Re: Problem with static in Django 1.5 virtualenv

2013-08-02 Thread Mário Neto
Suggestion: *Install Unipath with a:* $ pip install Unipath *and in settings file:* from unipath import Path PROJECT_DIR = Path(__file__).parent STATIC_ROOT = PROJECT_DIR.child('static') *Try in urls.py* from django.conf.urls.static import static from django.contrib.staticfiles.urls import sta