You are not logged in.

Change Language:

Profile for Delfins

Name Delfins
Email Address n/a
Posts5
  • Which Hosting? How
    Board » Getting Started » Setup and Configuration
    Hi guys,

    I started learning Django developing som simple applications, following TheUltimateDjangoGuide. But I'm in trouble now. infact I want to know what type of hosting I had to buy in order to run the applications I've created. I need a Linux Hosting? A Windows One? Or other? I've to install on the hosting some additionals modules? I'm confused,

    thanks

    G.
  • Re: Fill a 2-D Array
    Board » Django » Views
    Ohhhhh incredible, what stupid error! I've lost 3 hours yesterday night on such a stupid error :-D Thankyou, now it work, the problem was here!

    Thanks very much!

    G.
  • Fill a 2-D Array
    Board » Django » Views
    Hi,

    sorry for the questions, I think it is a very "newbie's one". I have to fill 2-D array, in order have a list like this:

    List table content .

    For each first-element of List (like List1) i want a second list o elements (content).

    This is my code, but i don't work:

    list=[]
    cursor = connection.cursor()
    cursor.execute("""
    DESCRIBE """+table+"""
    """)
    row = cursor.fetchall()
    for i in range(0,len(row)):
    list.append(row0)
    cursor.execute("""SELECT """+row0+""" FROM """+table+"""""")
    output = cursor.fetchall()
    for j in range(0,len(output)):
    list=[]
    list.append(str(outputj))

    (As you can see i want to fill the list with the contents of a db. The first [] should contains the name of the columns, the second [] should contain the values of each record in that columns.

    Thanks, thanks very much
  • Re: Error: "Illegal mix of collations" in ADMIN Page
    Board » Django Standard Library » Admin
    Thanks very much, i'll try and i'll let you know!

    G.
  • Error: "Illegal mix of collations" in ADMIN Page
    Board » Django Standard Library » Admin
    Hi, I'm following this guide http://www.djangobook.com/en/2.0/chapter06/ in order to learn Django, but I'm in trouble. When I go to http://127.0.0.1:8000/libri/admin ("libri" is the name of my website)

    and a try to log-in with username and password of my superuser, a recieve this error:

    Exception Type: OperationalError
    Exception Value:
    (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation ' IN '")
    Exception Location: C:\Python25\Lib\site-packages\MySQLdb\connections.py in defaulterrorhandler, line 35

    I've tried to convert every admin-table in the database from latin charset to utf8, but it hasn't changed anything...

    What I've to do?

    Thanks


Powered by Sphene Community Tools