Django community: RSS
This page, updated regularly, aggregates Django links from the Django community.
-
QuerySet API reference | Django documentation | Django
-
Aggregation | Django documentation | Django
-
postgresql - How to remove index varchar_pattern_ops in a django (1.8) migration? - Stack Overflow
drop_md5hash_varchar_pattern_ops_index -
Chef Community Cookbooks with AWS OpsWorks Chef 12 | Chef Blog
Build a simple django app with OpsWorks -
celery/examples/django at 3.1 · celery/celery · GitHub
-
sebastibe/django-rest-skeleton: A Django project skeleton to quickly bootstrap a REST API
-
Django — Celery 3.1.23 documentation
-
NewsBlur - Google Reader replacement (RSS aggregator)
https://news.ycombinator.com/item?id=11570126 -
Asynchronous Tasks with Django and Celery - Real Python
-
Test A Reusable Django Application For Support Of Multiple Django Releases With Tox And Travisci | Joe Bergantine
-
Django and Static Files - Kristian Glass - Do I Smell Burning?
Finally an explanation of the config options for Django's static files stuff Storage¶ The STATICFILES_STORAGE setting controls how the files are aggregated together. The default value is django.contrib.staticfiles.storage.StaticFilesStorage which will copy the collected files to the directory specified by STATIC_ROOT. Do not confuse STATIC_ROOT, to where static files are collected, with the aforementioned STATICFILES_DIRS; the former is output, the latter are inputs. They should not overlap. This is a common mistake. Update: To be absolutely clear, STATIC_ROOT should live outside of your Django project – it’s the directory to where your static files are collected, for use by a local webserver or similar; Django’s involvement with that directory should end once your static files have been collected there URL¶ Last but not least, STATIC_URL should be the URL at which a user / client / browser can reach the static files that have been aggregated by collectstatic. If you’re using the default StaticFilesStorage, then this will be the location of where your nginx (or similar) instance is serving up STATIC_ROOT, e.g. the default /static/, or, better, something like http://static.example.com/. If you’re using Amazon S3 this will be http://your_s3_bucket.s3.amazonaws.com/. Essentially, this is wholly dependent on whatever technique you’re using to host … -
In Django, how does one limit file types on file uploads for ModelForms with FileFields? - Stack Overflow
0 down vote I use something along these lines (note, "pip install filemagic" is required for this...): import magic def validate_mime_type(value): supported_types=['application/pdf',] with magic.Magic(flags=magic.MAGIC_MIME_TYPE) as m: mime_type=m.id_buffer(value.file.read()) value.file.seek(0) if mime_type not in supported_types: raise ValidationError(u'Unsupported file type.') You could probably also incorporate the previous examples into this - for example also check the extension/uploaded type (which might be faster as a primary check than magic.) This still isn't foolproof - but it's better, since it relies more on data in the file, rather than browser provided headers. Note: This is a validator function that you'd want to add to the list of validators for the FileField model. -
write hevy Django app
-
How To Install the Django Web Framework on Ubuntu 14.04 | DigitalOcean
-
Test A Reusable Django Application For Support Of Multiple Django Releases With Tox And Travisci | Joe Bergantine
A clear description of how to do something that pretty much worked. Always a pleasure. -
How To Use Elasticsearch With Python and Django ( Part 2 )
In this series, we are creating a Django app with Elasticsearch-based search integrated. The previous article focused on the creation of a basic Django app. -
Blog : Machinalis
The example that we’re presenting is a modification of an application that we built for a blogpost on real-time notifications with gevent-socketio. The goal is to give you a chance to see how much simpler it is to implement the same site using Django Channels. -
Making Ember and Django play nicely together: a to-do app walkthrough | SmallSureThing
-
How to create Custom User Model in Django? - Micropyramid
-
Django Content Management System | Wagtail CMS
-
Zulip
-
[Tutorial]: Deploying Python 3, Django, PostgreSQL to AWS Elastic Beanstalk | Jameson Ricks
-
Deploying a Django App to AWS Elastic Beanstalk - Real Python
-
Optimizing Slow Django REST Framework Performance
-
Math and Pencil