scalability

Celery and Django simple example

Celery and Django simple example Question: Let’s take a simple Django example. app/models.py from django.db import models from django.contrib.auth.models import User class UserProfile(models.Model): user = models.OneToOneField(User) token = models.CharField(max_length=32) app/views.py from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from forms import RegisterForm from utils.utilities import create_user @csrf_exempt def register_view(request): if request.method == ‘POST’: form = …

Total answers: 1

Django Tag model design

Django Tag model design Question: I am wondering if the following is the correct way to create tagging system for images and being able to render a tag cloud: from django.db import models class Tag(models.Model): word = models.CharField(max_length=35) slug = models.CharField(max_length=250) created_at = models.DateTimeField(auto_now_add=False) def __unicode__(self): return self.word class Photo(models.Model): slug = models.CharField(max_length=250) filename = …

Total answers: 2

Does Django scale?

Has Django served an excess of 100k daily visits? Question: I’m building a web application with Django. The reasons I chose Django were: I wanted to work with free/open-source tools. I like Python and feel it’s a long-term language, whereas regarding Ruby I wasn’t sure, and PHP seemed like a huge hassle to learn. I’m …

Total answers: 29