Django is an open source Web 2.0 application framework, written in Python. Its primary goal is to ease the creation of complex database-driven websites.
7
votes
0answers
462 views
django-mutant creating models in django-admin
I started experimenting with django-mutant 0.0.2 (on django 1.4.2), but due to the lack of documentation I got almost nowhere. The way I understood by the project description I could use it to create ...
5
votes
0answers
392 views
Foreign key as required field on Django 1.5 configurable user model, createsuperuser says: AttributeError: 'NoneType' object has no attribute '_state'
Using the new Configurable user model from Django 1.5 (1, 5, 0, 'beta', 2) I get this error while running manage.py createsuperuser trying to set a foreign key of a required field:
AttributeError: ...
5
votes
0answers
304 views
Django-pydobc SQL server connection problems on windows
Another developer and I are setting up a django (v1.4.2) project using a legacy SQL server database (SQLEXPRESS) on another server. So far, we have been able to connect to the database from linux and ...
4
votes
0answers
122 views
Database error: no such table: auth_user. Extending AbstractUser and using model to register on admin
I'm trying to use AbstractUser to add a field to Django's standard User model. This is my code:
class GUser(AbstractUser):
uuid = UUIDField(auto=True)
This has been successful because from the ...
4
votes
0answers
79 views
how to fix https openid error
I am using local https protocol and fake certificate .
When using django-openid-auth give me this error
OpenID failed
OpenID discovery error: Error fetching XRDS document: (60, 'server certificate ...
4
votes
0answers
258 views
Wrong url with Django Sorl thumbnail with Amazon s3
I am having a very strange error in using sorl thumbnails in my django project which uses S3 for media files. I have done my settings as pointed out in this answer ...
4
votes
0answers
196 views
What permissions does django-storages require for an s3 IAM user?
As the question asks, what are the minimum required permissions for a locked down s3 IAM user to use django-storages successfully? At the present time I've used something like
{
"Statement": [
...
4
votes
0answers
293 views
Non-queryset data ordering in django-tables2
The docs say:
Where the table is backed by a model, the database will handle the ordering. Where this is not the case, the Python cmp function is used and the following mechanism is used as a ...
4
votes
0answers
641 views
django cms search with multiple sites?
I've set up multiple sites within a single instance of django cms with haystack for search (with Solr). However, the search_indexes.py that I've got doesn't appear to have any effect. It's like it's ...
3
votes
0answers
29 views
OperationalError could not connect to server
I put a Django app on Heroku recently. The home page looks fine, but when I try to go to a page that involves making a query (e.g. p = Photo.objects.get(title=title)), I get this error:
could not ...
3
votes
0answers
36 views
Django Testing: DatabaseCreation' object has no attribute '_rollback_works'
I have written a example test and I'm trying to run it without creating a new database every time.
The first time I run my test everything is ok (takes sometime due to building the DB):
> ...
3
votes
0answers
76 views
Showing more than '__str__' for a Django foreign key field
I've two simple Django model classes,
models.py
from django.db import models
class ParentModel(models.Model):
small_text = models.CharField(max_length=20)
big_text = ...
3
votes
0answers
81 views
Searching for a project skeleton for Chef + Django on Linux
Is there a pre-existing, best practices project skeleton for Chef + Django web applications on Linux (Ubuntu preferably)?
For production Django systems our preferred setup is Supervisor, Nginx, ...
3
votes
0answers
777 views
gunicorn, nginx (v 1.3.14), django, and gevent-socket.io, on dotcloud
I am trying to deploy gunicorn + gevent behind nginx (v 1.3.14) on dotcloud. I have a few questions about it. I am aiming to adapt the python-on-dotcloud example. So far, I have not been able to ...
3
votes
0answers
54 views
Optional django-sekizai for an API
I'm writing a basic API, where it extends a DetailView to display the latest object for a given model.
As part of the site, django-sekizai is used for django-cms and as a result all used templates ...