0
votes
2answers
13 views

How can i save data using html file rather than modelform in django

I want to save data from a html form rather than from modelForm in django. I am using MySQL database. create.html <form action="QACreate/qa_create/" method="post" id="createform"> {% ...
0
votes
1answer
16 views

django tutorial part 1 (p.choice_set.all() returns in reverse order)

https://docs.djangoproject.com/en/1.5/intro/tutorial01/ I am following the Django tutorial and near the end of part 1 where p.choice_set.all() is called I get the display in reverse order. For ...
0
votes
1answer
42 views

How to match up lists?

I am making a todo list. I have a list of checkboxes and text fields that correlated to each other. I am creating the todo list with jquery and it outputs the following: <li name="todo_li" ...
1
vote
0answers
10 views

Default django-ajax-uploader with s3 backend gives MalformedXML error

I set up a test script almost exactly like in the example here: https://github.com/GoodCloud/django-ajax-uploader It seems to start uploading the file (javascript updates the name and size of the ...
2
votes
2answers
16 views

Django send mail from admin panel

I want to sent email to user's from django admin panel and store the sent mail in database too.I have two usertypes 1.Staff 2. Students. When I select staff and give email, it'll sent email to all the ...
0
votes
4answers
24 views

Is there any simple way to store the user location while registering in database

I have the user registration form made in django. I want to know the city from which the user is registering. Is there any way that i get the IP address of the user and then somehow get the city for ...
1
vote
2answers
17 views

How to create a list of fields in django forms

Is there any way to make a django forms class that actually holds an array of fields? I have a database that will pull up a variable number of questions to ask the user and each question will know ...
1
vote
1answer
16 views

How to use select_for_update to 'get' a Query in Django?

As the Django Documentation says, select_for_update returns a Queryset. But get does not. Now I have a query which I am sure is going to return only one tuple. But I also need to acquire locks for ...
1
vote
1answer
16 views

Excluding Fields in Django Class Based Views Not Working

Boy, it feels like I've tried EVERYTHING here, and I just can't get this form to render properly (e.g. with a subset of fields). Here's the relevant items (extra items removed): models.py: class ...
1
vote
0answers
27 views

Installing non-pip library in Django

I am using a module which is not recognised by pip so cannot be called as a dependency from a requirements file. The module in question is a registration backend: ...
0
votes
2answers
21 views

Migration: Creating UserProfile in Django/MySQL

I have created a UserProfile field in order to add a favorites functionality to my site. Using Django's recommendation, I created a UserProfile model as follows at the bottom Unfortunately, I already ...
0
votes
0answers
16 views

Bootstrap select - Multi select is not showing the last item entered

I'm using Bootstrap Select. I'm trying to add a new value using this function. Function dismissAddAnotherPopup(win, newId, newRepr) { // newId and newRepr are expected to have previously been ...
1
vote
2answers
20 views

Django: ValueError: Cannot create form field because its related model has not been loaded yet

I'm having some trouble with a Django project I'm working on. I now have two applications, which require a fair bit of overlap. I've really only started the second project (called workflow) and I'm ...
0
votes
0answers
30 views

Django admin issues with empty translated values and unique=True

I'm trying to use django-modeltranslation but I can't get it working well. I'm suffering because Django admin crashes with empty translated values and unique=True. This appears as a closed issue, but ...
2
votes
1answer
25 views

Unit testing an AsyncResult in celery

I am trying to test some celery functionality in Django's unit testing framework, but whenever I try to check an AsyncResult the tests act like it was never started. I know this code works in a real ...

1 2 3 4 5 1426
15 30 50 per page