Simown's Profile User Rating: *****

Reputation: 319 Architect
Group:
Expert
Active Posts:
653 (0.41 per day)
Joined:
20-May 10
Profile Views:
14,747
Last Active:
User is offline Aug 31 2014 05:10 AM
Currently:
Offline

Previous Fields

Country:
GB
OS Preference:
Linux
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
175
Expert In:
Python

Latest Visitors

Icon   Simown finished exams. I didn't know being this tired was a thing.

Posts I've Made

  1. In Topic: django manage.py failing on locale.getdefaultlocale()

    Posted 14 May 2013

    Huzzah! If only "wait for someone else to fix the bug" was always the answer :)
  2. In Topic: django manage.py failing on locale.getdefaultlocale()

    Posted 14 May 2013

    Is there a downside to downgrading back to 1.1.1 if it works? Or perhaps get it working under 1.1.1 first and then try and get it working under 1.4.3. Fortunately, they list most backwards incompatible feature in the changelogs when a new version is released (I think), so it may just be a case of scouring them and tweaking if you went that way.

    Good luck with that.
  3. In Topic: django manage.py failing on locale.getdefaultlocale()

    Posted 14 May 2013

    I figured you might have tried that :) Don't think I can offer much more light on it right now.

    I really like working with Django, if you have a Python backend I'd definitely say Django was a good candidate for working with it over other web frameworks anyway. Hopefully it will all work out, I'd be interested to know what the fix was.

    Edit: I found this blogpost about locale error in manage.py, but a different part. Their solution was to export the locale variables in the environment instead of in the Python files.
  4. In Topic: django manage.py failing on locale.getdefaultlocale()

    Posted 13 May 2013

    I haven't used Django for a couple of years now probably, and never had this error since it was before 1.4.3 anyway. This may be something you've already tried.. but let's see.

    When you put "in a line to explicitly set locale in the manage.py script" was it:
    os.environ.setdefault('LANG','en_US')
    

    also:
    locale.setlocale(LC_ALL, '')
    

    Lets it use the default locale as defined by the LANG variable. (Python docs)

    There is a set locale in the locale module, and default one in the os module, and perhaps some other places. Try sticking one of those (if you haven't) at the top of manage.py.
  5. In Topic: Simple python program

    Posted 16 Feb 2013

    Take the triangular brackets out, I just used them to denote variables where your path and file goes try:
    python Python33\sort.py
    

My Information

Member Title:
Blue Sprat
Age:
24 years old
Birthday:
November 23, 1989
Gender:
Location:
Liverpool, England
Years Programming:
5
Programming Languages:
Python, C, Java, Scheme, PHP, JavaScript, Perl, Maude (sadly)

Contact Information

E-mail:
Private

Comments

Page 1 of 1
  1. Photo

    mamelove25 Icon

    19 Feb 2013 - 10:58
    Hello My Dear, My Name is Mame. i saw your profile today and became interested in you,i will also like to know you more,and if you can send an email to my email address,i will give you my pictures here is my email address (mame25live@yahoo.co.uk) I believe we can move from here! Am waiting for your mail to my email address above because i have much to tell you,
    love Miss Mame.
  2. Photo

    Simown Icon

    05 Nov 2011 - 14:25
    Hey atraub! Thanks again!
  3. Photo

    atraub Icon

    05 Nov 2011 - 11:53
    Hey dude, congrats on becoming my fellow forum leader!
  4. Photo

    Simown Icon

    22 Oct 2011 - 16:55
    Thanks preb!
  5. Photo

    brep Icon

    22 Oct 2011 - 15:35
    Congrats on promotion to Expert!
  6. Photo

    Vator Icon

    16 Aug 2011 - 15:35
    Thank you very much!
  7. Photo

    Vator Icon

    12 Aug 2011 - 16:56
    Say 'hi' to me!
  8. Photo

    Vator Icon

    27 Jul 2011 - 17:09
    Hi
  9. Photo

    westforduk Icon

    23 Jan 2011 - 12:21
    Sneakyyy!
  10. Photo

    Simown Icon

    23 Jan 2011 - 06:37
    I'd be happy to help if you posted your code in the Python section of the forums.
  11. Photo

    pemdas Icon

    22 Jan 2011 - 21:52
    I don't understand the computation of how to solve the problem, not coding but the math. I need to a program that reads in the x and y coordinates of a triangle’s vertex's. I need to compute and output the triangle’s perimeter. I was told I could use Pythagorean Theorem 3 times and I could use
    Math.sqrt((x2 –x1) 2 + (y2 –y1)2)to compute each side length. A sample input and output...
Page 1 of 1