Django community: RSS
This page, updated regularly, aggregates Django links from the Django community.
-
Graphite Documentation — Graphite 0.10.0 documentation
-
Django Development Dashboard
-
Coding Grace - Check out our upcoming events
RT @CodingGrace: Some of our upcoming workshops in June & July: HTML5/CSS3, PyGame, F#, RoboCode — All the details on #Diversity -
Python, convert 4-byte char to avoid MySQL error "Incorrect string value:" - Stack Overflow
In a UCS-2 build, python uses 2 bytes internally for each unicode character over \U0000ffff code point. Regular expressions need to work with those, so you'd need to use the following regular expression to match these: highpoints = re.compile(u'[\uD800-\uDBFF][\uDC00-\uDFFF]') This regular expression matches any 2-byte UTF-16-encoded code point (see UTF-16 Code points U+10000 to U+10FFFF. To make this compatible across Python UCS-2 and UCS-4 versions, you could use a try:/except to use one or the other: try: highpoints = re.compile(u'[\U00010000-\U0010ffff]') except re.error: # UCS-2 build highpoints = re.compile(u'[\uD800-\uDBFF][\uDC00-\uDFFF]') Demonstration on a UCS-2 python build: >>> import re >>> highpoints = re.compile(u'[\uD800-\uDBFF][\uDC00-\uDFFF]') >>> example = u'Some example text with a sleepy face: \U0001f62a' >>> highpoints.sub(u'', example) u'Some example text with a sleepy face: ' -
Tryolabs - Python/Django, NLP and Machine Learning development
This is NOT the best practice. You may lose some database specific features if you check your imported PostgreSQL database carefully (Django uses different SQL to create database). I just migrated mine and I used a better solution. 1. Using "python manage.py dumpdata > django_data.json" from currently used MySQL database. This is a "pure" data set with no database specific information stored. 2. Create a new PostgreSQL database, modify settings.py to use it, and then run "python manage.py syncdb" to create tables. This is important as you may notice that the SQL commands used by Django for PostgreSQL is different from that of MySQL. 3. Run "python manage.py sqlflush | psql -U myusername mydatabase" to wipe out all data in the new database (make it empty). 4. If you happened to use "post_save" signal in your model, you may need to comment out the callback when loading data. Check my workaround: https://code.djangoproject.com/ticket/17880 If you haven't used any signals, ignore this step. 5. Then "python manage.py loaddata django_data.json". Now data should have been imported. 6. One last thing: remember to reset sequences by running "python manage.py sqlsequencereset appname | psql -U myusername mydatabase". You must do it for EVERY app you … -
Emoticons from iPhone to Python/Django - Stack Overflow
I'm trying to save comments from an iPhone app that may and nowadays most likely will include emoticons. No matter what I do, I can't save the emoticons to the MySQL database ... Constant Unicode errors. Python 2.6.5 Django 1.2.1 MySQL database (set to utf8 character set for tables and rows) Saving the data to a VARCHAR(255) field The error I keep receiving is: Incorrect string value: '\xF0\x9F\x97\xBC \xF0...' for column 'body' at row 1 The string I'm passing into the database is: test_txt = u"Emoji - \U0001f5fc \U0001f60c \U0001f47b ...".encode('utf-8') Update: Here's the model I'm using: class ItemComment(db.Model): item = db.ForeignKey(Item) user = db.ForeignKey(Profile) body = db.CharField(max_length=255, blank=True, null=True) active = db.BooleanField(default=True) date_added = db.DateTimeField(auto_now_add=True) def __unicode__(self): return "%s" % (self.item) The odd thing is, if I try and pass this to a field that I've created in MySQL and not Django models.py it works fine. But as soon as I register the field in Django models it dies. Is there another way to store these perhaps? Any ideas would be amazing. I could not be more stuck on this ... Update 2: Tracking it in Terminal using the following UPDATE statement (notice the U0001f5fc) UPDATE 'table' SET 'body' … -
Jannis Leidel joins the DSF Board | Weblog | Django
Very proud to announce that I joined the Django Software Foundation board of directors \o/ #django -
Django and Tornado | Ultimate Nerdiness
Last few weeks we’ve been working on a mobile project where we needed to have a backend written explicitly in Python that would combine making mobile data available, having an admin interface with rights separation and different frontends. -
Django - Full Stack Python
-
Blog | Machinalis
-
How to use Django with uWSGI | Django documentation | Django
-
Host-based IOC collection framework
"The Kraken is a host-based IOC collection framework, crucial in the identification phase of any incident response." -
Getting Started With Django: A Crash Course — Getting Started With Django: A Crash Course 1.0 documentation
-
Django Packages : django-leaflet
-
dcramer/django-devserver
-
Caktus Group : Migrating to a Custom User Model in Django
-
django-sudo 1.1.2 documentation
-
Caktus Group : Getting Started Scheduling Tasks with Celery
-
Getting Started with Django: Safari Books Online
Getting Started with Django -
Usage — django-sudo 1.1.2 documentation
-
python - Celery and Django simple example - Stack Overflow
Celery and Django simple example -
django-registration 1.0 documentation — django-registration 1.0 documentation
-
Quickstart — django-password-reset 0.7 documentation
-
Homepage | Celery: Distributed Task Queue
-
Django Forgot Password | MontyLounge Blog
forgot password implementation made simple in django