I haven't been able to do so due to all sort of missing dependencies (mainly, I think the problem is in the authentication code which relies on django stuff that is not available on AppEngine)
I was wondering if anyone patched\forked piston to get it working on AppEngine?
...
I think the best way to ask this question is with some code... can I do this? (edit: ANSWER: no)
class MyModel(models.Model):
foo = models.CharField(max_length = 20)
bar = models.CharField(max_length = 20)
def get_foo(self):
if self.bar:
return self.bar
...
I've been using the django syndication-feed framework for about 9 month now and i keep having the same problem. Every now and then, for no apparent reason my rss reader (google reader) is flooded with all the old entries, which I already received when they were up to date. I failed to find a connection between these happenings, it's not ...
I'm looking for a way to sell someone a card at an event that will have a unique code that they will be able to use later in order to download a file (mp3, pdf, etc.) only one time and mask the true file location so a savvy person downloading the file won't be able to download the file more than once. It would be nice to host the file on...
Suppose my models.py is like so:
class Character(models.Model):
name = models.CharField(max_length=255)
is_the_chosen_one = models.BooleanField()
I want only one of my Character instances to have is_the_chosen_one == True and all others to have is_the_chosen_one == False . How can I best ensure this uniqueness constraint is re...
Model: http://dpaste.com/96349/
View:
def game_list(request):
return render_to_response('games/game_list.html',
{ 'object_list': GameList.objects.published.all().order_by('position')})
Template:
AttributeError at /games/
'Manager' object has no attribute 'published'
Would seem my view does...
I need create the following relationship:
One "Rule" can have many users, but one user can be only one rule.
Using ForeignKey and a ModelForm, I get a select box to select just ONE user, but I want to select many users. It's not a ManyToMany relationship because one user never can be more than one rule.
Here are my model definitions:...
Is there a wysiwyg editor for the web, like tinymce or wmd, which can produce restructured text? I'm looking for something which can be integrated with django.
I would like to use rst instead of markdown because I need to convert the content entered to pdf and do some layout specific things which make rst look like a better choice.
...
I'm using the very cool django-filter (via: http://github.com/alex/django-filter)
and either can't seem to wrap my head around the docs, or maybe just
need a little boost.
When I show the filter form on an object list page, for a FK field I
get the drop down that includes a "-----" which results in an
"any" type filter. But I have some ...
In my Django application, I have a section of code that uploads a file to Amazon S3, and I would like to skip this section during unittests. Unittests happen to run with DEBUG=False, so I can't test for settings.DEBUG == True to skip this section. Any ideas?
...
I'm developing a portfolio application. Within this application, I have a model called "Project" which looks something like this:
class Project(models.Model):
...
images = models.ManyToManyField(Image)
...
so, basically, this Project can contain a set of images (any of these images may belong to another Project as well).
...
Why is there no built-in tree view in the Python Django framework?
Isn't there an easy way to visualize a model when a class has an 1:n relation to itself?
I know about some fancy google code projects to achieve that but I think there must be some common sense among the Django community to handle this common case. Any ideas?
...
I'm totally understanding the documentation on expanding the Comments app in Django, and really would like to stick with the automatic functionality but...
In the current app, I have absolutely no use for an "URL" to be submitted along with a comment.
Being minimally invasive of the default setup, how can I prevent this field from sho...
Hi guys, im using the comment system, now, i would like to re-write the segment form the url comment and append a symbol #, i want to move the page seccion to the comment list exactly to the last comment user with <a name=#{{comment.id}}?> username </a>
Im using next for redirect the usen when the comment was posted:
{% get_comment_for...
Is there a difference between these URLs in regards to having slashes at the end of the URL?
https://drchrono.com/about_us
https://drchrono.com/about_us/
Do web frameworks and web servers (e.g. Apache, Nginx, Django) handle these requests differently?
...
Whenever my django site calls "HttpResponseRedirect" in a view object to redirect to another url it strips off the sub-domain and goes back to the main site. I'm working off of the SVN branch of Django. Here is the example:
#Request comes in as https://sub1.mydomain.com
def view(request):
return HttpResponseRedirect("/test_url") #T...
In Java world, a common way to distribute a web app is to package it along with tomcat.
What's the appropriate way to achieve smth like that with django (or any wsgi app for that matter)?
...
I have a simple view that I'm using to experiment with AJAX.
def get_shifts_for_day(request,year,month,day):
data= dict()
data['d'] =year
data['e'] = month
data['x'] = User.objects.all()[2]
return HttpResponse(simplejson.dumps(data), mimetype='application/javascript')
This returns the following:
TypeError at /sc...
Can someone please explain why the wkt (well-known text) of a point object in geodjango would be returning what seems to be different coordinates than the object was initialized with? I've got to imagine it's something I'm doing wrong, and not geos. The wkt should look like: "POINT (-122.432534 37.764021)" but instead it looks like: 'POI...
Hi guys, im trying moderation comment form the book of James Bennett, i think that all is fine, but the moderation comment is just for SPAM and the comments are public.. so , how ill put the comments always not public, i need that just the administrator can do public the comments.
Thanks
import datetime
from Paso_a_Paso.akismet import...