Hi all,
Is reverse referencing possible in Google app engine? I am using app engine patch to develope an application and my model is something like:
class Portfolio(db.Model):
user = db.ReferenceProperty(User)
pic = db.BlobProperty()
Now, If I have the user object, is it possible to retrieve the pic associated with the users po...
AFAIK django creates indexes for you in the database (I use MySQL).
As these indexes are preventing me from altering column names as part of a south migration I'm performing, I would like to remove these indexes.
Is it legitimate to manually erase django indexes?
Will django recreate them?
...
In Django how to use unicode when inserting into DB
Example:
name =request.POST["name"] //This may be in Chinese or any other lanuages
usr = Users(name=name)
usr.save()
The Python version that is used in Cent os is python 2.4.3 and mod python version is 1.2.1_p2-1
...
In my project I've added a newsletter feed. But when trying to send emails with this function :
def send(request):
template_html = 'static/newsletter.html'
template_text = 'static/newsletter.txt'
newsletters = Newsletter.objects.filter(sent=False)
subject = _(u"Newsletter")
adr = NewsletterEmails.objects.all()
fo...
I'm using the Django Redirect app (http://docs.djangoproject.com/en/
dev/ref/contrib/redirects/) but I'd like to have Google Analytics
track the urls that's I'm redirecting. Is there an standard way to do
something like this without hacking the Django core?
...
I run django-admin makemessages -l ro -e html,txt,rml in the application's directory (above the locale directory) to generate the PO files. When I open a PO file with Poedit, e.g. locale/ro/LC_MESSAGES/django.po, I can not see where the message is being referenced. The paths from the catalog look like this:
#: admin.py:12 admin.py:23
...
I'm trying out pycharm for django development and I can't stand the white background. Can someone provide a place to download a schema file? Switching all the colors manually is tedious and time consuming.
Is it maybe possible to use komodo schemas?
...
Hi,
I am working on an ecommerce site, based on django-lfs, and I am finding that I need to make a number of changes to the django-lfs core files... i.e. adding additional properties to models, updating views, adding url patterns etc. I started out placing django-lfs in my pythons site-packages path with the view that if i needed to mak...
I'm using the standard authentication form. It's clean method looks like this :
def clean(self):
username = self.cleaned_data.get('username')
password = self.cleaned_data.get('password')
if username and password:
self.user_cache = authenticate(username=username, password=password)
if self.user_cache is None:...
Hi, I have some newbie questions about Django.
I want to write a generic ticket-management system, where the administrator of the site should be able to add custom fields to a ticket. It seems that the database tables are generated on initialization, so it is not clear to me how to add custom fields at runtime.
One way is to have a long...
i want to build an information support system which is an web app.
and we gonna use Django as the frame,but i don't know which search engine to use ?
can you give me some suggestions on the search engine which we can use in our project,it must be written with python.
thanks
...
I'm writing tests for a Django application that uses an external data source. Obviously, I'm using fake data to test all the inner workings of my class but I'd like to have a couple of tests for the actual fetcher as well. One of these will need to verify that the external source is still sending the data in the format my application exp...
Two of my model's fields are "title" and "summary". Right now, "title" is the first field in the ModelAdmin's list_display, which makes it link to the change page. I have some other fields in list_display as well.
I'd like to make the admin change list page display "summary" under "title" in plain, unlinked text, in the same column as "...
The model has an IntegerField with null=True, blank=True, so it allows the field to have a value of None. When the column is sorted, the Nones are always treated as the lowest values. Is it possible to make Django treat them as the highest values? So when sorted in descending order, instead of:
100 43 7 None
It would go:
None 100 43 7...
Why would I chose something like Interwoven Teamsite as opposed to Joomla, Django, Wordpress etc. I guess the question is how can one justify the cost associated with a teamsite license. Also by going the teamsite route, do I have any limitations on what can or cannot be modified.
Thank you
...
I've written custom admin actions that basically do QuerySet.update() for certain fields in the model. There are times when these actions shouldn't be allowed to complete -- instead, they should display an error and not do anything. I've tried message_user, but that displays a green checkmark, whereas I'd like it to display the Django ad...
Hello,
I'm trying to design models for a forum I wish to create in Django.
So far I have:
class Forum(models.Model):
name = models.CharField(max_length=255)
slug = models.SlugField(max_length=150)
description = models.TextField()
def __unicode__(self):
return self.name
class SubForum(models.Model):
paren...
I hope I'm wrong, but it looks to me like the only way to have no help_text for a ManyToManyField is write an __init__ method for the form and overwrite self.fields[fieldname].help_text. Is that really the only way? I prefer to use CheckboxSelectMultple widgets, so am I really going to have to define an __init__ method for any form that ...
Installed Django from source (python setup.py install and such), installed MySQLdb from source (python setup.py build, python setup.py install). Using Python 2.4 which came installed on the OS (CentOS 5.5). Getting the following error message after launching the server:
Error loading MySQLdb module: No module named MySQLdb
The pythonpa...
Is it possible to limit what admin pages a user is able to VIEW and modify i know it is currently possible to limit changes to them, but is it possibly to limit a user via permissions or otherwise to only the administration views for one app. If possibly i am also aiming that superusers can access the standard django admin
Looking aroun...