Django and Python 2.6
I'm just starting to get into Django, and of course as of last night one of the two new Python versions went final (2.6 obviously ;)) so I'm wondering if 2.6 plus Django is ready for actual use or do the Django team need more time to finish with tweaks/cleanup?
All the google searches I did were inconclusive, I saw bits about some initial test runs on beta 2 but nothing more recent seemed to show up.
Edit: http://groups.google.com/group/django-developers/browse_thread/thread/a48f81d916f24a04
They've confirmed here 1.0 w/2.6 works fine as far as they know.
Asked by: Audrey298 | Posted: 28-01-2022
Answer 1
The impression I get is that 2.6 should work fine with Django 1.0. As found here: http://simonwillison.net/2008/Oct/2/whatus/
Answered by: Kellan655 | Posted: 01-03-2022Answer 2
Note that there is currently no python-mysql adapter for python2.6. If you need MySQL, stick with 2.5 for now.
Answered by: Richard732 | Posted: 01-03-2022Answer 3
There is an unofficial build for mysqldb 1.2.2 win32 python 2.6 @ http://www.technicalbard.com/files/MySQL-python-1.2.2.win32-py2.6.exe
Answered by: Roland605 | Posted: 01-03-2022Similar questions
django - Merge two lists of lists - Python
This is a great primer but doesn't answer what I need:
Combining two sorted lists in Python
I have two Python lists, each is a list of datetime,value pairs:
list_a = [['1241000884000', 3], ['1241004212000', 4], ['1241006473000', 11]]
And:
list_x = [['1241000884000', 16], ['...
django - Python split value of a string
I am working on a site in Python built on the back of Django(awesome framework, cant get my head around python), I looking to split a string that is returned from a database and I want it to be split when the first space occurs so I tried something like this,
{{product.name.split(' ' ,1)}}
This did not work and I get this stacktrace,
Environment:
Request Method: GET
R...
django - Weird Time Issue in Python
Problem with using times in Python.
Terminal > Python
>>> calendar.timegm(datetime.datetime.now().utctimetuple())
1258449380
This time indicates GMT: Tue, 17 Nov 2009 09:16:20 GMT
Eclipse via Django Server
>>> calendar.timegm(datetime.datetime.now().utctimetuple())
1258427784
...
django - How to read and write a file using python?
I want to write the text (which I get from AJAX) to a file, and then read it.
django - Python Fabric error
I'm running fabric (Django deployment to apache) and everything seems to work fine until I get to the task for installing the site:
def install_site():
"Add the virtualhost file to apache"
require('release', provided_by=[deploy, setup])
sudo('cd %(path)/releases/%(release)/%(release); cp %(project_name)/%(virtualhost_path)/%(project_domain) /etc/apache2/sites-available/%(project_domain)s')
s...
Django, Python, Mysql
This is the settings.py file for python. I set mysql up via macports (mysql5 & mysqldb) The problem is that I am unsure if I have settings.py configuration correct before I sync the db. Should the PORT be left blank? I believe it should. I know on my Mamp install I have it set to 3306. Thanks....
DATABASES = {
'default': {
'ENGINE': 'django.db.backends....
django - In Python, how do I check that a file is a text file?
The file is uploaded through a Django form. The contents of the file need to be saved into a models.TextField(), for editors to review it before publication.
I am already checking UploadedFile.content_type. I have considered using a regular input field, but as the text is going to be quite long, it would be unwieldy for users to cut and paste.
Django and Python + uWSGI
Using instruction I try to connect Python + uWSGI.
I made default project in a folder /home/sanya/django/pasteurl.
However, have opened it in a browser I get
uWSGI Error
wsgi application not found
Logs contain...
django - Want to find date data in python shell
I have a model something like this.
#models.py
class ItemStatusHistory(models.Model):
date = models.DateTimeField(auto_now = True)
contact = models.ForeignKey(Contact)
item = models.ForeignKey(StorageItem)
status = models.ForeignKey(Status)
user = models.ForeignKey(User)
def __unicode__(self):
return str(self.status)
I want to be able to find the date data ...
django - What is the point of Python egg files?
When I run python setup.py install django, it generates an egg file.
What is the usefulness of Python egg files?
c# - Django or Ruby on Rails
Closed. This question is opinion-based. It is not c...
django - Merge two lists of lists - Python
This is a great primer but doesn't answer what I need:
Combining two sorted lists in Python
I have two Python lists, each is a list of datetime,value pairs:
list_a = [['1241000884000', 3], ['1241004212000', 4], ['1241006473000', 11]]
And:
list_x = [['1241000884000', 16], ['...
django - What's a good way to mix RSS feeds using Python?
SimplePie lets you merge feeds together:
http://simplepie.org/wiki/tutorial/sort_multiple_feeds_by_time_and_date
Is there anything like this in the Python world? The Universal Feed Parser documentation doesn't say anything about merging multiple feeds together.
django - Python split value of a string
I am working on a site in Python built on the back of Django(awesome framework, cant get my head around python), I looking to split a string that is returned from a database and I want it to be split when the first space occurs so I tried something like this,
{{product.name.split(' ' ,1)}}
This did not work and I get this stacktrace,
Environment:
Request Method: GET
R...
django - Weird Time Issue in Python
Problem with using times in Python.
Terminal > Python
>>> calendar.timegm(datetime.datetime.now().utctimetuple())
1258449380
This time indicates GMT: Tue, 17 Nov 2009 09:16:20 GMT
Eclipse via Django Server
>>> calendar.timegm(datetime.datetime.now().utctimetuple())
1258427784
...
django - How to read and write a file using python?
I want to write the text (which I get from AJAX) to a file, and then read it.
django - Getting a Jabber status via Python
I'm developing a website using the Django framework, and I need to retrieve Jabber (okay, Google Talk) statuses for a user. Most of the Jabber python libraries seem like an incredible amount of overkill (and overhead) for a simple task. Is there any simple way to do this?
I know very little about XMPP/Jabber, though of course I'm willing to learn. Do you need to be an authenticated and "friended" user to retrieve ...
django - Python Fabric error
I'm running fabric (Django deployment to apache) and everything seems to work fine until I get to the task for installing the site:
def install_site():
"Add the virtualhost file to apache"
require('release', provided_by=[deploy, setup])
sudo('cd %(path)/releases/%(release)/%(release); cp %(project_name)/%(virtualhost_path)/%(project_domain) /etc/apache2/sites-available/%(project_domain)s')
s...
php - Django or Drupal, which one should I use that suits best my needs?
I want to learn and use Drupal or Django for the following:
dynamic web sites, medium database, multi-level users, paypal integration, content managment, speed (developing), security
I like MVC, ORM and object-oriented prg.
Which is better to jump into ? Which one is more mature, powerful, understandable, object-oriented and easier to use by the time ?
What about Python Spring ...
...
Django, Python, Mysql
This is the settings.py file for python. I set mysql up via macports (mysql5 & mysqldb) The problem is that I am unsure if I have settings.py configuration correct before I sync the db. Should the PORT be left blank? I believe it should. I know on my Mamp install I have it set to 3306. Thanks....
DATABASES = {
'default': {
'ENGINE': 'django.db.backends....
Still can't find your answer? Check out these communities...
PySlackers | Full Stack Python | NHS Python | Pythonist Cafe | Hacker Earth | Discord Python