1
vote
0answers
18 views

Weird, inconsistent behavior using Apache and multiple Django sites

I have two mod_wsgi django sites and four domain names. Two domains point to each site. When I visit my two sites using all four domains in chrome, they all work fine. But only most of the time. ...
-1
votes
0answers
11 views

Is there a version of Flup for Python 3?

I've been trying to get Flup installed under Python3, but with no success. Both easy_install Flup and the manual installation (downloading the zip and running setup.py) isn't working. They both give ...
0
votes
1answer
14 views

google engine (Process exited with code 1)

I am trying to run following code in google app engine. //app.yaml application: engineapp version: 1 runtime: python27 api_version: 1 threadsafe: yes handlers: ...
0
votes
0answers
20 views

Django custom user edit form: get_fieldsets() error

In Django's admin.py, why, even though this works: class StudentAdmin(UserAdmin): add_form = UserCreationForm form = CustomChangeForm fieldsets = UserAdmin.fieldsets ...
0
votes
1answer
26 views

Django-Models: TypeError: coercing to Unicode: need string or buffer, User found

I want to display values (last name and first name) from a model as a ForeignKey. I want the values to be in form of choices so users can select the name of student they want to assign ...
1
vote
0answers
50 views

Item won't update in database

I'm writing a method to update several fields in multiple instances in my database. For now, I'm trying to get it to work just for one. My user uploads a CSV file with all the information to change ...
0
votes
3answers
29 views

CSRF cookie not set django…verification failed

AoA I am new to Django, I am trying to get data from POST, but getting error CSRF cookie not set, I tried alot to find the solution on google and stackoverflow via google too, but failed here is ...
0
votes
1answer
13 views

Django: Determining ManyToMany Relationship in Template

I had a ForeignKey relationship set up like this: class WatchList(models.Model): user = models.ForeignKey(User) class Thing(models.Model) watchlist = models.ForeignKey(WatchList, null=True, ...
0
votes
1answer
22 views

Generating a date relative to another date in Django template

I have a date in my template context, and I want to display that date plus 7 days in the rendered output. Something like this (which does not exist): {{some_date|plus_days:7}} How can I do this in ...
2
votes
1answer
20 views

Django Admin - Select a valid choice. XYZ is not one of the available choices

I have a model for adding entries of Mobile apps: class MobileApp(models.Model): name = models.CharField(max_length=255) description = models.TextField() images = ...
1
vote
1answer
26 views

how to serve the downloadable image files in django

I have all the images stored at some folder like media in my project, and i have a button in html template that should download the respective image. Below are my codes views.py @login_required def ...
1
vote
0answers
13 views

Save additional info to Facebook authenticated user?

I'm using python-social-auth and I'm successfully able to authenticate a user with his Facebook account, but only the email is persisted. How do I: persist the birthday? add and persist information ...
1
vote
2answers
27 views

Receiving nested JSON objects in django

What is the best way to accept a nested json object in a django view ? The request $.ajax({ type: 'POST', url: 'results/' + self.id + '/', contentType:"application/json; charset=utf-8", ...
1
vote
0answers
19 views

Trouble adding django-recaptcha to a registration form

I'm having trouble adding django-recaptcha to a registration form. The form is an extension of django-registration's forms. Here's how I've got it plugged in (only showing relevant code): urls.py: ...
1
vote
0answers
13 views

django-userena mugshot: file is not found

Just started to learned django. In order to maintain user management I try to use Userena app (if I'm not mistaken, Userena is extension of django standard auth app). I configured and deployed ...

15 30 50 per page